ASA Programming Guide
Introduction to Java in the Database
Adaptive Server Anywhere is a runtime environment for Java. This means that Java classes can be executed in the database server. Building a runtime environment for Java classes into the database server provides powerful ways of adding programming logic to a database.
Java in the database offers the following:
You can reuse Java components in the different layers of your application—client, middle-tier, or server—and use them wherever makes the most sense to you. Adaptive Server Anywhere becomes a platform for distributed computing.
Java is a more powerful language than stored procedures for building logic into the database.
Java can be used in the database without jeopardizing the integrity, security, and robustness of the database.
Java in the database is a separately licensable component and must be ordered before you can install it. To order this component, see the card in your SQL Anywhere Studio package or see http://www.sybase.com/detail?id=1015780.
Java in the database is based on the SQLJ Part 1 proposed standard. SQLJ Part 1 provides specifications for calling Java static methods as SQL stored procedures and user-defined functions.
Learning about Java in the database
Using the Java documentation