|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--planetj.dataengine.cache.PreparedStatementCache
Keeps track of the statements that have been prepared by a connection.
Nested Class Summary | |
static class |
PreparedStatementCache.OrderedStringMapping
Contains a SQL String from which a PreparedStatement was prepared, and the last time that PreparedStatement was accessed. |
Constructor Summary | |
PreparedStatementCache()
PreparedStatementCache constructor comment. |
Method Summary | |
PreparedStatement |
getPreparedStatement(String sql,
long time)
Gets a prepared statement out of the cache. |
List |
getStatements()
Gets a List of what statements have been prepared in this Connection. |
String |
setPreparedStatement(String sql,
PreparedStatement statement,
long time)
Sets a prepared statement in the cache. |
int |
size()
Returns the number of cached prepared statements. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PreparedStatementCache()
Method Detail |
public PreparedStatement getPreparedStatement(String sql, long time)
sql
- The SQL string from which the prepared statement has been (or should be) preparedtime
- When the prepared statement was requested
public List getStatements()
public String setPreparedStatement(String sql, PreparedStatement statement, long time) throws SQLException
sql
- The SQL string from which the prepared statement has been (or should be) preparedstatement
- The prepared statementtime
- When the prepared statement was requested
SQLException
public int size()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |