|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.firebirdsql.gds.impl.AbstractIscStmtHandle
public abstract class AbstractIscStmtHandle
Abstract implementation of the IscStmtHandle
interface.
| Field Summary | |
|---|---|
String |
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 | |
|---|---|
AbstractIscStmtHandle()
|
|
| Method Summary | |
|---|---|
abstract void |
clearRows()
Clear all rows that have been fetched for this statement. |
abstract int |
getDeleteCount()
Get the number of rows that were deleted by executing this statement. |
String |
getExecutionPlan()
Get the execution plan from the statement. |
abstract int |
getInsertCount()
Get the number of rows that were inserted by executing this statement. |
abstract byte[][][] |
getRows()
Get the rows retrieved by executing this statement. |
int |
getStatementType()
Get the statement type. |
abstract AbstractIscTrHandle |
getTransaction()
Get current transaction in which statement is currently executed. |
abstract int |
getUpdateCount()
Get the number of rows that were updated by executing this statement. |
abstract boolean |
hasOpenResultSet()
Retrieve whether this statement has an open ResultSet. |
abstract boolean |
isSingletonResult()
Retrieve whether this statement has singleton result set. |
abstract boolean |
isValid()
Retrieve whether or not this statement is valid. |
abstract void |
registerTransaction(AbstractIscTrHandle trHandle)
Register statement for the transaction. |
abstract void |
removeRows()
Remove all rows contained by this statement. |
void |
setExecutionPlan(String plan)
|
void |
setStatementType(int statementType)
|
abstract int |
size()
Get the number of rows contained in this statement. |
abstract void |
unregisterTransaction()
Unregister statement from the transaction. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.firebirdsql.gds.IscStmtHandle |
|---|
getInSqlda, getOutSqlda, isAllRowsFetched |
| Field Detail |
|---|
public String statement
| Constructor Detail |
|---|
public AbstractIscStmtHandle()
| Method Detail |
|---|
public abstract void clearRows()
removeRows() in that it only affects rows
that have already been fetched.
removeRows()public abstract int getDeleteCount()
public abstract int getInsertCount()
public abstract byte[][][] getRows()
public abstract int getUpdateCount()
public abstract boolean hasOpenResultSet()
ResultSet.
true if this statement has an open
ResultSet, false otherwisepublic abstract boolean isSingletonResult()
true if result set has singleton result set.public abstract boolean isValid()
true if this is a valid statement,
false otherwisepublic abstract int size()
public abstract void removeRows()
clearRows() in that it effectively clears all rows from this
statement.
clearRows()public abstract void registerTransaction(AbstractIscTrHandle trHandle)
GDS.iscDsqlExecXXX methods to keep a reference on
current transaction in which statement is executed.
trHandle - instance of AbstractIscTrHandle.public abstract AbstractIscTrHandle getTransaction()
AbstractIscTrHandle or null
if statement is not assigned to a transaction.public abstract void unregisterTransaction()
public String getExecutionPlan()
IscStmtHandle
getExecutionPlan in interface IscStmtHandlenull if the execution plan was
not fetched from the server.public void setExecutionPlan(String plan)
public int getStatementType()
IscStmtHandle
getStatementType in interface IscStmtHandleIscStmtHandle.TYPE_UNKNOWN
when no statement type was received from the server.public void setStatementType(int statementType)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||