T - Persistent ClassID - ID type for the persistent class.public interface QueryModelDAO<T,ID> extends GenericDAO<T,ID>
| Modifier and Type | Method and Description |
|---|---|
Condition |
buildCondition(java.lang.String conditionField,
ConditionType conditionType,
java.util.Iterator argsIterator)
Construct a Condition object given the passed in arguments.
|
Projection |
buildProjection(java.lang.String projectionField,
ProjectionType projectionType,
java.util.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.
|
java.lang.Iterable<T> |
findUsingQueryModel(QueryModel queryModel)
Find objects of type T that correspond to the QueryModel.
|
java.lang.Object |
projectUsingQueryModel(QueryModel queryModel)
Use the QueryModel to narrow a set of results, then perform the
specified projection.
|
<U extends T> |
updateUniqueUsingQueryModel(U updateObject,
QueryModel queryModel)
Apply the set of changes described in the update object to a single persisted
item that match the specified QueryModel.
|
<U extends T> |
updateUsingQueryModel(U updateObject,
QueryModel queryModel)
Apply the set of changes described in the update object to persisted items that
match the specified QueryModel.
|
delete, deleteById, deleteByIds, findAll, findById, findByIds, flush, getUpdateObject, save, updateById, updateByIdsT findUniqueUsingQueryModel(QueryModel queryModel) throws NoSuchItemException, TooManyItemsException, JeppettoException
queryModel - that contains criteria to matchNoSuchItemException - if the object identified by the queryModel is not foundTooManyItemsException - if more than one object identified by the queryModel is foundJeppettoException - if any other failure occursjava.lang.Iterable<T> findUsingQueryModel(QueryModel queryModel) throws JeppettoException
queryModel - that contains criteria that will be true of the resultsJeppettoException - if any underlying failure occursjava.lang.Object projectUsingQueryModel(QueryModel queryModel) throws JeppettoException
queryModel - that contains criteria that will be usedJeppettoException - if any underlying failure occursvoid deleteUsingQueryModel(QueryModel queryModel) throws JeppettoException
queryModel - that contains criteria of items to deleteJeppettoException - if any underlying failure occurs<U extends T> T updateUniqueUsingQueryModel(U updateObject, QueryModel queryModel) throws JeppettoException
updateObject - that describes the set of changes to be applied.queryModel - that contains the criteria for items to updateJeppettoException - if any underlying failure occurs<U extends T> java.lang.Iterable<T> updateUsingQueryModel(U updateObject, QueryModel queryModel) throws JeppettoException
updateObject - that describes the set of changes to be applied.queryModel - that contains the criteria for items to updateJeppettoException - if any underlying failure occursCondition buildCondition(java.lang.String conditionField, ConditionType conditionType, java.util.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 ConditionProjection buildProjection(java.lang.String projectionField, ProjectionType projectionType, java.util.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 ProjectionCopyright © 2017. All Rights Reserved.