|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
A connection (session) with a specific database. Within the context of a Connection, SQL statements are executed and results are returned.
| Field Summary | |
static java.lang.String |
DB_CONNECT_STRING_TOKEN_SEPARATOR
Constant to indicate the character separating tokens in the connect string |
static int |
SQLDRV_BUFFER_FULL
Constant to indicate results in current buffer are completely returned. |
static int |
SQLDRV_EOS
Constant to indicate that all results are returned. |
static int |
SQLDRV_ERROR
Constant to indicate Failure from IP routine. |
static int |
SQLDRV_INFO_NEXT_RESULT_SET_AVAILABLE
Constant to check and see if more result sets are available. |
static int |
SQLDRV_INFO_OUTPUT_RESULT_SET_AVAILABLE
Constant to indicate for the current statement report whether it had a return code and/or output parameters. |
static int |
SQLDRV_NOT_AVAILABLE
Constant to indicates that Driver functionality is not available |
static int |
SQLDRV_SUCCESS
Constant to indicate Success from IP routine |
static int |
SQLIP_ERROR
Constant to Indicate IP Routine had an Error |
static int |
SQLIP_FAILURE
Constant to Indicate IP Routine had an Error |
static int |
SQLIP_SUCCESS
Constant to Indicate IP Routine was succesful |
static int |
UL_TM_ERRORS
Constant to indicate message type as "General Errors" in either the protocol or application. |
static int |
UL_TM_F_TRACE
Constant to indicate message type as function call trace. |
static int |
UL_TM_FATAL
Constant to indicate message type as "FATAL" error |
static int |
UL_TM_INFO
Constant to indicate message type as general info to give details about the events. |
static int |
UL_TM_MAJOR_EV
Constant to indicate message type as major protocol or application events to give the big picture. |
static int |
UL_TM_MINOR_EV
Constant to indicate message type as minor or secondary protocol or application events to give more detail. |
static int |
UL_TM_PARM
Constant to indicate message type as "Bad or missing Parameter" passed. |
static int |
UL_TM_SNO
Constant to indicate message type as "Should not occur" error, usually caused by programmer or spec error |
static int |
UL_TM_TRIVIA
Constant to indicate message type as trivial info of value only to the implementor. |
| Method Summary | |
int |
sqlipCommit()
Commit any active transactions on the specified connection. |
int |
sqlipConnect(java.lang.String psDbResourceName,
java.lang.String psDbName,
java.lang.String psUid,
java.lang.String psPwd,
int iAccessMode,
java.lang.String sUsrConnStr,
java.lang.String pSqlSecData)
Connect to the specified database using the specified user name and password. |
int |
sqlipDisconnect()
Disconnect from the database and abort any open transactions. |
int |
sqlipError(java.lang.StringBuffer sSqlState,
xo_int piNativeError,
java.lang.StringBuffer sErrorText)
Return the error during the last operation on this object. |
int |
sqlipGetInfo(int iInfoType,
java.lang.StringBuffer sInfoValue)
Called by the OpenAccess layer to request information from the IP. |
int |
sqlipPrepareToCommit(java.lang.String pCmdArgs,
xo_int piReadOnly)
Used to support distributed transactions. |
int |
sqlipRollback()
Roll back all uncommitted transactions on this connection. |
int |
sqlipSetInfo(java.lang.String pCmdArgs)
Called by the OpenAccess layer to inform the IP of various connection and statement level options like the maximum number of rows to return, transaction commit mode, query timeout, etc. |
int |
sqlipStartTransaction(int iExplicitFlag,
java.lang.String pCmdArgs)
Start a new transaction on the specified connection in response to a request for an explicit start transaction by the client. |
| Field Detail |
public static final int SQLDRV_SUCCESS
public static final int SQLDRV_EOS
public static final int SQLDRV_BUFFER_FULL
public static final int SQLDRV_ERROR
public static final int SQLDRV_NOT_AVAILABLE
public static final int SQLIP_SUCCESS
public static final int SQLIP_FAILURE
public static final int SQLIP_ERROR
public static final int UL_TM_FATAL
public static final int UL_TM_SNO
public static final int UL_TM_PARM
public static final int UL_TM_ERRORS
public static final int UL_TM_MAJOR_EV
public static final int UL_TM_MINOR_EV
public static final int UL_TM_INFO
public static final int UL_TM_F_TRACE
public static final int UL_TM_TRIVIA
public static final int SQLDRV_INFO_NEXT_RESULT_SET_AVAILABLE
public static final int SQLDRV_INFO_OUTPUT_RESULT_SET_AVAILABLE
public static final java.lang.String DB_CONNECT_STRING_TOKEN_SEPARATOR
| Method Detail |
public int sqlipConnect(java.lang.String psDbResourceName,
java.lang.String psDbName,
java.lang.String psUid,
java.lang.String psPwd,
int iAccessMode,
java.lang.String sUsrConnStr,
java.lang.String pSqlSecData)
psDbResourceName - The logical name of the database the user has specified when connecting.psDbName - The string specified as the CONNECT_STRING for the
database resource identified by the psDbResourceName.psUid - User IDpsPwd - PasswordiAccessMode - Whether the client needs read only or read/write access to this database.sUsrConnStr - Complete connection string as received from the client.
This can be parsed to retrieve any custom connection level options.pSqlSecData - Windows token. Should be used only when Windows authentication is enabled.public int sqlipDisconnect()
public int sqlipError(java.lang.StringBuffer sSqlState,
xo_int piNativeError,
java.lang.StringBuffer sErrorText)
sSqlState - Return a 5 character SQL sate string if the sSqlState is not NULL.piNativeError - Return an integer value indicating a native error.
This code will be made available to the client application.
Provide this if piNativeError in not NULL.sErrorText - Return error message of length SQLDRV_MAX_MESSAGE_LENGTH or less
if sErrorText is not NULL.
public int sqlipGetInfo(int iInfoType,
java.lang.StringBuffer sInfoValue)
iInfoType - sInfoValue - Buffer to return the data into.public int sqlipSetInfo(java.lang.String pCmdArgs)
pCmdArgs - Option string - STMT_OPTIONS
The options string contains settings for maximum number of rows, query timeout,
and extended column attributes. These settings are passed in using keywords mrows, qt, and op.
An example options string is: 'mrows=0;qt=0;op=0'
public int sqlipCommit()
public int sqlipRollback()
public int sqlipStartTransaction(int iExplicitFlag,
java.lang.String pCmdArgs)
iExplicitFlag - For future use - always set to 1 in this version.pCmdArgs - Isolation level for this transaction - '%d' where d is an integer value corresponding
to the isolation level as defined in the ipdef.h file.
public int sqlipPrepareToCommit(java.lang.String pCmdArgs,
xo_int piReadOnly)
pCmdArgs - Transaction ID and other detailspiReadOnly -
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||