| org.apache.derby.vti.VTIEnvironment
All known Subclasses: org.apache.derby.impl.sql.compile.FromVTI, org.apache.derby.impl.sql.execute.VTIResultSet,
VTIEnvironment | public interface VTIEnvironment (Code) | | VTIEnvironment is an interface used in costing VTIs.
The interface is
passed as a parameter to various methods in the Virtual Table interface.
See Also: org.apache.derby.vti.VTICosting |
Method Summary | |
public String | getOriginalSQL() Return the SQL text of the original SQL statement. | public Object | getSharedState(String key) Get an an object associated with a key from set of objects maintained with the statement plan. | public int | getStatementIsolationLevel() Get the specific JDBC isolation of the statement. | public boolean | isCompileTime() Return true if this instance of the VTI has been created for compilation,
false if it is for runtime execution. | public void | setSharedState(String key, java.io.Serializable value) Saves an object associated with a key that will be maintained
for the lifetime of the statement plan. |
getOriginalSQL | public String getOriginalSQL()(Code) | | Return the SQL text of the original SQL statement.
|
getSharedState | public Object getSharedState(String key)(Code) | | Get an an object associated with a key from set of objects maintained with the statement plan.
|
getStatementIsolationLevel | public int getStatementIsolationLevel()(Code) | | Get the specific JDBC isolation of the statement. If it returns Connection.TRANSACTION_NONE
then no isolation was specified and the connection's isolation level is implied.
|
isCompileTime | public boolean isCompileTime()(Code) | | Return true if this instance of the VTI has been created for compilation,
false if it is for runtime execution.
|
setSharedState | public void setSharedState(String key, java.io.Serializable value)(Code) | | Saves an object associated with a key that will be maintained
for the lifetime of the statement plan.
Any previous value associated with the key is discarded.
Any saved object can be seen by any JDBC Connection that has a Statement object
that references the same statement plan.
|
|
|