java.lang.AutoCloseable, java.sql.ResultSet, java.sql.Wrapper, AwareVTIpublic final class StatementCache extends VTITemplate
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()
VTITemplate.ColumnDescriptor| Modifier and Type | Field | Description |
|---|---|---|
private static ResultColumnDescriptor[] |
columnInfo |
|
private GenericPreparedStatement |
currentPs |
|
private java.util.Vector<GenericPreparedStatement> |
data |
|
private static java.sql.ResultSetMetaData |
metadata |
|
private int |
position |
|
private boolean |
wasNull |
| Constructor | Description |
|---|---|
StatementCache() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
boolean |
getBoolean(int colId) |
|
private static Context |
getContextOrNull(java.lang.String contextID) |
Privileged lookup of a Context.
|
java.sql.ResultSetMetaData |
getMetaData() |
|
java.lang.String |
getString(int colId) |
|
java.sql.Timestamp |
getTimestamp(int colId) |
|
boolean |
next() |
|
boolean |
wasNull() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitupdateObject, updateObject, updateObject, updateObjectabsolute, afterLast, beforeFirst, cancelRowUpdates, clearWarnings, deleteRow, findColumn, first, getArray, getArray, getAsciiStream, getAsciiStream, getBigDecimal, getBigDecimal, getBigDecimal, getBigDecimal, getBinaryStream, getBinaryStream, getBlob, getBlob, getBoolean, getByte, getByte, getBytes, getBytes, getCharacterStream, getCharacterStream, getClob, getClob, getConcurrency, getContext, getCursorName, getDate, getDate, getDate, getDate, getDouble, getDouble, getFetchDirection, getFetchSize, getFloat, getFloat, getHoldability, getInt, getInt, getLong, getLong, getNCharacterStream, getNCharacterStream, getNClob, getNClob, getNString, getNString, getObject, getObject, getObject, getObject, getObject, getObject, getRef, getRef, getReturnTableSignature, getRow, getRowId, getRowId, getShort, getShort, getSQLXML, getSQLXML, getStatement, getString, getTime, getTime, getTime, getTime, getTimestamp, getTimestamp, getTimestamp, getType, getUnicodeStream, getUnicodeStream, getURL, getURL, getWarnings, insertRow, isAfterLast, isBeforeFirst, isClosed, isFirst, isLast, isWrapperFor, last, moveToCurrentRow, moveToInsertRow, notImplemented, previous, refreshRow, relative, rowDeleted, rowInserted, rowUpdated, setContext, setFetchDirection, setFetchSize, unwrap, updateArray, updateArray, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateBigDecimal, updateBigDecimal, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBlob, updateBlob, updateBlob, updateBlob, updateBlob, updateBlob, updateBoolean, updateBoolean, updateByte, updateByte, updateBytes, updateBytes, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateClob, updateClob, updateClob, updateClob, updateClob, updateClob, updateDate, updateDate, updateDouble, updateDouble, updateFloat, updateFloat, updateInt, updateInt, updateLong, updateLong, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNString, updateNString, updateNull, updateNull, updateObject, updateObject, updateObject, updateObject, updateRef, updateRef, updateRow, updateRowId, updateRowId, updateShort, updateShort, updateSQLXML, updateSQLXML, updateString, updateString, updateTime, updateTime, updateTimestamp, updateTimestampprivate int position
private java.util.Vector<GenericPreparedStatement> data
private GenericPreparedStatement currentPs
private boolean wasNull
private static final ResultColumnDescriptor[] columnInfo
private static final java.sql.ResultSetMetaData metadata
public StatementCache()
throws StandardException
StandardExceptionpublic boolean next()
public void close()
public java.lang.String getString(int colId)
getString in interface java.sql.ResultSetgetString in class VTITemplatepublic boolean getBoolean(int colId)
getBoolean in interface java.sql.ResultSetgetBoolean in class VTITemplatepublic java.sql.Timestamp getTimestamp(int colId)
getTimestamp in interface java.sql.ResultSetgetTimestamp in class VTITemplatepublic boolean wasNull()
wasNull in interface java.sql.ResultSetwasNull in class VTITemplatepublic java.sql.ResultSetMetaData getMetaData()
getMetaData in interface java.sql.ResultSetgetMetaData in class VTITemplateprivate static Context getContextOrNull(java.lang.String contextID)
Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.