By default, Java support is ON for IQ databases. It can be turned off with the JAVA OFF option. With Java ON:
You can write a Java procedure that accesses tables in the Catalog Store or the IQ Store. These queries are processed like any other query.
You cannot store Java data in an IQ table or a Catalog Store table. If you attempt to create an IQ column of type Java, you receive an error.
Java Application Programmer’s Interface (API) can be used in stored procedures.
The JDBC interface can be used with to access SQL data only, because you cannot store Java data in any table in an IQ database.
Sybase IQ has been certified with the combined Java/Stored Procedure debugger, which is supplied on the Network Client CD.
These Java features are supported in the Catalog Store only:
You cannot use a Java-based user-defined function within a query to an IQ table, but you can use it on Catalog Store tables.
You cannot use Java classes as data types in IQ tables, but you can use Java classes as data types in Catalog Store tables.
The Java API classes supported by Adaptive Server Anywhere are also supported in the IQ Catalog Store.
Sybase IQ supports access to Adaptive Server Anywhere tables from IQ, and to IQ tables from Adaptive Server Anywhere, by means of proxy tables. Additional Java features should work when you use remote data access capabilities to access IQ tables from Anywhere, or Anywhere tables from IQ:
You can use Java-based user-defined functions in queries on tables in an Adaptive Server Anywhere database, or queries to IQ tables from an Adaptive Server Anywhere database. For details on using remote data access capabilities, see Chapter 16, “Accessing Remote Data.”
You can include Java operations in a SQL statement.
You can use Java API classes in SQL statements.
You can treat the Java API classes as extensions to the available built-in functions provided by SQL.
For details on Java support in Sybase IQ, see:
“Introduction to Java in the Database” in the Adaptive Server Anywhere Programming Guide
“Using Java in the Database” in the Adaptive Server Anywhere Programming Guide