public class SqlPreparedStatementManager<T>
extends java.lang.Object
Note that it uses HashMaps internally for speed so String comparisons will be case-sensitive on keys and text (e.g., if you use the SQL itself as a key).
Copyright 2009 Partner Software, Inc.
| Constructor and Description |
|---|
SqlPreparedStatementManager(SqlConnection connection) |
| Modifier and Type | Method and Description |
|---|---|
SqlPreparedStatement |
createStatement(T key,
java.lang.String sql,
java.util.List<java.lang.String> values) |
void |
removeAll() |
void |
removeStatementFor(T key)
Closes and removes a statement.
|
boolean |
statementExistsFor(T key) |
SqlPreparedStatement |
statementFor(T key) |
public SqlPreparedStatementManager(SqlConnection connection)
public boolean statementExistsFor(T key)
public SqlPreparedStatement statementFor(T key)
public SqlPreparedStatement createStatement(T key, java.lang.String sql, java.util.List<java.lang.String> values) throws java.sql.SQLException
java.sql.SQLExceptionpublic void removeStatementFor(T key) throws java.sql.SQLException
key - java.sql.SQLExceptionpublic void removeAll()
throws java.sql.SQLException
java.sql.SQLException