public 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()
| Modifier and Type | Field and Description |
|---|---|
private static ResultColumnDescriptor[] |
columnInfo |
private GenericPreparedStatement |
currentPs |
private java.util.Vector |
data |
private static java.sql.ResultSetMetaData |
metadata |
private int |
position |
private boolean |
wasNull |
| Constructor and Description |
|---|
StatementCache() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
getBoolean(int colId) |
java.sql.ResultSetMetaData |
getMetaData() |
java.lang.String |
getString(int colId) |
java.sql.Timestamp |
getTimestamp(int colId) |
boolean |
next() |
boolean |
wasNull() |
getBigDecimal, getBigDecimal, getBoolean, getByte, getBytes, getDate, getDouble, getFloat, getInt, getLong, getObject, getShort, getString, getTime, getTimestampabsolute, afterLast, beforeFirst, cancelRowUpdates, clearWarnings, deleteRow, findColumn, first, getArray, getArray, getAsciiStream, getAsciiStream, getBigDecimal, getBigDecimal, getBinaryStream, getBinaryStream, getBlob, getBlob, getByte, getBytes, getCharacterStream, getCharacterStream, getClob, getClob, getConcurrency, getCursorName, getDate, getDate, getDate, getDouble, getFetchDirection, getFetchSize, getFloat, getInt, getLong, getObject, getObject, getObject, getRef, getRef, getRow, getShort, getStatement, getTime, getTime, getTime, getTimestamp, getTimestamp, getType, getUnicodeStream, getUnicodeStream, getURL, getURL, getWarnings, insertRow, isAfterLast, isBeforeFirst, isFirst, isLast, last, moveToCurrentRow, moveToInsertRow, notImplemented, previous, refreshRow, relative, rowDeleted, rowInserted, rowUpdated, setFetchDirection, setFetchSize, updateArray, updateArray, updateAsciiStream, updateAsciiStream, updateBigDecimal, updateBigDecimal, updateBinaryStream, updateBinaryStream, updateBlob, updateBlob, updateBoolean, updateBoolean, updateByte, updateByte, updateBytes, updateBytes, updateCharacterStream, updateCharacterStream, updateClob, updateClob, updateDate, updateDate, updateDouble, updateDouble, updateFloat, updateFloat, updateInt, updateInt, updateLong, updateLong, updateNull, updateNull, updateObject, updateObject, updateObject, updateObject, updateRef, updateRef, updateRow, updateShort, updateShort, updateString, updateString, updateTime, updateTime, updateTimestamp, updateTimestampclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHoldability, getNCharacterStream, getNCharacterStream, getNClob, getNClob, getNString, getNString, getObject, getObject, getRowId, getRowId, getSQLXML, getSQLXML, isClosed, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBlob, updateBlob, updateBlob, updateBlob, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateClob, updateClob, updateClob, updateClob, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNString, updateNString, updateObject, updateObject, updateObject, updateObject, updateRowId, updateRowId, updateSQLXML, updateSQLXMLprivate int position
private java.util.Vector 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()
next in interface java.sql.ResultSetnext in class VTITemplatepublic void close()
close in interface java.lang.AutoCloseableclose in interface java.sql.ResultSetclose in class VTITemplatepublic java.lang.String getString(int colId)
getString in interface java.sql.ResultSetgetString in class VTITemplateBasepublic boolean getBoolean(int colId)
getBoolean in interface java.sql.ResultSetgetBoolean in class VTITemplateBasepublic java.sql.Timestamp getTimestamp(int colId)
getTimestamp in interface java.sql.ResultSetgetTimestamp in class VTITemplateBasepublic boolean wasNull()
wasNull in interface java.sql.ResultSetwasNull in class VTITemplateBasepublic java.sql.ResultSetMetaData getMetaData()
getMetaData in interface java.sql.ResultSetgetMetaData in class VTITemplateBaseApache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.