|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface UniversalUnifiedDAO
| 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 requestOptions)
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 |
search(java.lang.String query,
java.lang.Class clazz)
Return a List of entity managed by the Full Text Search Engine
(Compass etc.). |
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. |
java.util.List<? extends BaseObject> |
searchORMResult(java.lang.String[] criteria,
java.lang.String[] searchedProperties,
java.lang.Class<? extends BaseObject> clazz)
This method allows to search Objects on String properties, fitting search criteria. |
java.util.List<? extends BaseObject> |
searchORMResult(java.lang.String[] criteria,
java.lang.String[] searchedProperties,
java.lang.Class<? extends BaseObject> clazz,
RequestOptions requestOptions)
This method allows to search Objects on String properties, fitting search criteria. |
java.util.List<? extends BaseObject> |
searchORMResult(java.lang.String query,
java.lang.Class<? extends BaseObject> clazz)
Process a research on Full Text Search Engine (Compass etc.) index and return a List of entity managed by the ORM engine (Hibernate,
iBatis etc.). |
java.util.List<? extends BaseObject> |
searchORMResult(java.lang.String query,
java.lang.Class<? extends BaseObject> clazz,
RequestOptions requestOptions)
Process a research on Full Text Search Engine (Compass etc.) index and return a List of entity managed by the ORM engine (Hibernate,
iBatis etc.), sorted and paginated according to the given request
options. |
| 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 search(java.lang.String query,
java.lang.Class clazz)
List of entity managed by the Full Text Search Engine
(Compass etc.). Only the search engine managed attributes of these
entities are populated
query - a Lucene String queryclazz - model class to lookup
List of entity managed by the Full Text Search Engine.
java.util.List<? extends BaseObject> searchORMResult(java.lang.String query,
java.lang.Class<? extends BaseObject> clazz)
List of entity managed by the ORM engine (Hibernate,
iBatis etc.). All ORM managed attributes of these entities are populated.
query - a Lucene String queryclazz - model class to lookup
List of entity managed by the ORM engine.
java.util.List<? extends BaseObject> searchORMResult(java.lang.String[] criteria,
java.lang.String[] searchedProperties,
java.lang.Class<? extends BaseObject> clazz)
List of entity managed by the ORM engine
(Hibernate, iBatis etc.). All ORM managed attributes of these entities
are populated.
criteria - the search criteriaproperties - the searched propertiesclazz - model class to lookup
List of entity managed by the ORM engine.
java.util.List<? extends BaseObject> searchORMResult(java.lang.String[] criteria,
java.lang.String[] searchedProperties,
java.lang.Class<? extends BaseObject> clazz,
RequestOptions requestOptions)
List of entity managed by the ORM engine
(Hibernate, iBatis etc.), sorted and paginated according to the given
request options. All ORM managed attributes of these entities are
populated.
criteria - the search criteriaproperties - the searched propertiesclazz - model class to lookuprequestOptions - include sort order and pagination information
List of entity managed by the ORM engine.
java.util.List<? extends BaseObject> searchORMResult(java.lang.String query,
java.lang.Class<? extends BaseObject> clazz,
RequestOptions requestOptions)
List of entity managed by the ORM engine (Hibernate,
iBatis etc.), sorted and paginated according to the given request
options. All ORM managed attributes of these entities are populated.
query - a Lucene String queryclazz - model class to lookuprequestOptions - include sort order and pagination information
List of entity managed by the ORM engine.
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 requestOptions)
clazz - model class to lookuprequestOptions - 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 | |||||||||