public class ImageSDCardCacheDaoImpl extends java.lang.Object implements ImageSDCardCacheDao
Constructor and Description |
---|
ImageSDCardCacheDaoImpl(SqliteUtils sqliteUtils) |
Modifier and Type | Method and Description |
---|---|
boolean |
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 |
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
|
public ImageSDCardCacheDaoImpl(SqliteUtils sqliteUtils)
public boolean putIntoImageSDCardCache(ImageSDCardCache imageSDCardCache, java.lang.String tag)
ImageSDCardCacheDao
putIntoImageSDCardCache
in interface ImageSDCardCacheDao
tag
- tag used to mark this cache when save to and load from db, should be unique and cannot be null or
emptypublic boolean deleteAndInsertImageSDCardCache(ImageSDCardCache imageSDCardCache, java.lang.String tag)
ImageSDCardCacheDao
deleteAndInsertImageSDCardCache
in interface ImageSDCardCacheDao