public interface IfxProtocol
IfxProtocol represents the protocol and data exchange between the client and an Informix database server. It sends and processes the messages and the data flow between the client and server.
Connection,
ResultSet| Modifier and Type | Method and Description |
|---|---|
void |
chainWarnings(java.sql.SQLWarning cwarn)
Chain the given SQLWarning to the current instance.
|
void |
clear()
Clear member values.
|
void |
clearExceptions()
Clear the SQLException chain in the current instance.
|
void |
clearWarnings()
Clear the SQLWarning chain in the current instance.
|
int |
decRefCount(byte[] locator)
Decrements refcount of a large object
|
void |
executeBegin()
Begin a transaction on the server
|
void |
executeClose(java.sql.Statement stmt)
Close an open cursor on the server.
|
void |
executeCloseDatabase()
Close the current database on the server
|
void |
executeCommand(java.sql.Statement stmt)
Execute a SQL INSERT, UPDATE or DELETE statements on the server.
|
void |
executeCommit()
Commit a transaction on the server
|
IfxResultSetMetaData |
executeDescribeInput()
Execute DESCRIBE INPUT command
|
void |
executeEnv(java.util.Properties EnvVars)
Send the secondary environment variable list to the server.
|
void |
executeExecute(java.sql.Statement stmt,
boolean holdable,
boolean withReOptimized)
Exceute a SQL statement on the server.
|
void |
executeExecute(java.sql.Statement stmt,
boolean holdable,
boolean withReOptimized,
java.sql.ResultSetMetaData outputMetaData)
Exceute a SQL statement on the server.
|
java.util.Vector<IfxObject> |
executeFastPath(java.lang.String signature,
java.util.Vector<IfxObject> inParams,
boolean fParam)
returns a vector of values resulting from executing a UDR
on the server
|
void |
executeFastPath(java.lang.String signature,
java.util.Vector<IfxObject> inParams,
boolean outParam,
boolean fParam)
Executing a UDR on the server.
|
void |
executeFetchBlob(IfxObject obj)
Fetch the blob contents.
|
IfxResultSetMetaData |
executeFPDescribe(java.lang.String signature,
boolean isProc,
java.lang.String procName,
int numargs) |
void |
executeGetDBList()
Gets the list of databases on the server to which we are connected
|
void |
executeOpenDatabase(java.lang.String dbName,
int flags)
Opens a database.
|
void |
executePrepare(java.sql.Statement stmt)
Prepare an SQL statement on the server.
|
void |
executeProtocols(byte[] protocols) |
int |
executeReadSmBlob(int loFd,
byte[] buffer,
int nbytes)
Read the Smart blob contents.
|
int |
executeReadSmBlob(int loFd,
byte[] buffer,
int nbytes,
int offset)
Read the Smart blob contents.
|
int |
executeReadSmBlob(int lofd,
java.io.FileOutputStream fileFd,
int nbytes)
Read the Smart blob contents
|
void |
executeRelease(int id) |
void |
executeRelease(java.sql.Statement stmt)
Release the database resource previously allocated for this
statement.
|
void |
executeReleaseSavepoint(java.lang.String sv)
Release Savepoint on the server
|
void |
executeRollback()
Rollback a transaction on the server
|
void |
executeRollbackSavepoint(java.lang.String sv)
Set Savepoint on the server
|
void |
executeSavepoint(java.lang.String sv,
boolean uniqFlag)
Set Savepoint on the server
|
void |
executeStatementQuery(java.sql.Statement stmt)
Execute a Query on the server.
|
void |
executeStatementQuery(java.sql.Statement stmt,
boolean withHold,
boolean withReOptimization)
protected method to do the executeQuery for Statement objects and
PreparedStatements.
|
void |
executeStatementQuery(java.sql.Statement stmt,
boolean withHold,
boolean withReOptimization,
java.sql.ResultSetMetaData outputMetaData)
Execute a Query on the server.
|
void |
executeVersion()
Get the version number from the server.
|
int |
executeWriteSmBlob(int loFd,
byte[] buffer)
Write into the Smart blob
|
int |
executeWriteSmBlob(int loFd,
byte[] buffer,
int offset,
int length) |
int |
executeWriteSmBlob(int loFd,
java.io.InputStream fd,
int length)
Write into the Smart blob
|
boolean |
getaRow(int direction,
int count,
int scrolltype,
int isscrollcurs,
java.sql.Statement stmt)
Move the cursor from the current position to +/- count depending
on the direction specified.
|
long |
getBigSerialInserted()
Retrieve the last bigserial value inserted returned by SQ_INSERTDONE
|
IfxObject |
getColumnInRow(int colIndex)
Get the value of a column in the current row in IfxObject.
|
java.util.Vector<java.lang.String> |
getDBList()
Returns the Vector in which database names are stored.
|
int |
getEstimateNumberofRow()
Get the estimated number of rows returned by the server
|
com.informix.jdbc.IfxFParam |
getFParam()
Return the fparam data from a fast path call.
|
java.util.Vector<IfxObject> |
getFPReturnVector()
Return the return values from a fast path call.
|
java.sql.ResultSetMetaData |
getMetaData()
Return an ResultSetMetaData object.
|
int |
getNumberOfRowsProcessed()
Get the number of rows processed as a result of executing the
current INSERT/UPDATE/DELETE statement.
|
byte[] |
getProtocols() |
long |
getSerial8Inserted()
Retrieve the last serial8 value inserted returned by SQ_INSERTDONE
|
int |
getSerialInsert()
Serial value after an insert sent in IfxMessageTypes.SQ_DONE message.
|
java.lang.String |
getServerVersion()
Return the server version number retrieved by executeVersion().
|
int |
getStatementType()
getStatementType() returns the statement type for the statement
prepared.
|
int |
getTupid()
getTupid() returns the Tuple ID for scroll cursors.
|
int |
getTupleCount()
Return the number of tuples in the tuple vector.
|
int |
getTupleSize()
Get the actual tuple size of the current tuple that the cursor
is pointing at.
|
java.sql.SQLWarning |
getWarnings()
Get the SQLWarning chain from the current instance.
|
void |
handlePAMAuthentication(java.lang.String cn) |
boolean |
handlePrivateServerExchange() |
int |
incRefCount(byte[] locator)
Increments refcount of a large object
|
boolean |
isResultSet()
Check to see if the current statement executed returned a ResultSet.
|
void |
loadColumnData(int colIndex,
IfxObject val)
Load data value of a column in the current row into the
given IfxObject.
|
java.sql.ResultSetMetaData getMetaData()
void clear()
void executeBegin()
throws java.sql.SQLException
java.sql.SQLExceptionvoid executeCommit()
throws java.sql.SQLException
java.sql.SQLExceptionvoid executeRollback()
throws java.sql.SQLException
java.sql.SQLExceptionvoid executeSavepoint(java.lang.String sv,
boolean uniqFlag)
throws java.sql.SQLException
java.sql.SQLExceptionvoid executeReleaseSavepoint(java.lang.String sv)
throws java.sql.SQLException
java.sql.SQLExceptionvoid executeRollbackSavepoint(java.lang.String sv)
throws java.sql.SQLException
java.sql.SQLExceptionvoid executeCloseDatabase()
throws java.sql.SQLException
java.sql.SQLExceptionvoid executeVersion()
throws java.sql.SQLException
java.sql.SQLExceptionjava.lang.String getServerVersion()
throws java.sql.SQLException
java.sql.SQLExceptionvoid executeProtocols(byte[] protocols)
throws java.sql.SQLException
java.sql.SQLExceptionbyte[] getProtocols()
void handlePAMAuthentication(java.lang.String cn)
throws java.sql.SQLException
java.sql.SQLExceptionvoid executeCommand(java.sql.Statement stmt)
throws java.sql.SQLException
stmt - Statement objectjava.sql.SQLExceptionvoid executePrepare(java.sql.Statement stmt)
throws java.sql.SQLException
stmt - Statement objectjava.sql.SQLExceptionvoid executeStatementQuery(java.sql.Statement stmt)
throws java.sql.SQLException
stmt - Statement objectjava.sql.SQLExceptionvoid executeStatementQuery(java.sql.Statement stmt,
boolean withHold,
boolean withReOptimization)
throws java.sql.SQLException
withHold - , boolean hold cursor over executionwithReOptimization, - boolean if query plan needs to be reoptimized (SQ_REOPTOPEN instead of SQ_OPEN)stmt - Statement objectjava.sql.SQLExceptionvoid executeStatementQuery(java.sql.Statement stmt,
boolean withHold,
boolean withReOptimization,
java.sql.ResultSetMetaData outputMetaData)
throws java.sql.SQLException
stmt - Statement objectwithHold - , boolean hold cursor over executionwithReOptimization, - boolean if query plan needs to be reoptimized (SQ_REOPTOPEN instead of SQ_OPEN)outputMetaData - Meta data describing the output host variable
types.java.sql.SQLExceptionvoid executeClose(java.sql.Statement stmt)
throws java.sql.SQLException
stmt - Statement objectjava.sql.SQLExceptionvoid executeRelease(java.sql.Statement stmt)
throws java.sql.SQLException
stmt - Statement objectjava.sql.SQLExceptionvoid executeExecute(java.sql.Statement stmt,
boolean holdable,
boolean withReOptimized)
throws java.sql.SQLException
holdable - withReOptimized - stmt - Statement objectjava.sql.SQLExceptionvoid executeExecute(java.sql.Statement stmt,
boolean holdable,
boolean withReOptimized,
java.sql.ResultSetMetaData outputMetaData)
throws java.sql.SQLException
stmt - holdable - withReOptimized - outputMetaData - java.sql.SQLExceptionvoid executeFetchBlob(IfxObject obj) throws java.sql.SQLException
obj - IfxObject that converts data from/to
informix/java valuesjava.sql.SQLExceptionint executeReadSmBlob(int loFd,
byte[] buffer,
int nbytes)
throws java.sql.SQLException
loFd - Smart blob handle as returned
by the server.buffer[] - buffer to read.nbytes - no. of bytes to read.SQLException.java.sql.SQLExceptionint executeReadSmBlob(int loFd,
byte[] buffer,
int nbytes,
int offset)
throws java.sql.SQLException
loFd - Smart blob handle as returned
by the server.buffer[] - buffer to read.nbytes - no. of bytes to read.offset - start offset of dataSQLException.java.sql.SQLExceptionint executeReadSmBlob(int lofd,
java.io.FileOutputStream fileFd,
int nbytes)
throws java.sql.SQLException
loFd - Smart blob handle as returned
by the server.fileFd - FileOutputStream to read.nbytes - no. of bytes to read.SQLException.java.sql.SQLExceptionint executeWriteSmBlob(int loFd,
byte[] buffer)
throws java.sql.SQLException
loFd - Smart blob handle as returned
by the server.byte[] - bufferto write.SQLException.java.sql.SQLExceptionint executeWriteSmBlob(int loFd,
byte[] buffer,
int offset,
int length)
throws java.sql.SQLException
java.sql.SQLExceptionint executeWriteSmBlob(int loFd,
java.io.InputStream fd,
int length)
throws java.sql.SQLException
loFd - Smart blob handle as returned
by the server.fd - InputStream to write.length - no. of bytes to read.SQLException.java.sql.SQLExceptionint getEstimateNumberofRow()
int getNumberOfRowsProcessed()
void chainWarnings(java.sql.SQLWarning cwarn)
cwarn - the SQLWarning instance to be chained.void clearWarnings()
void clearExceptions()
java.sql.SQLWarning getWarnings()
void executeEnv(java.util.Properties EnvVars)
throws java.sql.SQLException
java.sql.SQLExceptionint getTupleSize()
throws java.sql.SQLException
java.sql.SQLExceptiongetTupleboolean getaRow(int direction,
int count,
int scrolltype,
int isscrollcurs,
java.sql.Statement stmt)
throws java.sql.SQLException
direction - Valid values are FETCH_FORWARD/FETCH_REVERSE.
For JDBC 1.2, only FETCH_FORWARD is supported.count - number of rows to move forward/backward. For JDBC 1.2,
count can only be set to 1.scrolltype - either absolute, relative, next, ... etc.isscrollcurs - - is it a scroll cursor ?stmt - - used eventually to see if the user is changing
the return type of the data. See executeScrollFetch().java.sql.SQLExceptionIfxObject getColumnInRow(int colIndex) throws java.sql.SQLException
colIndex - index of column in the row, 1 being the first column.java.sql.SQLExceptionvoid loadColumnData(int colIndex,
IfxObject val)
throws java.sql.SQLException
colIndex - index of column in the row, 1 being the first column.IfxObject - to load data into.java.sql.SQLExceptionboolean isResultSet()
throws java.sql.SQLException
java.sql.SQLExceptionlong getSerial8Inserted()
int getSerialInsert()
int getTupid()
throws java.sql.SQLException
java.sql.SQLExceptionint getStatementType()
java.util.Vector<IfxObject> executeFastPath(java.lang.String signature, java.util.Vector<IfxObject> inParams, boolean fParam) throws java.sql.SQLException
java.sql.SQLExceptionvoid executeFastPath(java.lang.String signature,
java.util.Vector<IfxObject> inParams,
boolean outParam,
boolean fParam)
throws java.sql.SQLException
java.sql.SQLExceptionjava.util.Vector<IfxObject> getFPReturnVector()
com.informix.jdbc.IfxFParam getFParam()
int getTupleCount()
void executeGetDBList()
throws java.sql.SQLException
java.sql.SQLExceptionjava.util.Vector<java.lang.String> getDBList()
void executeOpenDatabase(java.lang.String dbName,
int flags)
throws java.sql.SQLException
java.sql.SQLExceptionint incRefCount(byte[] locator)
throws java.sql.SQLException
java.sql.SQLExceptionint decRefCount(byte[] locator)
throws java.sql.SQLException
java.sql.SQLExceptionIfxResultSetMetaData executeDescribeInput() throws java.sql.SQLException
java.sql.SQLExceptionIfxResultSetMetaData executeFPDescribe(java.lang.String signature, boolean isProc, java.lang.String procName, int numargs) throws java.sql.SQLException
java.sql.SQLExceptionlong getBigSerialInserted()
void executeRelease(int id)
throws java.sql.SQLException
java.sql.SQLExceptionboolean handlePrivateServerExchange()
throws java.sql.SQLException
java.sql.SQLException