A guiding principle for the design of Java in the database is that it provides a natural, open extension to existing SQL functionality.
Java operations are invoked from SQL – Sybase has extended the range of SQL expressions to include fields and methods of Java objects, so that you can include Java operations in a SQL statement.
Java methods as SQLJ stored procedures and functions – you create a SQLJ alias for Java static methods, so that you can invoke them as standard SQL stored procedures and user-defined functions (UDFs).
Java classes become user-defined datatypes – you store Java class instances using the same SQL statements as those used for traditional SQL datatypes.
You can use classes that are part of the Java API, and classes created and compiled by Java developers.