These are both dependents (of the schema objects and prepared statements they depend on) and providers. Prepared statements that are providers are cursors that end up being used in positioned delete and update statements (at present).
This is impl with the regular prepared statements; they will never have the cursor info fields set.
Stored prepared statements extend this implementation
| Modifier and Type | Class and Description |
|---|---|
| private static class | GenericPreparedStatement.
This class holds information about stale plan check interval, execution count and row count statistics for a GenericPreparedStatement. |
| Modifier and Type | Field and Description |
|---|---|
| protected GeneratedClass | |
| protected Timestamp | |
| protected long | |
| private Cacheable | cacheHolder
If non-null then this object is the cacheable that holds us in the cache. |
| protected long | |
| private boolean | |
| protected Timestamp | |
| private String | |
| private String | |
| protected ConstantAction | |
| protected long | |
| private int | |
| pack-priv boolean | invalidatedWhileCompiling
True if the statement was invalidated while it was being compiled. |
| protected boolean | |
| protected boolean | |
| private boolean | |
| protected long | |
| protected DataTypeDescriptor[] | |
| protected long | |
| private boolean | |
| protected List | |
| protected ResultDescription | |
| private GenericPreparedStatement. | rowCountStats
Holder for row counts and execution count. |
| protected Object[] | |
| protected String | |
| protected boolean | |
| private String | |
| public Statement | |
| protected ExecCursorTableReference | |
| protected List | |
| protected int | |
| protected String | |
| protected UUID | |
| private long | versionCounter
Incremented for each (re)compile. |
| private SQLWarning |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv final synchronized void | |
| pack-priv void | completeCompile(StatementNode
the query tree for this statement qt)Makes the prepared statement valid, assigning values for its query tree, generated class, and associated information. |
| pack-priv final synchronized void | endCompiling()
Signal that we're done compiling the statement and unblock others that are waiting for the compilation to finish. |
| public ResultSet | execute(Activation
The activation containing all the local state
to execute the plan. activation, boolean true if this is a meta-data query forMetaData, long timeout value in milliseconds. timeoutMillis)Implements org. Execute the PreparedStatement and return results, used for top level statements (not substatements) in a connection. |
| private ResultSet | Returns: the result set to be pawed throughthe activation to run. activation, boolean True if 1) the statement context is
NOT a top-level context, AND 2) in the event of a statement-level
exception, the parent context needs to be rolled back, too. rollbackParentContext, boolean true if this is a meta-data query forMetaData, long timeout value in milliseconds. timeoutMillis)The guts of execution. |
| public ResultSet | executeSubStatement(LanguageConnectionContext
language connection context lcc, boolean True if in the event of a statement-level
exception, the parent context needs to be rolled back, too. rollbackParentContext, long timeout value in milliseconds. timeoutMillis)Implements org. Execute a statement as part of another statement (without a nested connection) and return results. |
| public ResultSet | executeSubStatement(Activation
The activation of the superstatement parent, Activation The activation containing all the local state
to execute the plan for substatement activation, boolean True if in the event of a statement-level
exception, the parent context needs to be rolled back, too. rollbackParentContext, long timeout value in milliseconds. timeoutMillis)Implements org. Execute a statement as part of another statement (ithout a nested connection) and return results. |
| public void | finish(LanguageConnectionContext lcc)
Implements org. Finish marks a statement as totally unusable. |
| public Activation | getActivation(LanguageConnectionContext
The LanguageConnectionContext. lcc, boolean Scrollability scrollable)Implements org. Get a new activation instance. |
| public GeneratedClass | getActivationClass()
Implements org. Get the class generated for this prepared statement. |
| public Timestamp | Returns: Timestamp The timestamp for the beginning of compilation.Implements org. Get the timestamp for the beginning of compilation |
| public long | Returns: long The bind time for the associated query in milliseconds.Implements org. Get the bind time for the associated query in milliseconds. |
| pack-priv ByteArray | Returns: a byte code saver (null for us)Get the byte code saver for this statement. |
| public String | Returns: String Classname that this Dependable belongs to.Implements org. Get the Dependable's class type. |
| public ExecPreparedStatement | Returns: a new prepared statementImplements org. Get a new prepared statement that is a shallow copy of the current one. |
| public long | Returns: long The total compile time for the associated query in milliseconds.Implements org. Get the total compile time for the associated query in milliseconds. |
| public final SQLWarning | getCompileTimeWarnings()
Implements org. Return any compile time warnings. |
| public final ConstantAction | Returns: ConstantAction The big structure enclosing the Execution constants.Implements org. Get the Execution constants. |
| private static ContextService | |
| public Object | getCursorInfo()
Implements org. Return the cursor info in a single chunk. |
| public DependableFinder | Returns: the stored form of this DependableImplements org. Get an object which can be written to disk and which, when read from disk, will find or reconstruct this in-memory Dependable. |
| public Timestamp | Returns: Timestamp The timestamp for the end of compilation.Implements org. Get the timestamp for the end of compilation |
| public long | Returns: long The generate time for the associated query in milliseconds.Implements org. Get the generate time for the associated query in milliseconds. |
| public long | getInitialRowCount(int
the result set to get the initial row count for rsNum, long the current row count for the result set currentRowCount)Implements org. Get the initial row count of the specified result set. |
| private static ModuleFactory | |
| public UUID | Returns: String The Dependable's UUID String.Implements org. Get the Dependable's UUID String. |
| public String | Returns: String The name of this Dependable..Implements org. Return the name of this Dependable. |
| public long | Returns: long The optimize time for the associated query in milliseconds.Implements org. Get the optimize time for the associated query in milliseconds. |
| public DataTypeDescriptor | getParameterType(int
The 0-based index of the parameter idx)Implements org. Return the type of the parameter (0-based indexing) |
| public DataTypeDescriptor[] | getParameterTypes()
Implements org. Get an array of DataTypeDescriptors describing the types of the parameters of this PreparedStatement. |
| public long | Returns: long The parse time for the associated query in milliseconds.Implements org. Get the parse time for the associated query in milliseconds. |
| public List | |
| public ResultDescription | getResultDescription()
Implements org. Get the ResultDescription for the statement. |
| public final Object | Returns: the requested saved object.The object to get. objectNum)Implements org. Get the specified saved object. |
| public final List | Returns: all the saved objectsImplements org. Get the saved objects. |
| public String | getSource()
Implements org. Return the SQL string that this statement is for. |
| public String | getSPSName()
Implements org. Return the SPS Name for this statement. |
| public int | getStalePlanCheckInterval()
Implements org. Get the stale plan check interval. |
| public ExecCursorTableReference | Returns: target table of the cursorImplements org. the target table of the cursor |
| public int | Returns: The update mode of the cursorImplements org. the update mode of the cursor |
| public final long | getVersionCounter()
Implements org. Get the version counter. |
| public boolean | hasUpdateColumns()
Implements org. Check if this prepared statement has a cursor with columns that can be updated. |
| public int | incrementExecutionCount()
Implements org. Increment and return the execution count for this statement. |
| public final void | |
| public boolean | Returns: boolean Whether or not this Statement is atomicImplements org. Returns whether or not this Statement requires should behave atomically -- i.e. whether a user is permitted to do a commit/rollback during the execution of this statement. |
| pack-priv final synchronized boolean | |
| public boolean | Returns: boolean Whether or not this dependent is persistent.Implements org. Is this dependent persistent? |
| public boolean | |
| public boolean | isUpdateColumn(String columnName)
Implements org. Check if the specified column name is one of the update columns. |
| private boolean | Returns: true if this statement is up to date, false
otherwiseUnsynchronized helper method for |
| public boolean | Returns: true if the dependent is currently validImplements org. Check that all of the dependent's dependencies are valid. |
| public void | makeInvalid(int
The action causing the invalidation action, LanguageConnectionContext The LanguageConnectionContext lcc)Implements org. Mark the dependent as invalid (due to at least one of its dependencies being invalid). |
| public boolean | Returns: true if this statement needs a savepoint.Implements org. Does this statement need a savepoint? |
| public void | prepareToInvalidate(Provider
the provider p, int The action causing the invalidation action, LanguageConnectionContext The LanguageConnectionContext lcc)Implements org. Prepare to mark the dependent as invalid (due to at least one of its dependencies being invalid). |
| public boolean | Returns: true if references SESSION schema tables, else falseImplements org. Return true if the query node for this statement references SESSION schema tables/views. |
| public boolean | Returns: true if references SESSION schema tables/views, else falseReturn true if the QueryTreeNode references SESSION schema tables/views. |
| public void | rePrepare(LanguageConnectionContext
The LanguageConnectionContext. lcc)Implements org. Re-prepare the statement if it is not up to date or, if requested, simply not optimal. |
| public void | |
| pack-priv void | |
| public void | |
| protected void | setCompileTimeMillis(long parseTime, long bindTime, long optimizeTime, long generateTime, long
The compile time compileTime, Timestamp beginCompileTimestamp, Timestamp endCompileTimestamp)Set the compile time for this prepared statement. |
| pack-priv void | |
| pack-priv final void | setConstantAction(ConstantAction
The big structure enclosing the Execution constants. constantAction)Set the Execution constants. |
| pack-priv void | |
| pack-priv void | setExecuteStatementNameAndSchema(String execStmtName, String execSchemaName)
Set the name of the statement and schema for an "execute statement" command. |
| pack-priv void | setIsAtomic(boolean
true if this statement must be atomic
(i.e. it is not ok to do a commit/rollback in the middle) isAtomic)Set the stmts 'isAtomic' state. |
| pack-priv void | setNeedsSavepoint(boolean
true if this statement needs a savepoint. needsSavepoint)Set the stmts 'needsSavepoint' state. |
| public void | |
| pack-priv final void | |
| public void | setSource(String
the source text text)Implements org. set the statement text |
| public void | setSPSAction()
Implements org. Indicate this prepared statement is an SPS action, currently used by GenericTriggerExecutor. |
| public final void | |
| public void | setStalePlanCheckInterval(int
the stale plan check interval interval)Implements org. Set the stale plan check interval. |
| public void | setValid()
Implements org. set this prepared statement to be valid, currently used by GenericTriggerExecutor. |
| public String | |
| public synchronized boolean | upToDate()
Implements org. Checks whether this PreparedStatement is up to date. |
| public synchronized boolean | upToDate(GeneratedClass
a generated class that must be identical to gc)getActivationClass() for this method to return trueImplements org. Check whether this statement is up to date and its generated class is identical to the supplied class object. |