public interface ExecPreparedStatement extends PreparedStatement
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
Modifier and Type | Method and Description |
---|---|
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.
|
long |
getInitialRowCount(int rsNum,
long currentRowCount)
Get the initial row count of the specified result set.
|
java.util.List<StatementPermission> |
getRequiredPermissionsList() |
java.lang.Object |
getSavedObject(int objectNum)
Get a saved object by number.
|
java.util.List<java.lang.Object> |
getSavedObjects()
Get all the saved objects.
|
int |
getStalePlanCheckInterval()
Get the stale plan check interval.
|
ExecCursorTableReference |
getTargetTable()
the target table of the cursor
|
int |
getUpdateMode()
the update mode of the cursor
|
boolean |
hasUpdateColumns()
Check if this prepared statement has a cursor with columns that
can be updated.
|
int |
incrementExecutionCount()
Increment and return the execution count for this statement.
|
boolean |
isUpdateColumn(java.lang.String columnName)
Check if the specified column name is one of the update columns.
|
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 |
setStalePlanCheckInterval(int interval)
Set the stale plan check interval.
|
void |
setValid()
set this prepared 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.
|
execute, executeSubStatement, executeSubStatement, getActivation, getBeginCompileTimestamp, getBindTimeInMillis, getCompileTimeInMillis, getCompileTimeWarnings, getEndCompileTimestamp, getGenerateTimeInMillis, getOptimizeTimeInMillis, getParameterType, getParameterTypes, getParseTimeInMillis, getResultDescription, getSource, getSPSName, getVersionCounter, isAtomic, referencesSessionSchema, rePrepare, upToDate
isValid, makeInvalid, prepareToInvalidate
getClassType, getDependableFinder, getObjectID, getObjectName, isPersistent
void setSource(java.lang.String txt)
txt
- the source textConstantAction getConstantAction()
java.lang.Object getSavedObject(int objectNum)
java.util.List<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
otherwiseStandardException
PreparedStatement.upToDate()
,
getActivationClass()
void finish(LanguageConnectionContext lcc)
boolean needsSavepoint()
ExecPreparedStatement getClone() throws StandardException
StandardException
- on errorint getUpdateMode()
ExecCursorTableReference getTargetTable()
boolean hasUpdateColumns()
boolean isUpdateColumn(java.lang.String columnName)
void setValid()
void setSPSAction()
java.util.List<StatementPermission> getRequiredPermissionsList()
int incrementExecutionCount()
long getInitialRowCount(int rsNum, long currentRowCount)
rsNum
- the result set to get the initial row count forcurrentRowCount
- the current row count for the result setvoid setStalePlanCheckInterval(int interval)
interval
- the stale plan check intervalint getStalePlanCheckInterval()
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.