Java classes for DB2GENERAL routines
You can use the Java classes for DB2GENERAL routines interface to provide a public java.sql.Connection getConnection() routine to fetch a JDBC connection to the embedding application context.
You can use the
public
java.sql.Connection getConnection()
handle to run SQL statements.
Other methods of the StoredProc
interface are listed
in the file sqllib/samples/java/StoredProc.java.There
are five classes/interfaces that you can use with Java™ Stored Procedures or UDFs:
- COM.ibm.db2.app.StoredProc
- COM.ibm.db2.app.UDF
- COM.ibm.db2.app.Lob
- COM.ibm.db2.app.Blob
- COM.ibm.db2.app.Clob
The COM.ibm.db2.app.UDF class supports external Java generic table UDFs.