| 限定符和类型 | 方法和说明 |
|---|---|
void |
clearTable()
Delete all the objects in the table.
|
void |
close()
Close the database.
|
<T> boolean |
containsObject(java.lang.Class<T> 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.
|
<T> void |
deleteObject(java.lang.Class<T> 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,
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.
|
<T> boolean containsObject(java.lang.Class<T> clazz,
java.lang.String objectId)
T - clazz - objectId - <T> void insertObject(T object,
java.lang.String objectId)
T - object - objectId - <T> void insertObjects(java.util.List<T> objects,
java.util.List<java.lang.String> objectIds)
T - objects - objectIds - <T> java.util.List<<any>> getAllObjects(java.lang.Class<T> clazz)
T - clazz - <T> T getObject(java.lang.Class<T> clazz,
java.lang.String objectIds)
T - clazz - objectIds - <T> java.util.List<<any>> getObjects(java.lang.Class<T> clazz,
Condition<T> condition)
T - clazz - condition - <T> void deleteObject(java.lang.Class<T> clazz,
java.lang.String objectId)
T - clazz - objectId - <T> void deleteObjects(java.lang.Class<T> clazz,
java.util.List<java.lang.String> objectIds)
T - clazz - objectIds - <T> void deleteAllObjects(java.lang.Class<T> clazz)
T - clazz - <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)
T - clazz - oldObjectIds - newObjects - newObjectIds - void close()
void clearTable()