The following sections describe the steps involved in creating Java methods and calling them from SQL. It shows you how to compile and install a Java class into the database to make it available for use in SQL Anywhere. It also shows you how to access the class and its members and methods from SQL statements.
The following sections assume that you have a Java Development Kit (JDK) installed, including the Java compiler (javac) and Java VM.
Source code and batch files for the sample are provided in %SQLANYSAMP16%\SQLAnywhere\JavaInvoice.
Lesson 1: Compiling a Java program
Lesson 2: Selecting a Java VM
Lesson 3: Installing a Java class
Lesson 4: Calling methods in a Java class
![]() |
Discuter à propos de cette page dans DocCommentXchange.
|
Copyright © 2013, SAP AG ou société affiliée SAP - SAP Sybase SQL Anywhere 16.0 |