Method Summary |
|
void | completeCompile(QueryTreeNode qt) Makes the prepared statement valid, assigning
values for its query tree, generated class,
and associated information. |
public ResultSet | execute(LanguageConnectionContext lcc, boolean rollbackParentContext, long timeoutMillis) |
public ResultSet | execute(Activation activation, boolean rollbackParentContext, long timeoutMillis) The guts of execution. |
public void | finish(LanguageConnectionContext lcc) Finish marks a statement as totally unusable. |
public synchronized Activation | getActivation(LanguageConnectionContext lcc, boolean scrollable) Get a new activation instance. |
public GeneratedClass | getActivationClass() |
public Timestamp | getBeginCompileTimestamp() |
public long | getBindTimeInMillis() Get the bind time for the associated query in milliseconds. |
ByteArray | getByteCodeSaver() Get the byte code saver for this statement.
Overridden for StorablePreparedStatement. |
public String | getClassType() Get the Dependable's class type. |
public ExecPreparedStatement | getClone() Get a new prepared statement that is a shallow copy
of the current one. |
public long | getCompileTimeInMillis() Get the total compile time for the associated query in milliseconds. |
final public SQLWarning | getCompileTimeWarnings() |
final public ConstantAction | getConstantAction() Get the Execution constants. |
public Object | getCursorInfo() Return the cursor info in a single chunk. |
public DependableFinder | getDependableFinder() |
public Timestamp | getEndCompileTimestamp() |
public long | getGenerateTimeInMillis() Get the generate time for the associated query in milliseconds. |
public UUID | getObjectID() Get the Dependable's UUID String. |
public String | getObjectName() Return the name of this Dependable. |
public long | getOptimizeTimeInMillis() Get the optimize time for the associated query in milliseconds. |
public DataTypeDescriptor[] | getParameterTypes() |
public long | getParseTimeInMillis() Get the parse time for the associated query in milliseconds. |
public List | getRequiredPermissionsList() |
public ResultDescription | getResultDescription() |
public String | getSPSName() |
final public Object | getSavedObject(int objectNum) Get the specified saved object. |
final public Object[] | getSavedObjects() Get the saved objects. |
public String | getSource() |
public ResultColumnDescriptor[] | getTargetColumns() |
public ExecCursorTableReference | getTargetTable() |
public String[] | getUpdateColumns() |
public int | getUpdateMode() |
public boolean | isAtomic() Returns whether or not this Statement requires should
behave atomically -- i.e. |
public boolean | isPersistent() Is this dependent persistent? A stored dependency will be required
if both the dependent and provider are persistent. |
public boolean | isStorable() |
public boolean | isValid() Check that all of the dependent's dependencies are valid. |
public void | makeInvalid(int action, LanguageConnectionContext lcc) Mark the dependent as invalid (due to at least one of
its dependencies being invalid). |
public void | makeValid(LanguageConnectionContext lcc) Attempt to revalidate the dependent. |
public boolean | needsSavepoint() |
public void | prepareToInvalidate(Provider p, int action, LanguageConnectionContext lcc) Prepare to mark the dependent as invalid (due to at least one of
its dependencies being invalid). |
public void | rePrepare(LanguageConnectionContext lcc) |
public boolean | referencesSessionSchema() Return true if the query node for this statement references SESSION schema
tables/views.
This method gets called at the very beginning of the compile phase of any statement.
If the statement which needs to be compiled is already found in cache, then there is
no need to compile it again except the case when the statement is referencing SESSION
schema objects. |
public boolean | referencesSessionSchema(QueryTreeNode qt) Return true if the QueryTreeNode references SESSION schema tables/views.
The return value is also saved in the local field because it will be
used by referencesSessionSchema() method. |
void | setActivationClass(GeneratedClass ac) |
public void | setCacheHolder(Cacheable cacheHolder) |
protected void | setCompileTimeMillis(long parseTime, long bindTime, long optimizeTime, long generateTime, long compileTime, Timestamp beginCompileTimestamp, Timestamp endCompileTimestamp) Set the compile time for this prepared statement. |
void | setCompileTimeWarnings(SQLWarning warnings) |
final void | setConstantAction(ConstantAction constantAction) Set the Execution constants. |
void | setCursorInfo(CursorInfo cursorInfo) |
void | setExecuteStatementNameAndSchema(String execStmtName, String execSchemaName) Set the name of the statement and schema for an "execute statement"
command. |
void | setIsAtomic(boolean isAtomic) Set the stmts 'isAtomic' state. |
void | setNeedsSavepoint(boolean needsSavepoint) Set the stmts 'needsSavepoint' state. |
public void | setRequiredPermissionsList(List requiredPermissionsList) |
public void | setSPSAction() Indicate this prepared statement is an SPS action, currently used
by GenericTriggerExecutor. |
final public void | setSPSName(String name) |
final void | setSavedObjects(Object[] objects) Set the saved objects. |
public void | setSource(String text) |
public void | setValid() set this prepared statement to be valid, currently used by
GenericTriggerExecutor. |
public String | toString() |
public synchronized boolean | upToDate() |