Interface CriteriaStatement<T>
- Type Parameters:
T- The affected entity type
- All Superinterfaces:
CommonAbstractCriteria
- All Known Subinterfaces:
CriteriaDelete<T>, CriteriaUpdate<T>
Declares operations common to
CriteriaUpdate and
CriteriaDelete. A CriteriaStatement represents
a bulk operation affecting a certain entity type.- Since:
- 4.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionfrom(EntityType<T> entity) Create and add a statement root corresponding to the entity that is affected by the statement.Create and add a statement root corresponding to the entity that is affected by the statement.getRoot()Return the statement root.Methods inherited from interface CommonAbstractCriteria
getParameters, getRestriction, subquery, subquery
-
Method Details
-
from
Create and add a statement root corresponding to the entity that is affected by the statement. A statement has a single root, the entity that is affected.- Parameters:
entityClass- the entity class- Returns:
- query root corresponding to the given entity
-
from
Create and add a statement root corresponding to the entity that is affected by the statement. A statement has a single root, the entity that is affected.- Parameters:
entity- metamodel object representing the entity- Returns:
- query root corresponding to the given entity
-
getRoot
-