public class CallableStatementCache extends LinkedHashMap<CallableStatementCacheKey,CallableStatement>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier and Type | Method and Description |
---|---|
static CallableStatementCache |
newInstance(int size) |
CallableStatement |
putIfNone(CallableStatementCacheKey key,
CallableStatement value)
Add prepared statement to cache.
|
protected boolean |
removeEldestEntry(Map.Entry<CallableStatementCacheKey,CallableStatement> eldest) |
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, replaceAll, values
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
equals, hashCode, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
public static CallableStatementCache newInstance(int size)
public CallableStatement putIfNone(CallableStatementCacheKey key, CallableStatement value)
key
- sqlvalue
- prepareResultprotected boolean removeEldestEntry(Map.Entry<CallableStatementCacheKey,CallableStatement> eldest)
removeEldestEntry
in class LinkedHashMap<CallableStatementCacheKey,CallableStatement>
Copyright © 2016. All rights reserved.