public class PrepareStatementCache extends LinkedHashMap<PrepareStatementCacheKey,PrepareResult>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier and Type | Method and Description |
---|---|
static PrepareStatementCache |
newInstance(int size,
Protocol protocol) |
PrepareResult |
putIfNone(PrepareStatementCacheKey key,
PrepareResult value)
Add prepared statement to cache.
|
protected boolean |
removeEldestEntry(Map.Entry<PrepareStatementCacheKey,PrepareResult> 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 PrepareStatementCache newInstance(int size, Protocol protocol)
public PrepareResult putIfNone(PrepareStatementCacheKey key, PrepareResult value)
key
- sqlvalue
- prepareResultprotected boolean removeEldestEntry(Map.Entry<PrepareStatementCacheKey,PrepareResult> eldest)
removeEldestEntry
in class LinkedHashMap<PrepareStatementCacheKey,PrepareResult>
Copyright © 2016. All rights reserved.