public interface IDataStorage
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clear()
Clear all the data in the storage.
|
<T> boolean |
contains(java.lang.Class<T> clazz,
java.lang.String id)
Return true if the storage contains the element of the specified class
and the specified id, false otherwise.
|
<T> boolean |
contains(T element)
Return true if the storage contains the element, false otherwise.
|
<T> void |
delete(java.lang.Class<T> clazz,
Condition<T> condition)
Delete the elements which are of the specified class and satisfy the condition.
|
<T> void |
delete(java.lang.Class<T> clazz,
java.util.List<java.lang.String> ids)
Delete the elements of the specified class and the id in the list ids.
|
<T> void |
delete(java.lang.Class<T> clazz,
java.lang.String id)
Delete the element of the specified class and the specified id.
|
<T> void |
delete(java.util.List<T> list)
Delete the elements in the list.
|
<T> void |
delete(T element)
Delete the element.
|
<T> void |
deleteAll(java.lang.Class<T> clazz)
Delete all the elements of the specified class;
|
<T> java.util.List<T> |
load(java.lang.Class<T> clazz,
Condition<T> condition)
Return a list of elements which satisfying the condition.
|
<T> java.util.List<T> |
load(java.lang.Class<T> clazz,
Condition<T> condition,
java.util.Comparator<T> comparator)
Return a list of elements which satisfying the condition.
|
<T> java.util.List<T> |
load(java.lang.Class<T> clazz,
java.util.List<java.lang.String> ids)
Return a list of elements of the specified class and the specified ids.
|
<T> java.util.List<T> |
load(java.lang.Class<T> clazz,
java.util.List<java.lang.String> ids,
java.util.Comparator<T> comparator)
Return a list of elements of the specified class and the specified ids.
|
<T> T |
load(java.lang.Class<T> clazz,
java.lang.String id)
Return the element of the specified class and the specified id.
|
<T> java.util.List<T> |
loadAll(java.lang.Class<T> clazz)
Return a list of all the elements of the specified class.
|
<T> java.util.List<T> |
loadAll(java.lang.Class<T> clazz,
java.util.Comparator<T> comparator)
Return a list of all the elements of the specified class.
|
<T> void |
storeOrUpdate(java.util.List<T> list)
Store or update a list of elements of the same type.
|
<T> void |
storeOrUpdate(java.util.List<T> list,
java.util.List<java.lang.String> ids)
Store or update a list of elements of the same type.
|
<T> void |
storeOrUpdate(T element)
Store or update an element.
|
<T> void |
storeOrUpdate(T element,
java.lang.String id)
Store or update an element of the specified id.
|
<T> boolean contains(java.lang.Class<T> clazz,
java.lang.String id)
T - clazz - id - <T> boolean contains(T element)
T - element - <T> void storeOrUpdate(T element,
java.lang.String id)
T - element - id - <T> void storeOrUpdate(T element)
T - element - <T> void storeOrUpdate(java.util.List<T> list,
java.util.List<java.lang.String> ids)
T - list - ids - <T> void storeOrUpdate(java.util.List<T> list)
T - list - <T> T load(java.lang.Class<T> clazz,
java.lang.String id)
T - clazz - id - <T> java.util.List<T> loadAll(java.lang.Class<T> clazz)
T - clazz - <T> java.util.List<T> loadAll(java.lang.Class<T> clazz,
java.util.Comparator<T> comparator)
T - clazz - <T> java.util.List<T> load(java.lang.Class<T> clazz,
java.util.List<java.lang.String> ids)
T - clazz - ids - <T> java.util.List<T> load(java.lang.Class<T> clazz,
java.util.List<java.lang.String> ids,
java.util.Comparator<T> comparator)
T - clazz - ids - <T> java.util.List<T> load(java.lang.Class<T> clazz,
Condition<T> condition)
T - clazz - condition - <T> java.util.List<T> load(java.lang.Class<T> clazz,
Condition<T> condition,
java.util.Comparator<T> comparator)
T - clazz - condition - <T> void delete(T element)
T - element - <T> void delete(java.lang.Class<T> clazz,
java.lang.String id)
T - clazz - id - <T> void deleteAll(java.lang.Class<T> clazz)
<T> void delete(java.lang.Class<T> clazz,
java.util.List<java.lang.String> ids)
T - clazz - ids - <T> void delete(java.util.List<T> list)
T - list - <T> void delete(java.lang.Class<T> clazz,
Condition<T> condition)
void clear()