select * from new org.apache.derby.diag.StatementCache() t
The StatementCache virtual table has the following columns:
The internal identifier of a cached statement matches the toString() method of a PreparedStatement object for a Derby database.
This class also provides a static method to empty the statement cache, StatementCache.emptyCache()
| Modifier and Type | Field and Description |
|---|---|
| private static final ResultColumnDescriptor[] | |
| private GenericPreparedStatement | |
| private Vector | |
| private static final ResultSetMetaData | |
| private int | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements java. Releases this |
| public boolean | getBoolean(int
the first column is 1, the second is 2, ... colId)Overrides org. Implements java. Retrieves the value of the designated column in the current row
of this |
| private static Context | getContextOrNull(final String contextID)
Must be private so that user code can't call this entry point. |
| public ResultSetMetaData | getMetaData()
Overrides org. Implements java. Retrieves the number, types and properties of
this |
| public String | getString(int
the first column is 1, the second is 2, ... colId)Overrides org. Implements java. Retrieves the value of the designated column in the current row
of this |
| public Timestamp | getTimestamp(int
the first column is 1, the second is 2, ... colId)Overrides org. Implements java. Retrieves the value of the designated column in the current row
of this |
| public boolean | next()
Implements java. Moves the cursor forward one row from its current position. |
| public boolean | wasNull()
Overrides org. Implements java. Reports whether
the last column read had a value of SQL |
| columnInfo | back to summary |
|---|---|
| private static final ResultColumnDescriptor[] columnInfo | |
| currentPs | back to summary |
|---|---|
| private GenericPreparedStatement currentPs | |
| data | back to summary |
|---|---|
| private Vector<GenericPreparedStatement> data | |
| metadata | back to summary |
|---|---|
| private static final ResultSetMetaData metadata | |
| position | back to summary |
|---|---|
| private int position | |
| wasNull | back to summary |
|---|---|
| private boolean wasNull | |
| StatementCache | back to summary |
|---|---|
| public StatementCache() throws StandardException | |
| close | back to summary |
|---|---|
| public void close() Implements java. Doc from java. Releases this The closing of a
When a Note A
Calling the method | |
| getBoolean | back to summary |
|---|---|
| public boolean getBoolean(int colId) Overrides org. Implements java. Doc from java. Retrieves the value of the designated column in the current row
of this If the designated column has a datatype of CHAR or VARCHAR
and contains a "0" or has a datatype of BIT, TINYINT, SMALLINT, INTEGER or BIGINT
and contains a 0, a value of
| |
| getContextOrNull | back to summary |
|---|---|
| private static Context getContextOrNull(final String contextID) Must be private so that user code can't call this entry point. | |
| getMetaData | back to summary |
|---|---|
| public ResultSetMetaData getMetaData() Overrides org. Implements java. Doc from java. Retrieves the number, types and properties of
this
| |
| getString | back to summary |
|---|---|
| public String getString(int colId) Overrides org. Implements java. Doc from java. Retrieves the value of the designated column in the current row
of this
| |
| getTimestamp | back to summary |
|---|---|
| public Timestamp getTimestamp(int colId) Overrides org. Implements java. Doc from java. Retrieves the value of the designated column in the current row
of this
| |
| next | back to summary |
|---|---|
| public boolean next() Implements java. Doc from java. Moves the cursor forward one row from its current position.
A
When a call to the If an input stream is open for the current row, a call
to the method
| |
| wasNull | back to summary |
|---|---|
| public boolean wasNull() Overrides org. Implements java. Doc from java. Reports whether
the last column read had a value of SQL
| |