Class NamedCriteriaQueryMementoImpl
- java.lang.Object
-
- org.hibernate.query.named.AbstractNamedQueryMemento
-
- org.hibernate.query.criteria.internal.NamedCriteriaQueryMementoImpl
-
- All Implemented Interfaces:
Serializable
,NamedQueryMemento
,NamedSqmQueryMemento
public class NamedCriteriaQueryMementoImpl extends AbstractNamedQueryMemento implements NamedSqmQueryMemento, Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.hibernate.query.named.AbstractNamedQueryMemento
AbstractNamedQueryMemento.AbstractBuilder<T extends AbstractNamedQueryMemento.AbstractBuilder>
-
Nested classes/interfaces inherited from interface org.hibernate.query.named.NamedQueryMemento
NamedQueryMemento.ParameterMemento
-
-
Constructor Summary
Constructors Constructor Description NamedCriteriaQueryMementoImpl(String name, SqmStatement sqmStatement, Integer firstResult, Integer maxResults, Boolean cacheable, String cacheRegion, CacheMode cacheMode, FlushMode flushMode, Boolean readOnly, LockOptions lockOptions, Integer timeout, Integer fetchSize, String comment, Map<String,String> parameterTypes, Map<String,Object> hints)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
getFirstResult()
String
getHqlString()
LockOptions
getLockOptions()
Integer
getMaxResults()
Map<String,String>
getParameterTypes()
SqmStatement<?>
getSqmStatement()
NamedSqmQueryMemento
makeCopy(String name)
Makes a copy of the memento using the specified registration name<T> SqmQueryImplementor<T>
toQuery(SharedSessionContractImplementor session)
Convert the memento into an untyped executable query<T> SqmQueryImplementor<T>
toQuery(SharedSessionContractImplementor session, Class<T> resultType)
<T> SqmSelectionQuery<T>
toSelectionQuery(Class<T> resultType, SharedSessionContractImplementor session)
void
validate(QueryEngine queryEngine)
-
Methods inherited from class org.hibernate.query.named.AbstractNamedQueryMemento
getCacheable, getCacheMode, getCacheRegion, getComment, getFetchSize, getFlushMode, getHints, getReadOnly, getRegistrationName, getTimeout
-
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.named.NamedQueryMemento
getCacheable, getCacheMode, getCacheRegion, getComment, getFetchSize, getFlushMode, getHints, getReadOnly, getRegistrationName, getTimeout
-
-
-
-
Constructor Detail
-
NamedCriteriaQueryMementoImpl
public NamedCriteriaQueryMementoImpl(String name, SqmStatement sqmStatement, Integer firstResult, Integer maxResults, Boolean cacheable, String cacheRegion, CacheMode cacheMode, FlushMode flushMode, Boolean readOnly, LockOptions lockOptions, Integer timeout, Integer fetchSize, String comment, Map<String,String> parameterTypes, Map<String,Object> hints)
-
-
Method Detail
-
validate
public void validate(QueryEngine queryEngine)
- Specified by:
validate
in interfaceNamedQueryMemento
-
toQuery
public <T> SqmQueryImplementor<T> toQuery(SharedSessionContractImplementor session, Class<T> resultType)
- Specified by:
toQuery
in interfaceNamedQueryMemento
- Specified by:
toQuery
in interfaceNamedSqmQueryMemento
-
toQuery
public <T> SqmQueryImplementor<T> toQuery(SharedSessionContractImplementor session)
Description copied from interface:NamedSqmQueryMemento
Convert the memento into an untyped executable query- Specified by:
toQuery
in interfaceNamedQueryMemento
- Specified by:
toQuery
in interfaceNamedSqmQueryMemento
-
toSelectionQuery
public <T> SqmSelectionQuery<T> toSelectionQuery(Class<T> resultType, SharedSessionContractImplementor session)
- Specified by:
toSelectionQuery
in interfaceNamedSqmQueryMemento
-
getHqlString
public String getHqlString()
- Specified by:
getHqlString
in interfaceNamedSqmQueryMemento
-
getSqmStatement
public SqmStatement<?> getSqmStatement()
- Specified by:
getSqmStatement
in interfaceNamedSqmQueryMemento
-
getFirstResult
public Integer getFirstResult()
- Specified by:
getFirstResult
in interfaceNamedSqmQueryMemento
-
getMaxResults
public Integer getMaxResults()
- Specified by:
getMaxResults
in interfaceNamedSqmQueryMemento
-
getLockOptions
public LockOptions getLockOptions()
- Specified by:
getLockOptions
in interfaceNamedSqmQueryMemento
-
getParameterTypes
public Map<String,String> getParameterTypes()
- Specified by:
getParameterTypes
in interfaceNamedSqmQueryMemento
-
makeCopy
public NamedSqmQueryMemento makeCopy(String name)
Description copied from interface:NamedQueryMemento
Makes a copy of the memento using the specified registration name- Specified by:
makeCopy
in interfaceNamedQueryMemento
- Specified by:
makeCopy
in interfaceNamedSqmQueryMemento
-
-