Package org.smallmind.persistence.sql
Class PooledPreparedStatementCache
java.lang.Object
org.smallmind.persistence.sql.PooledPreparedStatementCache
- All Implemented Interfaces:
EventListener,StatementEventListener
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncachePreparedStatement(Object[] args, PooledPreparedStatement pooledStatement) voidclose()getPreparedStatement(Object[] args) voidstatementClosed(StatementEvent event) void
-
Constructor Details
-
PooledPreparedStatementCache
public PooledPreparedStatementCache(int maxStatements)
-
-
Method Details
-
cachePreparedStatement
public PreparedStatement cachePreparedStatement(Object[] args, PooledPreparedStatement pooledStatement) -
getPreparedStatement
-
statementClosed
- Specified by:
statementClosedin interfaceStatementEventListener
-
statementErrorOccurred
- Specified by:
statementErrorOccurredin interfaceStatementEventListener
-
close
public void close()
-