public final class QueryParameters extends Object
Constructor and Description |
---|
QueryParameters() |
QueryParameters(Type[] positionalParameterTypes,
Object[] positionalParameterValues) |
QueryParameters(Type[] positionalParameterTypes,
Object[] positionalParameterValues,
LockOptions lockOptions,
RowSelection rowSelection,
boolean isReadOnlyInitialized,
boolean readOnly,
boolean cacheable,
String cacheRegion,
String comment,
List<String> queryHints,
boolean isLookupByNaturalKey,
ResultTransformer transformer) |
QueryParameters(Type[] positionalParameterTypes,
Object[] positionalParameterValues,
Map<String,TypedValue> namedParameters,
LockOptions lockOptions,
RowSelection rowSelection,
boolean isReadOnlyInitialized,
boolean readOnly,
boolean cacheable,
String cacheRegion,
String comment,
List<String> queryHints,
Serializable[] collectionKeys,
Object optionalObject,
String optionalEntityName,
Serializable optionalId,
ResultTransformer transformer) |
QueryParameters(Type[] positionalParameterTypes,
Object[] positionalParameterValues,
Map<String,TypedValue> namedParameters,
LockOptions lockOptions,
RowSelection rowSelection,
boolean isReadOnlyInitialized,
boolean readOnly,
boolean cacheable,
String cacheRegion,
String comment,
List<String> queryHints,
Serializable[] collectionKeys,
ResultTransformer transformer) |
QueryParameters(Type[] positionalParameterTypes,
Object[] positionalParameterValues,
Map<String,TypedValue> namedParameters,
Serializable[] collectionKeys) |
QueryParameters(Type[] positionalParameterTypes,
Object[] positionalParameterValues,
Object optionalObject,
String optionalEntityName,
Serializable optionalObjectId) |
QueryParameters(Type[] positionalParameterTypes,
Object[] positionalParameterValues,
Serializable[] collectionKeys) |
QueryParameters(Type type,
Object value) |
public QueryParameters()
public QueryParameters(Type[] positionalParameterTypes, Object[] positionalParameterValues, Object optionalObject, String optionalEntityName, Serializable optionalObjectId)
public QueryParameters(Type[] positionalParameterTypes, Object[] positionalParameterValues)
public QueryParameters(Type[] positionalParameterTypes, Object[] positionalParameterValues, Serializable[] collectionKeys)
public QueryParameters(Type[] positionalParameterTypes, Object[] positionalParameterValues, Map<String,TypedValue> namedParameters, Serializable[] collectionKeys)
public QueryParameters(Type[] positionalParameterTypes, Object[] positionalParameterValues, LockOptions lockOptions, RowSelection rowSelection, boolean isReadOnlyInitialized, boolean readOnly, boolean cacheable, String cacheRegion, String comment, List<String> queryHints, boolean isLookupByNaturalKey, ResultTransformer transformer)
public QueryParameters(Type[] positionalParameterTypes, Object[] positionalParameterValues, Map<String,TypedValue> namedParameters, LockOptions lockOptions, RowSelection rowSelection, boolean isReadOnlyInitialized, boolean readOnly, boolean cacheable, String cacheRegion, String comment, List<String> queryHints, Serializable[] collectionKeys, ResultTransformer transformer)
public QueryParameters(Type[] positionalParameterTypes, Object[] positionalParameterValues, Map<String,TypedValue> namedParameters, LockOptions lockOptions, RowSelection rowSelection, boolean isReadOnlyInitialized, boolean readOnly, boolean cacheable, String cacheRegion, String comment, List<String> queryHints, Serializable[] collectionKeys, Object optionalObject, String optionalEntityName, Serializable optionalId, ResultTransformer transformer)
public boolean hasRowSelection()
public Map<String,TypedValue> getNamedParameters()
public Type[] getPositionalParameterTypes()
public Object[] getPositionalParameterValues()
public RowSelection getRowSelection()
public ResultTransformer getResultTransformer()
public void setNamedParameters(Map<String,TypedValue> map)
public void setPositionalParameterTypes(Type[] types)
public void setPositionalParameterValues(Object[] objects)
public void setRowSelection(RowSelection selection)
public LockOptions getLockOptions()
public void setLockOptions(LockOptions lockOptions)
public void traceParameters(SessionFactoryImplementor factory) throws HibernateException
HibernateException
public boolean isCacheable()
public void setCacheable(boolean b)
public String getCacheRegion()
public void setCacheRegion(String cacheRegion)
public void validateParameters() throws QueryException
QueryException
public String getComment()
public void setComment(String comment)
public ScrollMode getScrollMode()
public void setScrollMode(ScrollMode scrollMode)
public Serializable[] getCollectionKeys()
public void setCollectionKeys(Serializable[] collectionKeys)
public String getOptionalEntityName()
public void setOptionalEntityName(String optionalEntityName)
public Serializable getOptionalId()
public void setOptionalId(Serializable optionalId)
public Object getOptionalObject()
public void setOptionalObject(Object optionalObject)
public boolean isReadOnlyInitialized()
setReadOnly(boolean)
,
isReadOnly(org.hibernate.engine.spi.SessionImplementor)
public boolean isReadOnly()
IllegalStateException
- if the read-only/modifiable setting has not been
initialized (i.e., isReadOnlyInitialized() == false).isReadOnlyInitialized()
,
isReadOnly(org.hibernate.engine.spi.SessionImplementor)
,
The read-only/modifiable setting has no impact on entities/proxies returned by the
query that existed in the session before the query was executed.
public boolean isReadOnly(SessionImplementor session)
session
- The originating sessiontrue
indicates that entities and proxies loaded by the query will be put in read-only mode;
false
indicates that entities and proxies loaded by the query will be put in modifiable modeisReadOnlyInitialized()
,
setReadOnly(boolean)
,
The read-only/modifiable setting has no impact on entities/proxies returned by the
query that existed in the session before the query was executed.
public void setReadOnly(boolean readOnly)
readOnly
- if true
, entities and proxies loaded by the query will be put in read-only mode; if
false
, entities and proxies loaded by the query will be put in modifiable modeisReadOnlyInitialized()
,
isReadOnly(org.hibernate.engine.spi.SessionImplementor)
,
setReadOnly(boolean)
,
PersistenceContext.isDefaultReadOnly()
public void setCallable(boolean callable)
public boolean isCallable()
public boolean hasAutoDiscoverScalarTypes()
public void processFilters(String sql, SessionImplementor session)
public void processFilters(String sql, Map filters, SessionFactoryImplementor factory)
public String getFilteredSQL()
public Object[] getFilteredPositionalParameterValues()
public Type[] getFilteredPositionalParameterTypes()
public boolean isNaturalKeyLookup()
public void setNaturalKeyLookup(boolean isNaturalKeyLookup)
public void setAutoDiscoverScalarTypes(boolean autodiscovertypes)
public QueryParameters createCopyUsing(RowSelection selection)
public HQLQueryPlan getQueryPlan()
public void setQueryPlan(HQLQueryPlan queryPlan)
Copyright © 2021. All rights reserved.