| Constructor and Description |
|---|
SynchronizedCache(Cache cacheImpl) |
| Modifier and Type | Method and Description |
|---|---|
void |
addToCache(CacheObjectKey key,
Object entry,
boolean force)
Add key and entry value into the cache.
|
Object |
checkAndUpdateCache(CacheObjectKey key)
Check if an entry is found for this key object.
|
void |
clearCache()
Clear statement cache
|
void |
flushCache()
Closing all statements in statement cache and flush the statement cache
of all the statements.
|
int |
getSize()
Get the size of statement cache
|
boolean |
isSynchronized()
Check if the statement cache is synchronized.
|
void |
purge()
Remove all statements stored in the statement cache after closing
the statement objects.
|
void |
purge(Object entry)
Remove the specified entry stored in the statement cache after closing
the statement object associated with this entry.
|
public SynchronizedCache(Cache cacheImpl)
public Object checkAndUpdateCache(CacheObjectKey key)
CachecheckAndUpdateCache in interface Cachekey - whose mapping entry is to be checked.public void addToCache(CacheObjectKey key, Object entry, boolean force)
CacheaddToCache in interface Cachekey - that contains the sql string and its type (PS/CS)entry - that is the wrapper of PreparedStatement or
CallableStatementforce - If existing key is to be overwrittenpublic void clearCache()
CacheclearCache in interface Cachepublic void purge()
Cachepublic int getSize()
Cachepublic boolean isSynchronized()
CacheisSynchronized in interface Cachepublic void flushCache()
CacheflushCache in interface Cachepublic void purge(Object entry)
CacheCopyright © 2017. All rights reserved.