public class DbCache extends java.lang.Object implements IDbOperation
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clearTable()
Delete all the objects in the table.
|
void |
close()
Close the database.
|
boolean |
containsObject(java.lang.Class clazz,
java.lang.String objectId)
Return true if the table contains the object of the specified class and
the specified object id.
|
<T> void |
deleteAllObjects(java.lang.Class<T> clazz)
Delete all the object of the specified class.
|
void |
deleteObject(java.lang.Class clazz,
java.lang.String objectId)
Delete the object of the specified class and the specified object id.
|
<T> void |
deleteObjects(java.lang.Class<T> clazz,
Condition<T> condition) |
<T> void |
deleteObjects(java.lang.Class<T> clazz,
java.util.List<java.lang.String> objectIds)
Delete the objects of the specified class and the specified object ids.
|
<T> java.util.List<<any>> |
getAllObjects(java.lang.Class<T> clazz)
Return all the objects of the specified class.
|
<T> T |
getObject(java.lang.Class<T> clazz,
java.lang.String objectIds)
Return the objects of the specified class and the specified object ids.
|
<T> java.util.List<<any>> |
getObjects(java.lang.Class<T> clazz,
Condition<T> condition)
Return the objects of the specified class, which satisfy the condition.
|
<T> void |
insertObject(T object,
java.lang.String objectId)
Insert the object of the specified object id.
|
<T> void |
insertObjects(java.util.List<T> objects,
java.util.List<java.lang.String> objectIds)
Insert the objects of the specified object ids.
|
<T> void |
replaceObjects(java.lang.Class<T> clazz,
java.util.List<java.lang.String> oldObjectIds,
java.util.List<T> newObjects,
java.util.List<java.lang.String> newObjectIds)
Replace the objects of the old object ids with the objects of the new object ids.
|
void |
updateAllObjects() |
public void close()
IDbOperationclose 在接口中 IDbOperationpublic void deleteObject(java.lang.Class clazz,
java.lang.String objectId)
IDbOperationdeleteObject 在接口中 IDbOperationpublic <T> void deleteAllObjects(java.lang.Class<T> clazz)
IDbOperationdeleteAllObjects 在接口中 IDbOperationpublic <T> void deleteObjects(java.lang.Class<T> clazz,
java.util.List<java.lang.String> objectIds)
IDbOperationdeleteObjects 在接口中 IDbOperationpublic <T> void deleteObjects(java.lang.Class<T> clazz,
Condition<T> condition)
public boolean containsObject(java.lang.Class clazz,
java.lang.String objectId)
IDbOperationcontainsObject 在接口中 IDbOperationpublic <T> void insertObject(T object,
java.lang.String objectId)
IDbOperationinsertObject 在接口中 IDbOperationpublic <T> void insertObjects(java.util.List<T> objects,
java.util.List<java.lang.String> objectIds)
IDbOperationinsertObjects 在接口中 IDbOperationpublic <T> java.util.List<<any>> getAllObjects(java.lang.Class<T> clazz)
IDbOperationgetAllObjects 在接口中 IDbOperationpublic <T> T getObject(java.lang.Class<T> clazz,
java.lang.String objectIds)
IDbOperationgetObject 在接口中 IDbOperationpublic <T> java.util.List<<any>> getObjects(java.lang.Class<T> clazz,
Condition<T> condition)
IDbOperationgetObjects 在接口中 IDbOperationpublic <T> void replaceObjects(java.lang.Class<T> clazz,
java.util.List<java.lang.String> oldObjectIds,
java.util.List<T> newObjects,
java.util.List<java.lang.String> newObjectIds)
IDbOperationreplaceObjects 在接口中 IDbOperationpublic void clearTable()
IDbOperationclearTable 在接口中 IDbOperationpublic void updateAllObjects()