public class SqlStatementCache extends HashMap<String,PreparedStatement>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
SqlStatementCache()
create new instance.
|
| Modifier and Type | Method and Description |
|---|---|
String |
buildCacheId(ISqlGenerator.EStatementType eStatement,
Row aMeta,
IDBBackendQuery iQuery)
generate a new unique cache id for the given set of information.
|
void |
clear()
We overload the original clear () method to make sure our cached
PreparedStatement objects will be cleaned up in the right way ...
|
clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesequals, hashCode, toStringpublic String buildCacheId(ISqlGenerator.EStatementType eStatement, Row aMeta, IDBBackendQuery iQuery) throws Exception
eStatement - [IN]
describe the statement in general.
(e.g. insert, update, delete ...)aMeta - [IN]
a set of meta information.
(e.g. table name)iQuery - [IN]
the query itself where the prepared statement will stand for.
(e.g. we use the query id here)Exceptionpublic void clear()
clear in interface Map<String,PreparedStatement>clear in class HashMap<String,PreparedStatement>Copyright © 2016 as-development.net. All rights reserved.