Package org.mariadb.jdbc.internal.util
Class CallableStatementCache
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<K,V>
-
- java.util.LinkedHashMap<CallableStatementCacheKey,java.sql.CallableStatement>
-
- org.mariadb.jdbc.internal.util.CallableStatementCache
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.util.Map<CallableStatementCacheKey,java.sql.CallableStatement>
public class CallableStatementCache extends java.util.LinkedHashMap<CallableStatementCacheKey,java.sql.CallableStatement>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private int
maxSize
-
Constructor Summary
Constructors Modifier Constructor Description private
CallableStatementCache(int size)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CallableStatementCache
newInstance(int size)
protected boolean
removeEldestEntry(java.util.Map.Entry<CallableStatementCacheKey,java.sql.CallableStatement> eldest)
-
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, replaceAll, values
-
Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
-
-
-
-
Method Detail
-
newInstance
public static CallableStatementCache newInstance(int size)
-
removeEldestEntry
protected boolean removeEldestEntry(java.util.Map.Entry<CallableStatementCacheKey,java.sql.CallableStatement> eldest)
- Overrides:
removeEldestEntry
in classjava.util.LinkedHashMap<CallableStatementCacheKey,java.sql.CallableStatement>
-
-