|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ExecPreparedStatement
Execution extends prepared statement to add methods it needs for execution purposes (that should not be on the Database API).
| Field Summary |
|---|
| Fields inherited from interface org.apache.derby.catalog.Dependable |
|---|
ACTIVATION, ALIAS, COLUMNS_IN_TABLE, COLUMNS_PERMISSION, CONGLOMERATE, CONSTRAINT, DEFAULT, FILE, HEAP, INDEX, PERM, PREPARED_STATEMENT, ROLE_GRANT, ROUTINE_PERMISSION, SCHEMA, SEQUENCE, STORED_PREPARED_STATEMENT, TABLE, TABLE_PERMISSION, TRIGGER, VIEW |
| Method Summary | |
|---|---|
void |
finish(LanguageConnectionContext lcc)
Mark the statement as unusable, i.e. the system is finished with it and no one should be able to use it. |
GeneratedClass |
getActivationClass()
Get the class generated for this prepared statement. |
ExecPreparedStatement |
getClone()
Get a new prepared statement that is a shallow copy of the current one. |
ConstantAction |
getConstantAction()
Get the Execution constants. |
java.lang.Object |
getCursorInfo()
Get the saved cursor info. |
java.util.List |
getRequiredPermissionsList()
|
java.lang.Object |
getSavedObject(int objectNum)
Get a saved object by number. |
java.lang.Object[] |
getSavedObjects()
Get all the saved objects. |
ResultColumnDescriptor[] |
getTargetColumns()
the target columns of the cursor; this is a superset of the updatable columns, describing the row available |
ExecCursorTableReference |
getTargetTable()
the target table of the cursor |
java.lang.String[] |
getUpdateColumns()
the update columns of the cursor |
int |
getUpdateMode()
the update mode of the cursor |
boolean |
needsSavepoint()
Does this statement need a savpoint |
void |
setSource(java.lang.String txt)
set the statement text |
void |
setSPSAction()
Indicate that the statement represents an SPS action |
void |
setValid()
set this parepared statement to be valid |
boolean |
upToDate(GeneratedClass gc)
Checks whether this PreparedStatement is up to date and its activation class is identical to the supplied generated class. |
| Methods inherited from interface org.apache.derby.iapi.sql.PreparedStatement |
|---|
execute, executeSubStatement, executeSubStatement, getActivation, getBeginCompileTimestamp, getBindTimeInMillis, getCompileTimeInMillis, getCompileTimeWarnings, getEndCompileTimestamp, getGenerateTimeInMillis, getOptimizeTimeInMillis, getParameterTypes, getParseTimeInMillis, getResultDescription, getSource, getSPSName, isAtomic, referencesSessionSchema, rePrepare, upToDate |
| Methods inherited from interface org.apache.derby.iapi.sql.depend.Dependent |
|---|
isValid, makeInvalid, prepareToInvalidate |
| Methods inherited from interface org.apache.derby.catalog.Dependable |
|---|
getClassType, getDependableFinder, getObjectID, getObjectName, isPersistent |
| Method Detail |
|---|
void setSource(java.lang.String txt)
txt - the source textConstantAction getConstantAction()
java.lang.Object getSavedObject(int objectNum)
java.lang.Object[] getSavedObjects()
java.lang.Object getCursorInfo()
GeneratedClass getActivationClass()
throws StandardException
StandardException - on error obtaining class
(probably when a stored prepared statement is loading)
boolean upToDate(GeneratedClass gc)
throws StandardException
Checks whether this PreparedStatement is up to date and its activation
class is identical to the supplied generated class. A call to upToDate(gc) is supposed to perform the same work as the following code
in one atomic operation:
getActivationClass() == gc && upToDate()
gc - a generated class that must be identical to getActivationClass() for this method to return true
true if this statement is up to date and its activation
class is identical to gc, false otherwise
StandardExceptionPreparedStatement.upToDate(),
getActivationClass()void finish(LanguageConnectionContext lcc)
boolean needsSavepoint()
ExecPreparedStatement getClone()
throws StandardException
StandardException - on errorint getUpdateMode()
ExecCursorTableReference getTargetTable()
ResultColumnDescriptor[] getTargetColumns()
java.lang.String[] getUpdateColumns()
void setValid()
void setSPSAction()
java.util.List getRequiredPermissionsList()
|
Built on Thu 2012-03-29 21:53:33+0000, from revision ??? | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||