skip to main content
IP API Reference for Java : IP API Interfaces for Java : oajava.sql.sqlip Interface
 

oajava.sql.sqlip Interface

A new instance of an object that implements the oajava.sql.sqlip interface is created for each connection. The connection level object saves information supplied during call to the constructor and it saves the connection context required to use the backend database.
Any name (for example, xxx_drv) can be given to the class that implements the oajava.sql.sqlip interface. The class name for the class that implements the oajava.sql.sqlip_stmt must be the oajava.sql.sqlip class name with "_stmt" appended to it (for example, xxx_drv_stmt). The class name of the Connection object is registered with OpenAccess SDK through the OpenAccess SDK Manager as documented in the OpenAccess SDK Administrator’s Guide.
public interface sqlip{
public int sqlipConnect();
public int sqlipDisconnect();
public int sqlipError();
public int sqlipGetDSInfo();
public int sqlipGetInfo();
public int sqlipSetInfo();
public int sqlipCommit();
public int sqlipPrepareToCommit();
public int sqlipRollback();
public int sqlipStartTransaction();
}
The Connection class implementing this interface must implement the constructor defined here, where xxx is the name of your class.
public xxx(long sqlip_hdbc, long jsqldrv_tmHandle, long pMemTree)
 
Table 65: Parameters for the Connection Class Implementing oajava.sql.sqlip 
Parameter
Type
Description
INPUT
 
 
sqlip_hdbc
long
Connection handle to OpenAccess SDK layer connection object.
jsqldrv_tmHandle
long
Handle to use tracing using the tm_trace() method in the future.
pMemTree
long
Memory tree handle that may be used in the future.