|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface UniversalORMDAO
Data Access Object (DAO) interface.
org.appfuse.dao.GenericDao| Method Summary | |
|---|---|
java.lang.Object |
get(java.lang.Class clazz,
java.io.Serializable id)
Generic method to get an object based on class and identifier. |
java.util.List |
getAll(java.lang.Class clazz)
Generic method used to get all objects of a particular type. |
java.util.List |
getAll(java.lang.Class clazz,
java.util.List ids)
Retrieve a List of entities matching given ids |
java.util.List |
getAll(java.lang.Class clazz,
java.util.List ids,
RequestOptions requestOptions)
Retrieve a List of entities matching given ids, sorted and
paginated according to the given request options |
java.util.List |
getAll(java.lang.Class clazz,
RequestOptions requestOptionsTO)
Generic method used to get all objects of a particular type, sorted and paginated according to the given request options. |
void |
remove(java.lang.Class clazz,
java.io.Serializable id)
Generic method to delete an object based on class and id |
java.lang.Object |
save(java.lang.Object o)
Generic method to save an object - handles both update and insert. |
java.util.List |
searchEquals(java.lang.Class clazz,
java.lang.String[] criteria,
java.lang.String[] properties,
RequestOptions requestOptionsTO)
This method allows to search Objects on String properties, fitting search criteria. |
java.util.List |
searchLike(java.lang.Class clazz,
java.lang.String[] criteria,
java.lang.String[] properties,
RequestOptions requestOptionsTO)
This method allows to search Objects on String properties, fitting search criteria. |
| Method Detail |
|---|
java.util.List getAll(java.lang.Class clazz)
clazz - the type of objects (a.k.a. while table) to get data from
java.lang.Object get(java.lang.Class clazz,
java.io.Serializable id)
clazz - model class to lookupid - the identifier (primary key) of the class
ObjectRetrievalFailureExceptionjava.lang.Object save(java.lang.Object o)
o - the object to save
void remove(java.lang.Class clazz,
java.io.Serializable id)
clazz - model class to lookupid - the identifier (primary key) of the class
java.util.List getAll(java.lang.Class clazz,
java.util.List ids)
List of entities matching given ids
clazz - model class to lookupids - a List of ids
List of entities matching ids, must be non null, could
be empty
java.util.List getAll(java.lang.Class clazz,
java.util.List ids,
RequestOptions requestOptions)
List of entities matching given ids, sorted and
paginated according to the given request options
clazz - model class to lookupids - a List of idsrequestOptions - include sort order and pagination information
List of entities matching ids, must be
non null, could be empty
java.util.List getAll(java.lang.Class clazz,
RequestOptions requestOptionsTO)
clazz - model class to lookuprequestOptionsTO - include sort order and pagination information
java.util.List searchLike(java.lang.Class clazz,
java.lang.String[] criteria,
java.lang.String[] properties,
RequestOptions requestOptionsTO)
clazz - model class to lookupcriteria - the search criteriaproperties - the searched propertiesrequestOptionsTO - include sort order and pagination information
java.util.List searchEquals(java.lang.Class clazz,
java.lang.String[] criteria,
java.lang.String[] properties,
RequestOptions requestOptionsTO)
clazz - model class to lookupcriteria - the search criteriaproperties - the searched propertiesrequestOptionsTO - include sort order and pagination information
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||