ASA Programming Guide
Introduction to Java in the Database
This tutorial is a primer for invoking Java operations on Java classes and objects using SQL statements. It describes how to install a Java class into the database. It also describes how to access the class and its members and methods from SQL statements. The tutorial uses the Invoice class created in A Java seminar.
The tutorial assumes that you have installed Java in the database software. It also assumes that you have a Java Development Kit (JDK) installed, including the Java compiler (javac).
Source code and batch files for this sample are provided in the directory Samples\ASA\JavaInvoice under your SQL Anywhere directory.
Create and compile the sample Java class
Install the sample Java class
Creating a SQL variable of type Invoice
Access fields and methods of the Java object