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