Before you use Java in your Adaptive Server database, here are some general considerations.
Java classes contain:
Fields that have declared Java datatypes.
Methods whose parameters and results have declared Java datatypes.
Java datatypes for which there are corresponding SQL datatypes are defined in “Datatype mapping between Java and SQL”.
Java classes can include classes, fields, and methods that are private, protected, friendly, or public.
Classes, fields and methods that are public can be referenced in SQL. Classes, fields, and methods that are private, protected, or friendly cannot be referenced in SQL, but they can be referenced in Java, and are subject to normal Java rules.
Java classes, fields, and methods all have various syntactic properties:
Classes – the number of fields and their names
Field – their datatypes
Methods – the number of parameters and their datatypes, and the datatype of the result
The SQL system determines these syntactic properties from the Java-SQL classes themselves, using the Java Reflection API.