|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectplanetj.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 | |
java.sql.PreparedStatement |
getPreparedStatement(java.lang.String sql,
long time)
Gets a prepared statement out of the cache. |
java.util.List |
getStatements()
Gets a List of what statements have been prepared in this Connection. |
java.lang.String |
setPreparedStatement(java.lang.String sql,
java.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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PreparedStatementCache()
Method Detail |
public java.sql.PreparedStatement getPreparedStatement(java.lang.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 java.util.List getStatements()
public java.lang.String setPreparedStatement(java.lang.String sql, java.sql.PreparedStatement statement, long time) throws java.sql.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
java.sql.SQLException
public int size()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |