|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - Persistent ClassID - ID type for the persistent class.public interface QueryModelDAO<T,ID>
The QueryModelDAO interface defines an extension to the GenericDAO functionality that offers significantly more richness around the representation of queries to retrieve a specific object or a list of zero or more items that match the given QueryModel.
| Method Summary | |
|---|---|
Condition |
buildCondition(String conditionField,
ConditionType conditionType,
Iterator argsIterator)
Construct a Condition object given the passed in arguments. |
Projection |
buildProjection(String projectionField,
ProjectionType projectionType,
Iterator argsIterator)
Construct a Projection object given the passed in arguments. |
void |
deleteUsingQueryModel(QueryModel queryModel)
Delete objects of type T that correspond to the QueryModel. |
T |
findUniqueUsingQueryModel(QueryModel queryModel)
Find an object T that satisfies the QueryModel. |
Iterable<T> |
findUsingQueryModel(QueryModel queryModel)
Find objects of type T that correspond to the QueryModel. |
Object |
projectUsingQueryModel(QueryModel queryModel)
Use the QueryModel to narrow a set of results, then perform the specified projection. |
ReferenceSet<T> |
referenceUsingQueryModel(QueryModel queryModel)
|
| Methods inherited from interface org.iternine.jeppetto.dao.GenericDAO |
|---|
delete, deleteById, deleteByIds, findAll, findById, findByIds, flush, referenceByIds, save, updateReferences |
| Method Detail |
|---|
T findUniqueUsingQueryModel(QueryModel queryModel)
throws NoSuchItemException,
TooManyItemsException,
JeppettoException
queryModel - that contains criteria to match
NoSuchItemException - if the object identified by the queryModel is not found
TooManyItemsException - if more than one object identified by the queryModel is found
JeppettoException - if any other failure occurs
Iterable<T> findUsingQueryModel(QueryModel queryModel)
throws JeppettoException
queryModel - that contains criteria that will be true of the results
JeppettoException - if any underlying failure occurs
Object projectUsingQueryModel(QueryModel queryModel)
throws JeppettoException
queryModel - that contains criteria that will be used
JeppettoException - if any underlying failure occurs
void deleteUsingQueryModel(QueryModel queryModel)
throws JeppettoException
queryModel - that contains criteria of items to delete
JeppettoException - if any underlying failure occurs
ReferenceSet<T> referenceUsingQueryModel(QueryModel queryModel)
throws JeppettoException
JeppettoException
Condition buildCondition(String conditionField,
ConditionType conditionType,
Iterator argsIterator)
conditionField - the field upon which the Condition should be madeconditionType - the type of Condition object to constructargsIterator - an Iterator that may contain values used during the
construction of the Condition
Projection buildProjection(String projectionField,
ProjectionType projectionType,
Iterator argsIterator)
projectionField - the field upon which the Projection should be madeprojectionType - the type of Projection object to constructargsIterator - an Iterator that may contain values used during the
construction of the Projection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||