Package org.hibernate.query.sqm.tree
Class AbstractSqmRestrictedDmlStatement<T>
- java.lang.Object
-
- org.hibernate.query.sqm.tree.AbstractSqmNode
-
- org.hibernate.query.sqm.tree.AbstractSqmStatement<E>
-
- org.hibernate.query.sqm.tree.AbstractSqmDmlStatement<T>
-
- org.hibernate.query.sqm.tree.AbstractSqmRestrictedDmlStatement<T>
-
- All Implemented Interfaces:
CommonAbstractCriteria
,Serializable
,JpaCriteriaBase
,JpaCriteriaNode
,JpaCteContainer
,JpaManipulationCriteria<T>
,JpaQueryableCriteria<T>
,ParameterCollector
,SqmCteContainer
,SqmDmlStatement<T>
,SqmNode
,SqmQuery<T>
,SqmStatement<T>
,SqmVisitableNode
- Direct Known Subclasses:
SqmDeleteStatement
,SqmUpdateStatement
public abstract class AbstractSqmRestrictedDmlStatement<T> extends AbstractSqmDmlStatement<T> implements JpaCriteriaBase
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.hibernate.query.sqm.tree.SqmStatement
SqmStatement.ParameterResolutions
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractSqmRestrictedDmlStatement(NodeBuilder builder, SqmQuerySource querySource, Set<SqmParameter<?>> parameters, Map<String,SqmCteStatement<?>> cteStatements, SqmRoot<T> target)
AbstractSqmRestrictedDmlStatement(SqmQuerySource querySource, NodeBuilder nodeBuilder)
Constructor for HQL statements.AbstractSqmRestrictedDmlStatement(SqmRoot<T> target, SqmQuerySource querySource, NodeBuilder nodeBuilder)
Constructor for Criteria statements.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
appendHqlString(StringBuilder sb)
void
applyPredicate(SqmPredicate predicate)
protected SqmWhereClause
copyWhereClause(SqmCopyContext context)
SqmRoot<T>
from(EntityType<T> entity)
SqmRoot<T>
from(Class<T> entityClass)
JpaPredicate
getRestriction()
SqmRoot<T>
getRoot()
SqmWhereClause
getWhereClause()
protected SqmWhereClause
initAndGetWhereClause()
protected void
setWhere(Expression<Boolean> restriction)
protected void
setWhere(Predicate... restrictions)
void
setWhereClause(SqmWhereClause whereClause)
-
Methods inherited from class org.hibernate.query.sqm.tree.AbstractSqmDmlStatement
appendHqlCteString, copyCteStatements, getCteCriteria, getCteCriterias, getCteStatement, getCteStatements, getTarget, putAllCtes, setTarget, subquery, validate, with, with, withRecursiveUnionAll, withRecursiveUnionAll, withRecursiveUnionDistinct, withRecursiveUnionDistinct
-
Methods inherited from class org.hibernate.query.sqm.tree.AbstractSqmStatement
addParameter, copyParameters, getQuerySource, getSqmParameters, resolveParameters
-
Methods inherited from class org.hibernate.query.sqm.tree.AbstractSqmNode
nodeBuilder
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.query.criteria.JpaCriteriaBase
subquery
-
Methods inherited from interface org.hibernate.query.sqm.tree.SqmNode
asLoggableText, nodeBuilder
-
Methods inherited from interface org.hibernate.query.sqm.tree.SqmStatement
copy, getQuerySource, getSqmParameters, resolveParameters
-
Methods inherited from interface org.hibernate.query.sqm.tree.SqmVisitableNode
accept, toHqlString
-
-
-
-
Constructor Detail
-
AbstractSqmRestrictedDmlStatement
public AbstractSqmRestrictedDmlStatement(SqmQuerySource querySource, NodeBuilder nodeBuilder)
Constructor for HQL statements.
-
AbstractSqmRestrictedDmlStatement
public AbstractSqmRestrictedDmlStatement(SqmRoot<T> target, SqmQuerySource querySource, NodeBuilder nodeBuilder)
Constructor for Criteria statements.
-
AbstractSqmRestrictedDmlStatement
protected AbstractSqmRestrictedDmlStatement(NodeBuilder builder, SqmQuerySource querySource, Set<SqmParameter<?>> parameters, Map<String,SqmCteStatement<?>> cteStatements, SqmRoot<T> target)
-
-
Method Detail
-
copyWhereClause
protected SqmWhereClause copyWhereClause(SqmCopyContext context)
-
from
public SqmRoot<T> from(EntityType<T> entity)
-
getWhereClause
public SqmWhereClause getWhereClause()
-
applyPredicate
public void applyPredicate(SqmPredicate predicate)
-
setWhereClause
public void setWhereClause(SqmWhereClause whereClause)
-
getRestriction
public JpaPredicate getRestriction()
- Specified by:
getRestriction
in interfaceCommonAbstractCriteria
- Specified by:
getRestriction
in interfaceJpaCriteriaBase
-
setWhere
protected void setWhere(Expression<Boolean> restriction)
-
initAndGetWhereClause
protected SqmWhereClause initAndGetWhereClause()
-
setWhere
protected void setWhere(Predicate... restrictions)
-
appendHqlString
public void appendHqlString(StringBuilder sb)
- Specified by:
appendHqlString
in interfaceSqmVisitableNode
-
-