Uses of Class
org.hibernate.engine.spi.QueryParameters
-
-
Uses of QueryParameters in org.hibernate.cache.spi
Methods in org.hibernate.cache.spi with parameters of type QueryParameters Modifier and Type Method Description static QueryKey
QueryKey. generateQueryKey(java.lang.String queryString, QueryParameters queryParameters, java.util.Set filterKeys, SharedSessionContractImplementor session, CacheableResultTransformer customTransformer)
Generates a QueryKey. -
Uses of QueryParameters in org.hibernate.dialect
Methods in org.hibernate.dialect with parameters of type QueryParameters Modifier and Type Method Description java.lang.String
Dialect. addSqlHintOrComment(java.lang.String sql, QueryParameters parameters, boolean commentsEnabled)
Modify the SQL, adding hints or comments, if necessaryboolean
Dialect. useFollowOnLocking(QueryParameters parameters)
Some dialects have trouble applying pessimistic locking depending upon what other query options are specified (paging, ordering, etc).boolean
Oracle8iDialect. useFollowOnLocking(QueryParameters parameters)
For Oracle, the FOR UPDATE clause cannot be applied when using ORDER BY, DISTINCT or views.boolean
Teradata14Dialect. useFollowOnLocking(QueryParameters parameters)
-
Uses of QueryParameters in org.hibernate.dialect.pagination
Methods in org.hibernate.dialect.pagination with parameters of type QueryParameters Modifier and Type Method Description default java.lang.String
LimitHandler. processSql(java.lang.String sql, QueryParameters queryParameters)
Return processed SQL query.java.lang.String
Oracle12LimitHandler. processSql(java.lang.String sql, QueryParameters queryParameters)
-
Uses of QueryParameters in org.hibernate.engine.query.spi
Methods in org.hibernate.engine.query.spi with parameters of type QueryParameters Modifier and Type Method Description int
HQLQueryPlan. performExecuteUpdate(QueryParameters queryParameters, SharedSessionContractImplementor session)
Coordinates the efforts to perform an execution across all the included query translators.int
NativeSQLQueryPlan. performExecuteUpdate(QueryParameters queryParameters, SharedSessionContractImplementor session)
Performs the execute queryjava.util.Iterator
HQLQueryPlan. performIterate(QueryParameters queryParameters, EventSource session)
Coordinates the efforts to perform an iterate across all the included query translators.java.util.List
HQLQueryPlan. performList(QueryParameters queryParameters, SharedSessionContractImplementor session)
Coordinates the efforts to perform a list across all the included query translators.ScrollableResultsImplementor
HQLQueryPlan. performScroll(QueryParameters queryParameters, SharedSessionContractImplementor session)
Coordinates the efforts to perform a scroll across all the included query translators. -
Uses of QueryParameters in org.hibernate.engine.spi
Methods in org.hibernate.engine.spi that return QueryParameters Modifier and Type Method Description QueryParameters
QueryParameters. createCopyUsing(RowSelection selection)
QueryParameters
SubselectFetch. getQueryParameters()
Methods in org.hibernate.engine.spi with parameters of type QueryParameters Modifier and Type Method Description static java.lang.String
SubselectFetch. createSubselectFetchQueryFragment(QueryParameters queryParameters)
Create the subselect fetch query fragment for the providedQueryParameters
with SELECT and ORDER BY clauses removed.int
SessionDelegatorBaseImpl. executeNativeUpdate(NativeSQLQuerySpecification specification, QueryParameters queryParameters)
int
SharedSessionContractImplementor. executeNativeUpdate(NativeSQLQuerySpecification specification, QueryParameters queryParameters)
Execute a native SQL update or delete queryint
SessionDelegatorBaseImpl. executeUpdate(java.lang.String query, QueryParameters queryParameters)
int
SharedSessionContractImplementor. executeUpdate(java.lang.String query, QueryParameters queryParameters)
Execute a HQL update or delete queryjava.util.Iterator
SessionDelegatorBaseImpl. iterate(java.lang.String query, QueryParameters queryParameters)
java.util.Iterator
SharedSessionContractImplementor. iterate(java.lang.String query, QueryParameters queryParameters)
Execute an iterate() queryjava.util.Iterator
SessionDelegatorBaseImpl. iterateFilter(java.lang.Object collection, java.lang.String filter, QueryParameters queryParameters)
java.util.Iterator
SharedSessionContractImplementor. iterateFilter(java.lang.Object collection, java.lang.String filter, QueryParameters queryParameters)
Iterate a filterjava.util.List
SessionDelegatorBaseImpl. list(java.lang.String query, QueryParameters queryParameters)
java.util.List
SessionDelegatorBaseImpl. list(NativeSQLQuerySpecification spec, QueryParameters queryParameters)
java.util.List
SharedSessionContractImplementor. list(java.lang.String query, QueryParameters queryParameters)
Execute a find() queryjava.util.List
SharedSessionContractImplementor. list(NativeSQLQuerySpecification spec, QueryParameters queryParameters)
Execute a native SQL query, and return the results as a fully built list.java.util.List
SessionDelegatorBaseImpl. listCustomQuery(CustomQuery customQuery, QueryParameters queryParameters)
java.util.List
SharedSessionContractImplementor. listCustomQuery(CustomQuery customQuery, QueryParameters queryParameters)
Execute an SQL Queryjava.util.List
SessionDelegatorBaseImpl. listFilter(java.lang.Object collection, java.lang.String filter, QueryParameters queryParameters)
java.util.List
SharedSessionContractImplementor. listFilter(java.lang.Object collection, java.lang.String filter, QueryParameters queryParameters)
Execute a filterScrollableResultsImplementor
SessionDelegatorBaseImpl. scroll(java.lang.String query, QueryParameters queryParameters)
ScrollableResultsImplementor
SessionDelegatorBaseImpl. scroll(NativeSQLQuerySpecification spec, QueryParameters queryParameters)
ScrollableResultsImplementor
SharedSessionContractImplementor. scroll(java.lang.String query, QueryParameters queryParameters)
Execute a scroll() queryScrollableResultsImplementor
SharedSessionContractImplementor. scroll(NativeSQLQuerySpecification spec, QueryParameters queryParameters)
Execute a native SQL query, and return the results as a scrollable result.ScrollableResultsImplementor
SessionDelegatorBaseImpl. scrollCustomQuery(CustomQuery customQuery, QueryParameters queryParameters)
ScrollableResultsImplementor
SharedSessionContractImplementor. scrollCustomQuery(CustomQuery customQuery, QueryParameters queryParameters)
Execute an SQL QueryConstructors in org.hibernate.engine.spi with parameters of type QueryParameters Constructor Description SubselectFetch(java.lang.String subselectFetchQueryFragment, java.lang.String alias, Loadable loadable, QueryParameters queryParameters, java.util.Set resultingEntityKeys, java.util.Map namedParameterLocMap)
Construct a SubselectFetch instance using the provided subselect fetch query fragment,subselectFetchQueryFragment
.SubselectFetch(java.lang.String alias, Loadable loadable, QueryParameters queryParameters, java.util.Set resultingEntityKeys, java.util.Map namedParameterLocMap)
Construct a SubselectFetch instance. -
Uses of QueryParameters in org.hibernate.hql.spi
Methods in org.hibernate.hql.spi with parameters of type QueryParameters Modifier and Type Method Description int
QueryTranslator. executeUpdate(QueryParameters queryParameters, SharedSessionContractImplementor session)
Perform a bulk update/delete operation given the underlying query definition.java.util.Iterator
QueryTranslator. iterate(QueryParameters queryParameters, EventSource session)
Perform an iterate operation given the underlying query definition.java.util.List
QueryTranslator. list(SharedSessionContractImplementor session, QueryParameters queryParameters)
Perform a list operation given the underlying query definition.ScrollableResultsImplementor
QueryTranslator. scroll(QueryParameters queryParameters, SharedSessionContractImplementor session)
Perform a scroll operation given the underlying query definition. -
Uses of QueryParameters in org.hibernate.hql.spi.id
Methods in org.hibernate.hql.spi.id with parameters of type QueryParameters Modifier and Type Method Description int
MultiTableBulkIdStrategy.DeleteHandler. execute(SharedSessionContractImplementor session, QueryParameters queryParameters)
int
MultiTableBulkIdStrategy.UpdateHandler. execute(SharedSessionContractImplementor session, QueryParameters queryParameters)
int
TableBasedDeleteHandlerImpl. execute(SharedSessionContractImplementor session, QueryParameters queryParameters)
int
TableBasedUpdateHandlerImpl. execute(SharedSessionContractImplementor session, QueryParameters queryParameters)
protected java.util.List<java.lang.Object[]>
AbstractIdsBulkIdHandler. selectIds(SharedSessionContractImplementor session, QueryParameters queryParameters)
-
Uses of QueryParameters in org.hibernate.hql.spi.id.cte
Methods in org.hibernate.hql.spi.id.cte with parameters of type QueryParameters Modifier and Type Method Description int
CteValuesListDeleteHandlerImpl. execute(SharedSessionContractImplementor session, QueryParameters queryParameters)
int
CteValuesListUpdateHandlerImpl. execute(SharedSessionContractImplementor session, QueryParameters queryParameters)
protected CteValuesListBuilder
AbstractCteValuesListBulkIdHandler. prepareCteStatement(SharedSessionContractImplementor session, QueryParameters queryParameters)
-
Uses of QueryParameters in org.hibernate.hql.spi.id.inline
Methods in org.hibernate.hql.spi.id.inline with parameters of type QueryParameters Modifier and Type Method Description int
AbstractInlineIdsDeleteHandlerImpl. execute(SharedSessionContractImplementor session, QueryParameters queryParameters)
int
AbstractInlineIdsUpdateHandlerImpl. execute(SharedSessionContractImplementor session, QueryParameters queryParameters)
protected IdsClauseBuilder
AbstractInlineIdsBulkIdHandler. prepareInlineStatement(SharedSessionContractImplementor session, QueryParameters queryParameters)
-
Uses of QueryParameters in org.hibernate.loader
Methods in org.hibernate.loader with parameters of type QueryParameters Modifier and Type Method Description protected java.lang.String
Loader. applyLocks(java.lang.String sql, QueryParameters parameters, Dialect dialect, java.util.List<AfterLoadAction> afterLoadActions)
Append FOR UPDATE OF clause, if necessary.protected int
Loader. bindParameterValues(java.sql.PreparedStatement statement, QueryParameters queryParameters, int startIndex, SharedSessionContractImplementor session)
Bind all parameter values into the prepared statement in preparation for execution.protected int
Loader. bindPositionalParameters(java.sql.PreparedStatement statement, QueryParameters queryParameters, int startIndex, SharedSessionContractImplementor session)
Bind positional parameter values to the JDBC prepared statement.protected java.sql.PreparedStatement
Loader. bindPreparedStatement(java.sql.PreparedStatement st, QueryParameters queryParameters, LimitHandler limitHandler, SharedSessionContractImplementor session)
protected CacheableResultTransformer
Loader. createCacheableResultTransformer(QueryParameters queryParameters)
protected void
Loader. createSubselects(java.util.List keys, QueryParameters queryParameters, SharedSessionContractImplementor session)
protected java.util.List
Loader. doList(SharedSessionContractImplementor session, QueryParameters queryParameters)
Actually execute a query, ignoring the query cachejava.util.List
Loader. doQueryAndInitializeNonLazyCollections(SharedSessionContractImplementor session, QueryParameters queryParameters, boolean returnProxies)
Execute an SQL query and attempt to instantiate instances of the class mapped by the given persister from each row of the ResultSet.java.util.List
Loader. doQueryAndInitializeNonLazyCollections(SharedSessionContractImplementor session, QueryParameters queryParameters, boolean returnProxies, ResultTransformer forcedResultTransformer)
protected Loader.SqlStatementWrapper
Loader. executeQueryStatement(java.lang.String sqlStatement, QueryParameters queryParameters, boolean scroll, java.util.List<AfterLoadAction> afterLoadActions, SharedSessionContractImplementor session)
protected Loader.SqlStatementWrapper
Loader. executeQueryStatement(QueryParameters queryParameters, boolean scroll, java.util.List<AfterLoadAction> afterLoadActions, SharedSessionContractImplementor session)
Process query string by applying filters, LIMIT clause, locks and comments if necessary.protected void
Loader. extractKeysFromResultSet(Loadable[] persisters, QueryParameters queryParameters, java.sql.ResultSet resultSet, SharedSessionContractImplementor session, EntityKey[] keys, LockMode[] lockModes, java.util.List hydratedObjects)
protected QueryKey
Loader. generateQueryKey(SharedSessionContractImplementor session, QueryParameters queryParameters)
protected static EntityKey
Loader. getOptionalObjectKey(QueryParameters queryParameters, SharedSessionContractImplementor session)
protected java.util.List
Loader. getResultFromQueryCache(SharedSessionContractImplementor session, QueryParameters queryParameters, java.util.Set<java.io.Serializable> querySpaces, Type[] resultTypes, QueryResultsCache queryCache, QueryKey key)
protected java.util.List<java.lang.Object>
Loader. getRowsFromResultSet(java.sql.ResultSet rs, QueryParameters queryParameters, SharedSessionContractImplementor session, boolean returnProxies, ResultTransformer forcedResultTransformer, int maxRows, java.util.List<java.lang.Object> hydratedObjects, java.util.List<EntityKey[]> subselectResultKeys)
protected java.util.List
Loader. list(SharedSessionContractImplementor session, QueryParameters queryParameters, java.util.Set<java.io.Serializable> querySpaces, Type[] resultTypes)
Return the query results, using the query cache, called by subclasses that implement cacheable queriesjava.lang.Object
Loader. loadSequentialRowsForward(java.sql.ResultSet resultSet, SharedSessionContractImplementor session, QueryParameters queryParameters, boolean returnProxies)
Loads a single logical row from the result set moving forward.java.lang.Object
Loader. loadSequentialRowsReverse(java.sql.ResultSet resultSet, SharedSessionContractImplementor session, QueryParameters queryParameters, boolean returnProxies, boolean isLogicallyAfterLast)
Loads a single logical row from the result set moving forward.java.lang.Object
Loader. loadSingleRow(java.sql.ResultSet resultSet, SharedSessionContractImplementor session, QueryParameters queryParameters, boolean returnProxies)
Loads a single row from the result set.protected java.sql.PreparedStatement
Loader. prepareQueryStatement(java.lang.String sql, QueryParameters queryParameters, LimitHandler limitHandler, boolean scroll, SharedSessionContractImplementor session)
Obtain a PreparedStatement with all parameters pre-bound.protected java.lang.String
Loader. preprocessSQL(java.lang.String sql, QueryParameters parameters, SessionFactoryImplementor sessionFactory, java.util.List<AfterLoadAction> afterLoadActions)
Modify the SQL, adding lock hints and comments, if necessaryprotected java.lang.String
Loader. processDistinctKeyword(java.lang.String sql, QueryParameters parameters)
Remove distinct keyword from SQL statement if the query should not pass it through.protected java.util.List
Loader. processResultSet(java.sql.ResultSet rs, QueryParameters queryParameters, SharedSessionContractImplementor session, boolean returnProxies, ResultTransformer forcedResultTransformer, int maxRows, java.util.List<AfterLoadAction> afterLoadActions)
protected void
Loader. putResultInQueryCache(SharedSessionContractImplementor session, QueryParameters queryParameters, Type[] resultTypes, QueryResultsCache queryCache, QueryKey key, java.util.List result)
protected ScrollableResultsImplementor
Loader. scroll(QueryParameters queryParameters, Type[] returnTypes, org.hibernate.hql.internal.HolderInstantiator holderInstantiator, SharedSessionContractImplementor session)
Return the query results, as an instance of ScrollableResultsprotected boolean
Loader. shouldUseFollowOnLocking(QueryParameters parameters, Dialect dialect, java.util.List<AfterLoadAction> afterLoadActions)
-
Uses of QueryParameters in org.hibernate.loader.collection
Constructors in org.hibernate.loader.collection with parameters of type QueryParameters Constructor Description SubselectCollectionLoader(QueryableCollection persister, java.lang.String subquery, java.util.Collection entityKeys, QueryParameters queryParameters, java.util.Map<java.lang.String,int[]> namedParameterLocMap, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers)
SubselectOneToManyLoader(QueryableCollection persister, java.lang.String subquery, java.util.Collection entityKeys, QueryParameters queryParameters, java.util.Map<java.lang.String,int[]> namedParameterLocMap, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers)
-
Uses of QueryParameters in org.hibernate.loader.criteria
Methods in org.hibernate.loader.criteria that return QueryParameters Modifier and Type Method Description QueryParameters
CriteriaQueryTranslator. getQueryParameters()
Methods in org.hibernate.loader.criteria with parameters of type QueryParameters Modifier and Type Method Description protected java.lang.String
CriteriaLoader. applyLocks(java.lang.String sql, QueryParameters parameters, Dialect dialect, java.util.List<AfterLoadAction> afterLoadActions)
-
Uses of QueryParameters in org.hibernate.loader.custom
Methods in org.hibernate.loader.custom with parameters of type QueryParameters Modifier and Type Method Description protected java.lang.String
CustomLoader. applyLocks(java.lang.String sql, QueryParameters parameters, Dialect dialect, java.util.List<AfterLoadAction> afterLoadActions)
protected int
CustomLoader. bindParameterValues(java.sql.PreparedStatement statement, QueryParameters queryParameters, int startIndex, SharedSessionContractImplementor session)
java.util.List
CustomLoader. list(SharedSessionContractImplementor session, QueryParameters queryParameters)
protected void
CustomLoader. putResultInQueryCache(SharedSessionContractImplementor session, QueryParameters queryParameters, Type[] resultTypes, QueryResultsCache queryCache, QueryKey key, java.util.List result)
CustomLoader.resultTypes
can be overridden byCustomLoader.autoDiscoverTypes(ResultSet)
, *after*CustomLoader.list(SharedSessionContractImplementor, QueryParameters)
has already been called.ScrollableResultsImplementor
CustomLoader. scroll(QueryParameters queryParameters, SharedSessionContractImplementor session)
-
Uses of QueryParameters in org.hibernate.loader.custom.sql
Methods in org.hibernate.loader.custom.sql with parameters of type QueryParameters Modifier and Type Method Description int
NamedParamBinder. bind(java.sql.PreparedStatement statement, QueryParameters qp, SharedSessionContractImplementor session, int position)
int
PositionalParamBinder. bind(java.sql.PreparedStatement statement, QueryParameters qp, SharedSessionContractImplementor session, int position)
-
Uses of QueryParameters in org.hibernate.loader.entity.plan
Methods in org.hibernate.loader.entity.plan that return QueryParameters Modifier and Type Method Description static QueryParameters
MultiEntityLoadingSupport. buildMultiLoadQueryParameters(OuterJoinLoadable persister, java.io.Serializable[] ids, LockOptions lockOptions)
protected QueryParameters
BatchingEntityLoader. buildQueryParameters(java.io.Serializable id, java.io.Serializable[] ids, java.lang.Object optionalObject, LockOptions lockOptions)
-
Uses of QueryParameters in org.hibernate.loader.hql
Methods in org.hibernate.loader.hql with parameters of type QueryParameters Modifier and Type Method Description protected java.lang.String
QueryLoader. applyLocks(java.lang.String sql, QueryParameters parameters, Dialect dialect, java.util.List<AfterLoadAction> afterLoadActions)
protected int
QueryLoader. bindParameterValues(java.sql.PreparedStatement statement, QueryParameters queryParameters, int startIndex, SharedSessionContractImplementor session)
We specifically override this method here, because in general we know much more about the parameters and their appropriate bind positions here then we do in our super because we track them explicitly here through the ParameterSpecification interface.protected void
QueryLoader. checkQuery(QueryParameters queryParameters)
java.util.Iterator
QueryLoader. iterate(QueryParameters queryParameters, EventSource session)
java.util.List
QueryLoader. list(SharedSessionContractImplementor session, QueryParameters queryParameters)
ScrollableResultsImplementor
QueryLoader. scroll(QueryParameters queryParameters, SharedSessionContractImplementor session)
-
Uses of QueryParameters in org.hibernate.loader.plan.exec.process.spi
Methods in org.hibernate.loader.plan.exec.process.spi that return QueryParameters Modifier and Type Method Description QueryParameters
ResultSetProcessingContext. getQueryParameters()
Methods in org.hibernate.loader.plan.exec.process.spi with parameters of type QueryParameters Modifier and Type Method Description java.lang.Object
ScrollableResultSetProcessor. extractLogicalRowForward(java.sql.ResultSet resultSet, SessionImplementor session, QueryParameters queryParameters)
Given a scrollable ResultSet, extract a logical row.java.lang.Object
ScrollableResultSetProcessor. extractLogicalRowReverse(java.sql.ResultSet resultSet, SessionImplementor session, QueryParameters queryParameters, boolean isLogicallyAfterLast)
LikeScrollableResultSetProcessor.extractLogicalRowForward(java.sql.ResultSet, org.hibernate.engine.spi.SessionImplementor, org.hibernate.engine.spi.QueryParameters)
but here moving through the ResultSet in reverse.java.util.List
ResultSetProcessor. extractResults(java.sql.ResultSet resultSet, SharedSessionContractImplementor session, QueryParameters queryParameters, NamedParameterContext namedParameterContext, boolean returnProxies, boolean readOnly, ResultTransformer forcedResultTransformer, java.util.List<AfterLoadAction> afterLoadActions)
Process an entire ResultSet, performing all extractions.java.lang.Object
ScrollableResultSetProcessor. extractSingleRow(java.sql.ResultSet resultSet, SessionImplementor session, QueryParameters queryParameters)
Give a ResultSet, extract just a single result row. -
Uses of QueryParameters in org.hibernate.param
Methods in org.hibernate.param with parameters of type QueryParameters Modifier and Type Method Description int
CollectionFilterKeyParameterSpecification. bind(java.sql.PreparedStatement statement, QueryParameters qp, SharedSessionContractImplementor session, int position)
int
DynamicFilterParameterSpecification. bind(java.sql.PreparedStatement statement, QueryParameters qp, SharedSessionContractImplementor session, int start)
int
NamedParameterSpecification. bind(java.sql.PreparedStatement statement, QueryParameters qp, SharedSessionContractImplementor session, int position)
Bind the appropriate value into the given statement at the specified position.int
ParameterBinder. bind(java.sql.PreparedStatement statement, QueryParameters qp, SharedSessionContractImplementor session, int position)
Bind the appropriate value into the given statement at the specified position.int
PositionalParameterSpecification. bind(java.sql.PreparedStatement statement, QueryParameters qp, SharedSessionContractImplementor session, int position)
Bind the appropriate value into the given statement at the specified position.int
VersionTypeSeedParameterSpecification. bind(java.sql.PreparedStatement statement, QueryParameters qp, SharedSessionContractImplementor session, int position)
-
Uses of QueryParameters in org.hibernate.result.spi
Methods in org.hibernate.result.spi that return QueryParameters Modifier and Type Method Description QueryParameters
ResultContext. getQueryParameters()
-