|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.firebirdsql.gds.impl.AbstractIscStmtHandle
org.firebirdsql.gds.impl.wire.isc_stmt_handle_impl
public final class isc_stmt_handle_impl
Describe class isc_stmt_handle_impl here.
| Field Summary |
|---|
| Fields inherited from class org.firebirdsql.gds.impl.AbstractIscStmtHandle |
|---|
statement |
| Fields inherited from interface org.firebirdsql.gds.IscStmtHandle |
|---|
TYPE_COMMIT, TYPE_DDL, TYPE_DELETE, TYPE_EXEC_PROCEDURE, TYPE_GET_SEGMENT, TYPE_INSERT, TYPE_PUT_SEGMENT, TYPE_ROLLBACK, TYPE_SELECT, TYPE_SELECT_FOR_UPDATE, TYPE_SET_GENERATOR, TYPE_START_TRANS, TYPE_UNKNOWN, TYPE_UPDATE |
| Constructor Summary | |
|---|---|
isc_stmt_handle_impl()
|
|
| Method Summary | |
|---|---|
void |
addRow(byte[][] row)
|
void |
clearRows()
Clear all rows that have been fetched for this statement. |
void |
ensureCapacity(int maxSize)
|
int |
getDeleteCount()
Get the number of rows that were deleted by executing this statement. |
int |
getInsertCount()
Get the number of rows that were inserted by executing this statement. |
XSQLDA |
getInSqlda()
Get the input data structure that contains data that is put into the statement. |
XSQLDA |
getOutSqlda()
Get the output data structure that contains data that is retrieved from the statement. |
byte[][][] |
getRows()
Get the rows retrieved by executing this statement. |
int |
getRsr_id()
|
isc_db_handle_impl |
getRsr_rdb()
|
int |
getSelectCount()
|
int |
getStatementType()
Get the statement type. |
AbstractIscTrHandle |
getTransaction()
Get current transaction in which statement is currently executed. |
int |
getUpdateCount()
Get the number of rows that were updated by executing this statement. |
boolean |
hasOpenResultSet()
Retrieve whether this statement has an open ResultSet. |
boolean |
isAllRowsFetched()
Retrieve whether all rows have been fetched of the rows selected by executing this statement. |
boolean |
isSingletonResult()
Retrieve whether this statement has singleton result set. |
boolean |
isValid()
Retrieve whether or not this statement is valid. |
static void |
printRow(byte[][] row)
|
void |
registerTransaction(AbstractIscTrHandle trHandle)
Register statement for the transaction. |
void |
removeRows()
Remove all rows contained by this statement. |
void |
setAllRowsFetched(boolean value)
|
void |
setDeleteCount(int value)
|
void |
setInsertCount(int value)
|
void |
setInSqlda(XSQLDA xsqlda)
|
void |
setOutSqlda(XSQLDA xsqlda)
|
void |
setRsr_id(int value)
|
void |
setRsr_rdb(isc_db_handle_impl value)
|
void |
setSelectCount(int value)
|
void |
setSingletonResult(boolean value)
|
void |
setStatementType(int value)
|
void |
setUpdateCount(int value)
|
int |
size()
Get the number of rows contained in this statement. |
void |
unregisterTransaction()
Unregister statement from the transaction. |
| Methods inherited from class org.firebirdsql.gds.impl.AbstractIscStmtHandle |
|---|
getExecutionPlan, setExecutionPlan |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public isc_stmt_handle_impl()
| Method Detail |
|---|
public XSQLDA getInSqlda()
IscStmtHandle
public XSQLDA getOutSqlda()
IscStmtHandle
public void setInSqlda(XSQLDA xsqlda)
public void setOutSqlda(XSQLDA xsqlda)
public void ensureCapacity(int maxSize)
public void clearRows()
AbstractIscStmtHandleAbstractIscStmtHandle.removeRows() in that it only affects rows
that have already been fetched.
clearRows in class AbstractIscStmtHandleAbstractIscStmtHandle.removeRows()public void setStatementType(int value)
setStatementType in class AbstractIscStmtHandlepublic int getStatementType()
IscStmtHandle
getStatementType in interface IscStmtHandlegetStatementType in class AbstractIscStmtHandleIscStmtHandle.TYPE_UNKNOWN
when no statement type was received from the server.public void setInsertCount(int value)
public int getInsertCount()
AbstractIscStmtHandle
getInsertCount in class AbstractIscStmtHandlepublic void setUpdateCount(int value)
public int getUpdateCount()
AbstractIscStmtHandle
getUpdateCount in class AbstractIscStmtHandlepublic void setDeleteCount(int value)
public int getDeleteCount()
AbstractIscStmtHandle
getDeleteCount in class AbstractIscStmtHandlepublic void setSelectCount(int value)
public int getSelectCount()
public boolean isAllRowsFetched()
IscStmtHandle
true if all rows have been fetched,
false otherwisepublic void setAllRowsFetched(boolean value)
public boolean isSingletonResult()
AbstractIscStmtHandle
isSingletonResult in class AbstractIscStmtHandletrue if result set has singleton result set.public void setSingletonResult(boolean value)
public int getRsr_id()
public void setRsr_id(int value)
public boolean isValid()
AbstractIscStmtHandle
isValid in class AbstractIscStmtHandletrue if this is a valid statement,
false otherwisepublic boolean hasOpenResultSet()
AbstractIscStmtHandleResultSet.
hasOpenResultSet in class AbstractIscStmtHandletrue if this statement has an open
ResultSet, false otherwisepublic isc_db_handle_impl getRsr_rdb()
public void setRsr_rdb(isc_db_handle_impl value)
public int size()
AbstractIscStmtHandle
size in class AbstractIscStmtHandlepublic byte[][][] getRows()
AbstractIscStmtHandle
getRows in class AbstractIscStmtHandlepublic void removeRows()
AbstractIscStmtHandleAbstractIscStmtHandle.clearRows() in that it effectively clears all rows from this
statement.
removeRows in class AbstractIscStmtHandleAbstractIscStmtHandle.clearRows()public void addRow(byte[][] row)
public static void printRow(byte[][] row)
public AbstractIscTrHandle getTransaction()
AbstractIscStmtHandle
getTransaction in class AbstractIscStmtHandleAbstractIscTrHandle or null
if statement is not assigned to a transaction.public void registerTransaction(AbstractIscTrHandle trHandle)
AbstractIscStmtHandleGDS.iscDsqlExecXXX methods to keep a reference on
current transaction in which statement is executed.
registerTransaction in class AbstractIscStmtHandletrHandle - instance of AbstractIscTrHandle.public void unregisterTransaction()
AbstractIscStmtHandle
unregisterTransaction in class AbstractIscStmtHandle
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||