|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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 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 java.sql.SQLException
java.sql.SQLException
Method Detail |
---|
public boolean next()
public void close()
public java.lang.String getString(int colId)
getString
in interface java.sql.ResultSet
getString
in class VTITemplate
ResultSet
public boolean getBoolean(int colId)
getBoolean
in interface java.sql.ResultSet
getBoolean
in class VTITemplate
ResultSet
public java.sql.Timestamp getTimestamp(int colId)
getTimestamp
in interface java.sql.ResultSet
getTimestamp
in class VTITemplate
ResultSet
public boolean wasNull()
wasNull
in interface java.sql.ResultSet
wasNull
in class VTITemplate
ResultSet
public java.sql.ResultSetMetaData getMetaData()
|
Built on Thu 2010-12-23 20:49:13+0000, from revision ??? | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |