Package com.github.ddth.dao.nosql
Class BaseNoSqlDao
- java.lang.Object
-
- com.github.ddth.dao.BaseDao
-
- com.github.ddth.dao.nosql.BaseNoSqlDao
-
-
Constructor Summary
Constructors Constructor Description BaseNoSqlDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
calcCacheKey(java.lang.String spaceId, java.lang.String key)
Calculate cache key for an entry.java.lang.String
getCacheName()
Name of the cache this DAO uses to cache data.protected void
invalidateCacheEntry(java.lang.String spaceId, java.lang.String key)
Invalidate a cache entry.protected void
invalidateCacheEntry(java.lang.String spaceId, java.lang.String key, java.lang.Object data)
Invalidate a cache entry due to updated content.BaseNoSqlDao
setCacheName(java.lang.String cacheName)
Name of the cache this DAO uses to cache data.protected IDeleteCallback
wrapCallback(IDeleteCallback callback)
-
Methods inherited from class com.github.ddth.dao.BaseDao
addProfiling, clearProfiling, close, destroy, getCache, getCacheFactory, getFromCache, getFromCache, getProfiling, init, isCacheEnabled, isCacheItemsExpireAfterWrite, putToCache, putToCache, putToCache, removeFromCache, setCacheFactory, setCacheItemsExpireAfterWrite, startProfiling
-
-
-
-
Method Detail
-
getCacheName
public java.lang.String getCacheName()
Name of the cache this DAO uses to cache data.- Returns:
-
setCacheName
public BaseNoSqlDao setCacheName(java.lang.String cacheName)
Name of the cache this DAO uses to cache data.- Parameters:
cacheName
-- Returns:
-
calcCacheKey
protected java.lang.String calcCacheKey(java.lang.String spaceId, java.lang.String key)
Calculate cache key for an entry.- Parameters:
spaceId
-key
-- Returns:
-
invalidateCacheEntry
protected void invalidateCacheEntry(java.lang.String spaceId, java.lang.String key)
Invalidate a cache entry.- Parameters:
spaceId
-key
-
-
invalidateCacheEntry
protected void invalidateCacheEntry(java.lang.String spaceId, java.lang.String key, java.lang.Object data)
Invalidate a cache entry due to updated content.- Parameters:
spaceId
-key
-data
-
-
wrapCallback
protected IDeleteCallback wrapCallback(IDeleteCallback callback)
- Parameters:
callback
-- Returns:
- Since:
- 1.0.0
-
-