public interface DAO
| Modifier and Type | Method and Description |
|---|---|
<P extends ParaObject> |
create(P object)
Persists an object to the data store.
|
<P extends ParaObject> |
create(String appid,
P object)
Persists an object to the data store.
|
<P extends ParaObject> |
createAll(List<P> objects)
Saves multiple objects to the data store.
|
<P extends ParaObject> |
createAll(String appid,
List<P> objects)
Saves multiple objects to the data store.
|
<P extends ParaObject> |
delete(P object)
Deletes an object permanently.
|
<P extends ParaObject> |
delete(String appid,
P object)
Deletes an object permanently.
|
<P extends ParaObject> |
deleteAll(List<P> objects)
Deletes multiple objects.
|
<P extends ParaObject> |
deleteAll(String appid,
List<P> objects)
Deletes multiple objects.
|
<P extends ParaObject> |
read(String key)
Retrieves an object from the data store.
|
<P extends ParaObject> |
read(String appid,
String key)
Retrieves an object from the data store.
|
<P extends ParaObject> |
readAll(List<String> keys,
boolean getAllColumns)
Retrieves multiple objects from the data store.
|
<P extends ParaObject> |
readAll(String appid,
List<String> keys,
boolean getAllColumns)
Retrieves multiple objects from the data store.
|
<P extends ParaObject> |
readPage(Pager pager)
Reads a fixed number of objects.
|
<P extends ParaObject> |
readPage(String appid,
Pager pager)
Reads a fixed number of objects.
|
<P extends ParaObject> |
update(P object)
Updates an object permanently.
|
<P extends ParaObject> |
update(String appid,
P object)
Updates an object permanently.
|
<P extends ParaObject> |
updateAll(List<P> objects)
Updates multiple objects.
|
<P extends ParaObject> |
updateAll(String appid,
List<P> objects)
Updates multiple objects.
|
<P extends ParaObject> String create(String appid, P object)
P - the type of objectappid - name of the Appobject - the domain object<P extends ParaObject> String create(P object)
P - the type of objectobject - the domain object<P extends ParaObject> P read(String appid, String key)
P - the type of objectappid - name of the Appkey - an object id<P extends ParaObject> P read(String key)
P - the type of objectkey - an object id<P extends ParaObject> void update(String appid, P object)
P - the type of objectappid - name of the Appobject - the domain object<P extends ParaObject> void update(P object)
P - the type of objectobject - the domain object<P extends ParaObject> void delete(String appid, P object)
P - the type of objectappid - name of the Appobject - the domain object<P extends ParaObject> void delete(P object)
P - the type of objectobject - the domain object<P extends ParaObject> void createAll(String appid, List<P> objects)
P - the type of objectappid - name of the Appobjects - the list of objects to save<P extends ParaObject> void createAll(List<P> objects)
P - the type of objectobjects - the list of objects to save<P extends ParaObject> Map<String,P> readAll(String appid, List<String> keys, boolean getAllColumns)
P - the type of objectappid - name of the Appkeys - a list of object idsgetAllColumns - true if all columns must be retrieved. used to save bandwidth.<P extends ParaObject> Map<String,P> readAll(List<String> keys, boolean getAllColumns)
P - the type of objectkeys - a list of object idsgetAllColumns - true if all columns must be retrieved. used to save bandwidth.<P extends ParaObject> List<P> readPage(String appid, Pager pager)
<P extends ParaObject> List<P> readPage(Pager pager)
P - the type of objectpager - a Pager<P extends ParaObject> void updateAll(String appid, List<P> objects)
P - the type of objectappid - name of the Appobjects - a list of objects to update<P extends ParaObject> void updateAll(List<P> objects)
P - the type of objectobjects - a list of objects to update<P extends ParaObject> void deleteAll(String appid, List<P> objects)
P - the type of objectappid - name of the Appobjects - a list of objects to delete<P extends ParaObject> void deleteAll(List<P> objects)
P - the type of objectobjects - a list of objects to deleteCopyright © 2018 Erudika. All rights reserved.