Package | Description |
---|---|
cn.trinea.android.common.dao | |
cn.trinea.android.common.dao.impl | |
cn.trinea.android.common.service.impl | |
cn.trinea.android.common.util |
Modifier and Type | Method and Description |
---|---|
boolean |
ImageSDCardCacheDao.deleteAndInsertImageSDCardCache(ImageSDCardCache imageSDCardCache,
java.lang.String tag)
delete all rows in db whose tag is same to tag at first, and insert all data in imageSDCardCache to db
Attentions:
If imageSDCardCache is null, do nothing
If tag is null or empty, do nothing
Will delete all rows in db whose tag is same to tag at first
|
boolean |
ImageSDCardCacheDao.putIntoImageSDCardCache(ImageSDCardCache imageSDCardCache,
java.lang.String tag)
put all rows in db whose tag is same to tag to imageSDCardCache
Attentions:
If imageSDCardCache is null, do nothing
If tag is null or empty, do nothing
|
Modifier and Type | Method and Description |
---|---|
boolean |
ImageSDCardCacheDaoImpl.deleteAndInsertImageSDCardCache(ImageSDCardCache imageSDCardCache,
java.lang.String tag) |
boolean |
ImageSDCardCacheDaoImpl.putIntoImageSDCardCache(ImageSDCardCache imageSDCardCache,
java.lang.String tag) |
Modifier and Type | Method and Description |
---|---|
static boolean |
ImageSDCardCache.loadDataFromDb(Context context,
ImageSDCardCache imageSDCardCache,
java.lang.String tag)
load all data in db whose tag is same to tag to imageSDCardCache. just put, do not affect the original data
Attentions:
If imageSDCardCache is null, throws exception
If tag is null or empty, throws exception
You should use
saveDataToDb(Context, ImageSDCardCache, String) to save data when app exit
|
static boolean |
ImageSDCardCache.saveDataToDb(Context context,
ImageSDCardCache imageSDCardCache,
java.lang.String tag)
delete all rows in db whose tag is same to tag at first, and insert all data in imageSDCardCache to db
Attentions:
If imageSDCardCache is null, throws exception
If tag is null or empty, throws exception
Will delete all rows in db whose tag is same to tag at first
You can use
initData(Context, String) or loadDataFromDb(Context, ImageSDCardCache, String)
to init data when app start
|
Modifier and Type | Method and Description |
---|---|
static ImageSDCardCache |
ImageCacheManager.getImageSDCardCache()
get the singleton instance of ImageSDCardCache
|
static ImageSDCardCache |
CacheManager.getImageSDCardCache()
get the singleton instance of ImageSDCardCache
|