|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.derby.vti.VTITemplateBase
org.apache.derby.vti.VTITemplate
org.apache.derby.diag.StatementCache
public final class StatementCache
StatementCache is a virtual table that shows the contents of the SQL statement cache. This virtual table can be invoked by calling it directly.
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()
| Field Summary | |
|---|---|
private static ResultColumnDescriptor[] |
columnInfo
|
private GenericPreparedStatement |
currentPs
|
private java.util.Vector |
data
|
private static java.sql.ResultSetMetaData |
metadata
|
private int |
position
|
private boolean |
wasNull
|
| Fields inherited from interface java.sql.ResultSet |
|---|
CLOSE_CURSORS_AT_COMMIT, CONCUR_READ_ONLY, CONCUR_UPDATABLE, FETCH_FORWARD, FETCH_REVERSE, FETCH_UNKNOWN, HOLD_CURSORS_OVER_COMMIT, TYPE_FORWARD_ONLY, TYPE_SCROLL_INSENSITIVE, TYPE_SCROLL_SENSITIVE |
| Constructor Summary | |
|---|---|
StatementCache()
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class org.apache.derby.vti.VTITemplate |
|---|
getBigDecimal, getBigDecimal, getBoolean, getByte, getBytes, getDate, getDouble, getFloat, getInt, getLong, getObject, getShort, getString, getTime, getTimestamp |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.sql.ResultSet |
|---|
getHoldability, getNCharacterStream, getNCharacterStream, getNClob, getNClob, getNString, getNString, 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, updateRowId, updateRowId, updateSQLXML, updateSQLXML |
| Methods inherited from interface java.sql.Wrapper |
|---|
isWrapperFor, unwrap |
| Field Detail |
|---|
private 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
| Constructor Detail |
|---|
public StatementCache()
throws StandardException
StandardException| Method Detail |
|---|
public boolean next()
next in interface java.sql.ResultSetnext in class VTITemplatepublic void close()
close 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 VTITemplateBase
|
Built on Wed 2013-06-12 15:21:56+0000, from revision ??? | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||