SQL Anywhere provides a runtime environment for Java classes. This means that Java classes can be executed in the database server. Using Java methods in 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 it makes the most sense to you. SQL Anywhere becomes a platform for distributed computing.
Java provides a more powerful language than the SQL stored procedure language for building logic into the database.
Java can be used in the database without jeopardizing the integrity, security, or robustness of the database.
Java in the database is based on the SQLJ Part 1 proposed standard (ANSI/INCITS 331.1-1999). SQLJ Part 1 provides specifications for calling Java static methods as SQL stored procedures and functions.