Package | Description |
---|---|
org.hibernate.cache.spi |
Defines the Hibernate second level caching SPI.
|
org.hibernate.engine.internal | |
org.hibernate.engine.query.spi | |
org.hibernate.engine.spi | |
org.hibernate.hql.internal.ast |
An ANTLR-based parser for Hibernate Query Language.
|
org.hibernate.hql.internal.ast.exec | |
org.hibernate.hql.internal.classic |
This package contains the Hibernate 2.x query parser which
is being end-of-lifed.
|
org.hibernate.hql.spi | |
org.hibernate.internal |
An internal package containing mostly implementations of central Hibernate APIs.
|
org.hibernate.loader |
This package defines functionality for processing JDBC
result sets and returning complex graphs of persistent
objects.
|
org.hibernate.loader.collection |
This package defines collection initializers
|
org.hibernate.loader.criteria |
This package defines the criteria query compiler and loader
|
org.hibernate.loader.custom |
This package defines a framework for custom loaders that accept
handwritten SQL
|
org.hibernate.loader.entity |
This package defines entity loaders
|
org.hibernate.loader.hql |
This package defines a loader for the AST-based query parser
|
org.hibernate.param | |
org.hibernate.search.impl |
Modifier and Type | Method and Description |
---|---|
static QueryKey |
QueryKey.generateQueryKey(String queryString,
QueryParameters queryParameters,
Set filterKeys,
SessionImplementor session,
CacheableResultTransformer customTransformer)
Generates a QueryKey.
|
Modifier and Type | Method and Description |
---|---|
static int |
ParameterBinder.bindNamedParameters(PreparedStatement ps,
QueryParameters queryParameters,
int start,
ParameterBinder.NamedParameterSource source,
SessionImplementor session) |
static int |
ParameterBinder.bindPositionalParameters(PreparedStatement st,
QueryParameters queryParameters,
int start,
SessionImplementor session) |
static int |
ParameterBinder.bindQueryParameters(PreparedStatement st,
QueryParameters queryParameters,
int start,
ParameterBinder.NamedParameterSource source,
SessionImplementor session) |
Modifier and Type | Method and Description |
---|---|
int |
NativeSQLQueryPlan.performExecuteUpdate(QueryParameters queryParameters,
SessionImplementor session) |
int |
HQLQueryPlan.performExecuteUpdate(QueryParameters queryParameters,
SessionImplementor session) |
Iterator |
HQLQueryPlan.performIterate(QueryParameters queryParameters,
EventSource session)
Coordinates the efforts to perform an iterate across all the included query translators.
|
List |
HQLQueryPlan.performList(QueryParameters queryParameters,
SessionImplementor session) |
ScrollableResults |
HQLQueryPlan.performScroll(QueryParameters queryParameters,
SessionImplementor session) |
Modifier and Type | Method and Description |
---|---|
QueryParameters |
QueryParameters.createCopyUsing(RowSelection selection) |
QueryParameters |
SubselectFetch.getQueryParameters() |
Modifier and Type | Method and Description |
---|---|
static String |
SubselectFetch.createSubselectFetchQueryFragment(QueryParameters queryParameters)
Create the subselect fetch query fragment for the provided
QueryParameters
with SELECT and ORDER BY clauses removed. |
int |
SessionImplementor.executeNativeUpdate(NativeSQLQuerySpecification specification,
QueryParameters queryParameters)
Execute a native SQL update or delete query
|
int |
SessionDelegatorBaseImpl.executeNativeUpdate(NativeSQLQuerySpecification specification,
QueryParameters queryParameters) |
int |
SessionImplementor.executeUpdate(String query,
QueryParameters queryParameters)
Execute a HQL update or delete query
|
int |
SessionDelegatorBaseImpl.executeUpdate(String query,
QueryParameters queryParameters) |
Iterator |
SessionImplementor.iterate(String query,
QueryParameters queryParameters)
Execute an iterate() query
|
Iterator |
SessionDelegatorBaseImpl.iterate(String query,
QueryParameters queryParameters) |
Iterator |
SessionImplementor.iterateFilter(Object collection,
String filter,
QueryParameters queryParameters)
Iterate a filter
|
Iterator |
SessionDelegatorBaseImpl.iterateFilter(Object collection,
String filter,
QueryParameters queryParameters) |
List |
SessionImplementor.list(NativeSQLQuerySpecification spec,
QueryParameters queryParameters)
Execute a native SQL query, and return the results as a fully built list.
|
List |
SessionDelegatorBaseImpl.list(NativeSQLQuerySpecification spec,
QueryParameters queryParameters) |
List |
SessionImplementor.list(String query,
QueryParameters queryParameters)
Execute a find() query
|
List |
SessionDelegatorBaseImpl.list(String query,
QueryParameters queryParameters) |
List |
SessionImplementor.listCustomQuery(CustomQuery customQuery,
QueryParameters queryParameters)
Execute an SQL Query
|
List |
SessionDelegatorBaseImpl.listCustomQuery(CustomQuery customQuery,
QueryParameters queryParameters) |
List |
SessionImplementor.listFilter(Object collection,
String filter,
QueryParameters queryParameters)
Execute a filter
|
List |
SessionDelegatorBaseImpl.listFilter(Object collection,
String filter,
QueryParameters queryParameters) |
ScrollableResults |
SessionImplementor.scroll(NativeSQLQuerySpecification spec,
QueryParameters queryParameters)
Execute a native SQL query, and return the results as a scrollable result.
|
ScrollableResults |
SessionDelegatorBaseImpl.scroll(NativeSQLQuerySpecification spec,
QueryParameters queryParameters) |
ScrollableResults |
SessionImplementor.scroll(String query,
QueryParameters queryParameters)
Execute a scroll() query
|
ScrollableResults |
SessionDelegatorBaseImpl.scroll(String query,
QueryParameters queryParameters) |
ScrollableResults |
SessionImplementor.scrollCustomQuery(CustomQuery customQuery,
QueryParameters queryParameters)
Execute an SQL Query
|
ScrollableResults |
SessionDelegatorBaseImpl.scrollCustomQuery(CustomQuery customQuery,
QueryParameters queryParameters) |
Constructor and Description |
---|
SubselectFetch(String alias,
Loadable loadable,
QueryParameters queryParameters,
Set resultingEntityKeys,
Map namedParameterLocMap)
Construct a SubselectFetch instance.
|
SubselectFetch(String subselectFetchQueryFragment,
String alias,
Loadable loadable,
QueryParameters queryParameters,
Set resultingEntityKeys,
Map namedParameterLocMap)
Construct a SubselectFetch instance using the provided subselect fetch query fragment,
subselectFetchQueryFragment . |
Modifier and Type | Method and Description |
---|---|
int |
QueryTranslatorImpl.executeUpdate(QueryParameters queryParameters,
SessionImplementor session) |
Iterator |
QueryTranslatorImpl.iterate(QueryParameters queryParameters,
EventSource session)
Return the query results as an iterator
|
List |
QueryTranslatorImpl.list(SessionImplementor session,
QueryParameters queryParameters) |
ScrollableResults |
QueryTranslatorImpl.scroll(QueryParameters queryParameters,
SessionImplementor session)
Return the query results, as an instance of ScrollableResults
|
Modifier and Type | Method and Description |
---|---|
protected int |
BasicExecutor.doExecute(QueryParameters parameters,
SessionImplementor session,
String sql,
List parameterSpecifications) |
int |
StatementExecutor.execute(QueryParameters parameters,
SessionImplementor session)
Execute the sql managed by this executor using the given parameters.
|
int |
MultiTableUpdateExecutor.execute(QueryParameters parameters,
SessionImplementor session) |
int |
MultiTableDeleteExecutor.execute(QueryParameters parameters,
SessionImplementor session) |
int |
DeleteExecutor.execute(QueryParameters parameters,
SessionImplementor session) |
int |
BasicExecutor.execute(QueryParameters parameters,
SessionImplementor session) |
Modifier and Type | Method and Description |
---|---|
protected String |
QueryTranslatorImpl.applyLocks(String sql,
QueryParameters parameters,
Dialect dialect,
List<Loader.AfterLoadAction> afterLoadActions) |
int |
QueryTranslatorImpl.executeUpdate(QueryParameters queryParameters,
SessionImplementor session) |
Iterator |
QueryTranslatorImpl.iterate(QueryParameters queryParameters,
EventSource session)
Return the query results as an iterator
|
List |
QueryTranslatorImpl.list(SessionImplementor session,
QueryParameters queryParameters) |
ScrollableResults |
QueryTranslatorImpl.scroll(QueryParameters queryParameters,
SessionImplementor session) |
Modifier and Type | Method and Description |
---|---|
int |
TableBasedUpdateHandlerImpl.execute(SessionImplementor session,
QueryParameters queryParameters) |
int |
TableBasedDeleteHandlerImpl.execute(SessionImplementor session,
QueryParameters queryParameters) |
int |
MultiTableBulkIdStrategy.UpdateHandler.execute(SessionImplementor session,
QueryParameters queryParameters) |
int |
MultiTableBulkIdStrategy.DeleteHandler.execute(SessionImplementor session,
QueryParameters queryParameters) |
int |
QueryTranslator.executeUpdate(QueryParameters queryParameters,
SessionImplementor session)
Perform a bulk update/delete operation given the underlying query definition.
|
Iterator |
QueryTranslator.iterate(QueryParameters queryParameters,
EventSource session)
Perform an iterate operation given the underlying query definition.
|
List |
QueryTranslator.list(SessionImplementor session,
QueryParameters queryParameters)
Perform a list operation given the underlying query definition.
|
ScrollableResults |
QueryTranslator.scroll(QueryParameters queryParameters,
SessionImplementor session)
Perform a scroll operation given the underlying query definition.
|
Modifier and Type | Method and Description |
---|---|
protected QueryParameters |
AbstractScrollableResults.getQueryParameters() |
QueryParameters |
SQLQueryImpl.getQueryParameters(Map namedParams) |
QueryParameters |
AbstractQueryImpl.getQueryParameters(Map namedParams) |
Modifier and Type | Method and Description |
---|---|
int |
StatelessSessionImpl.executeNativeUpdate(NativeSQLQuerySpecification nativeSQLQuerySpecification,
QueryParameters queryParameters) |
int |
SessionImpl.executeNativeUpdate(NativeSQLQuerySpecification nativeQuerySpecification,
QueryParameters queryParameters) |
int |
StatelessSessionImpl.executeUpdate(String query,
QueryParameters queryParameters) |
int |
SessionImpl.executeUpdate(String query,
QueryParameters queryParameters) |
Iterator |
StatelessSessionImpl.iterate(String query,
QueryParameters queryParameters) |
Iterator |
SessionImpl.iterate(String query,
QueryParameters queryParameters) |
Iterator |
StatelessSessionImpl.iterateFilter(Object collection,
String filter,
QueryParameters queryParameters) |
Iterator |
SessionImpl.iterateFilter(Object collection,
String filter,
QueryParameters queryParameters) |
List |
AbstractSessionImpl.list(NativeSQLQuerySpecification spec,
QueryParameters queryParameters) |
List |
StatelessSessionImpl.list(String query,
QueryParameters queryParameters) |
List |
SessionImpl.list(String query,
QueryParameters queryParameters) |
List |
StatelessSessionImpl.listCustomQuery(CustomQuery customQuery,
QueryParameters queryParameters) |
List |
SessionImpl.listCustomQuery(CustomQuery customQuery,
QueryParameters queryParameters) |
List |
StatelessSessionImpl.listFilter(Object collection,
String filter,
QueryParameters queryParameters) |
List |
SessionImpl.listFilter(Object collection,
String filter,
QueryParameters queryParameters) |
ScrollableResults |
AbstractSessionImpl.scroll(NativeSQLQuerySpecification spec,
QueryParameters queryParameters) |
ScrollableResults |
StatelessSessionImpl.scroll(String query,
QueryParameters queryParameters) |
ScrollableResults |
SessionImpl.scroll(String query,
QueryParameters queryParameters) |
ScrollableResults |
StatelessSessionImpl.scrollCustomQuery(CustomQuery customQuery,
QueryParameters queryParameters) |
ScrollableResults |
SessionImpl.scrollCustomQuery(CustomQuery customQuery,
QueryParameters queryParameters) |
Constructor and Description |
---|
AbstractScrollableResults(ResultSet rs,
PreparedStatement ps,
SessionImplementor sess,
Loader loader,
QueryParameters queryParameters,
Type[] types,
HolderInstantiator holderInstantiator) |
FetchingScrollableResultsImpl(ResultSet rs,
PreparedStatement ps,
SessionImplementor sess,
Loader loader,
QueryParameters queryParameters,
Type[] types,
HolderInstantiator holderInstantiator) |
ScrollableResultsImpl(ResultSet rs,
PreparedStatement ps,
SessionImplementor sess,
Loader loader,
QueryParameters queryParameters,
Type[] types,
HolderInstantiator holderInstantiator) |
Modifier and Type | Method and Description |
---|---|
protected String |
Loader.applyLocks(String sql,
QueryParameters parameters,
Dialect dialect,
List<Loader.AfterLoadAction> afterLoadActions)
Append FOR UPDATE OF clause, if necessary.
|
protected int |
Loader.bindParameterValues(PreparedStatement statement,
QueryParameters queryParameters,
int startIndex,
SessionImplementor session)
Bind all parameter values into the prepared statement in preparation
for execution.
|
protected int |
Loader.bindPositionalParameters(PreparedStatement statement,
QueryParameters queryParameters,
int startIndex,
SessionImplementor session)
Bind positional parameter values to the JDBC prepared statement.
|
protected List |
Loader.doList(SessionImplementor session,
QueryParameters queryParameters)
Actually execute a query, ignoring the query cache
|
List |
Loader.doQueryAndInitializeNonLazyCollections(SessionImplementor 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.
|
List |
Loader.doQueryAndInitializeNonLazyCollections(SessionImplementor session,
QueryParameters queryParameters,
boolean returnProxies,
ResultTransformer forcedResultTransformer) |
protected Loader.SqlStatementWrapper |
Loader.executeQueryStatement(QueryParameters queryParameters,
boolean scroll,
List<Loader.AfterLoadAction> afterLoadActions,
SessionImplementor session)
Process query string by applying filters, LIMIT clause, locks and comments if necessary.
|
protected Loader.SqlStatementWrapper |
Loader.executeQueryStatement(String sqlStatement,
QueryParameters queryParameters,
boolean scroll,
List<Loader.AfterLoadAction> afterLoadActions,
SessionImplementor session) |
protected void |
Loader.extractKeysFromResultSet(Loadable[] persisters,
QueryParameters queryParameters,
ResultSet resultSet,
SessionImplementor session,
EntityKey[] keys,
LockMode[] lockModes,
List hydratedObjects) |
protected List |
Loader.list(SessionImplementor session,
QueryParameters queryParameters,
Set querySpaces,
Type[] resultTypes)
Return the query results, using the query cache, called
by subclasses that implement cacheable queries
|
Object |
Loader.loadSequentialRowsForward(ResultSet resultSet,
SessionImplementor session,
QueryParameters queryParameters,
boolean returnProxies)
Loads a single logical row from the result set moving forward.
|
Object |
Loader.loadSequentialRowsReverse(ResultSet resultSet,
SessionImplementor session,
QueryParameters queryParameters,
boolean returnProxies,
boolean isLogicallyAfterLast)
Loads a single logical row from the result set moving forward.
|
Object |
Loader.loadSingleRow(ResultSet resultSet,
SessionImplementor session,
QueryParameters queryParameters,
boolean returnProxies)
Loads a single row from the result set.
|
protected PreparedStatement |
Loader.prepareQueryStatement(String sql,
QueryParameters queryParameters,
LimitHandler limitHandler,
boolean scroll,
SessionImplementor session)
Obtain a PreparedStatement with all parameters pre-bound.
|
protected String |
Loader.preprocessSQL(String sql,
QueryParameters parameters,
Dialect dialect,
List<Loader.AfterLoadAction> afterLoadActions)
Modify the SQL, adding lock hints and comments, if necessary
|
protected List |
Loader.processResultSet(ResultSet rs,
QueryParameters queryParameters,
SessionImplementor session,
boolean returnProxies,
ResultTransformer forcedResultTransformer,
int maxRows,
List<Loader.AfterLoadAction> afterLoadActions) |
protected void |
Loader.putResultInQueryCache(SessionImplementor session,
QueryParameters queryParameters,
Type[] resultTypes,
QueryCache queryCache,
QueryKey key,
List result) |
protected ScrollableResults |
Loader.scroll(QueryParameters queryParameters,
Type[] returnTypes,
HolderInstantiator holderInstantiator,
SessionImplementor session)
Return the query results, as an instance of ScrollableResults
|
protected boolean |
Loader.shouldUseFollowOnLocking(QueryParameters parameters,
Dialect dialect,
List<Loader.AfterLoadAction> afterLoadActions) |
Constructor and Description |
---|
SubselectCollectionLoader(QueryableCollection persister,
String subquery,
Collection entityKeys,
QueryParameters queryParameters,
Map<String,int[]> namedParameterLocMap,
SessionFactoryImplementor factory,
LoadQueryInfluencers loadQueryInfluencers) |
SubselectOneToManyLoader(QueryableCollection persister,
String subquery,
Collection entityKeys,
QueryParameters queryParameters,
Map<String,int[]> namedParameterLocMap,
SessionFactoryImplementor factory,
LoadQueryInfluencers loadQueryInfluencers) |
Modifier and Type | Method and Description |
---|---|
QueryParameters |
CriteriaQueryTranslator.getQueryParameters() |
Modifier and Type | Method and Description |
---|---|
protected String |
CriteriaLoader.applyLocks(String sql,
QueryParameters parameters,
Dialect dialect,
List<Loader.AfterLoadAction> afterLoadActions) |
Modifier and Type | Method and Description |
---|---|
protected String |
CustomLoader.applyLocks(String sql,
QueryParameters parameters,
Dialect dialect,
List<Loader.AfterLoadAction> afterLoadActions) |
List |
CustomLoader.list(SessionImplementor session,
QueryParameters queryParameters) |
protected void |
CustomLoader.putResultInQueryCache(SessionImplementor session,
QueryParameters queryParameters,
Type[] resultTypes,
QueryCache queryCache,
QueryKey key,
List result)
CustomLoader.resultTypes can be overridden by CustomLoader.autoDiscoverTypes(ResultSet) ,
*after* CustomLoader.list(SessionImplementor, QueryParameters) has already been called. |
ScrollableResults |
CustomLoader.scroll(QueryParameters queryParameters,
SessionImplementor session) |
Modifier and Type | Method and Description |
---|---|
protected QueryParameters |
BatchingEntityLoader.buildQueryParameters(Serializable id,
Serializable[] ids,
Object optionalObject,
LockOptions lockOptions) |
Modifier and Type | Method and Description |
---|---|
protected String |
QueryLoader.applyLocks(String sql,
QueryParameters parameters,
Dialect dialect,
List<Loader.AfterLoadAction> afterLoadActions) |
protected int |
QueryLoader.bindParameterValues(PreparedStatement statement,
QueryParameters queryParameters,
int startIndex,
SessionImplementor 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.
|
Iterator |
QueryLoader.iterate(QueryParameters queryParameters,
EventSource session) |
List |
QueryLoader.list(SessionImplementor session,
QueryParameters queryParameters) |
ScrollableResults |
QueryLoader.scroll(QueryParameters queryParameters,
SessionImplementor session) |
Modifier and Type | Method and Description |
---|---|
int |
VersionTypeSeedParameterSpecification.bind(PreparedStatement statement,
QueryParameters qp,
SessionImplementor session,
int position) |
int |
PositionalParameterSpecification.bind(PreparedStatement statement,
QueryParameters qp,
SessionImplementor session,
int position)
Bind the appropriate value into the given statement at the specified position.
|
int |
ParameterSpecification.bind(PreparedStatement statement,
QueryParameters qp,
SessionImplementor session,
int position)
Bind the appropriate value into the given statement at the specified position.
|
int |
NamedParameterSpecification.bind(PreparedStatement statement,
QueryParameters qp,
SessionImplementor session,
int position)
Bind the appropriate value into the given statement at the specified position.
|
int |
DynamicFilterParameterSpecification.bind(PreparedStatement statement,
QueryParameters qp,
SessionImplementor session,
int start) |
int |
CollectionFilterKeyParameterSpecification.bind(PreparedStatement statement,
QueryParameters qp,
SessionImplementor session,
int position) |
Modifier and Type | Method and Description |
---|---|
int |
FullTextSessionImpl.executeNativeUpdate(NativeSQLQuerySpecification specification,
QueryParameters queryParameters) |
int |
FullTextSessionImpl.executeUpdate(String query,
QueryParameters queryParameters) |
Iterator |
FullTextSessionImpl.iterate(String query,
QueryParameters queryParameters) |
Iterator |
FullTextSessionImpl.iterateFilter(Object collection,
String filter,
QueryParameters queryParameters) |
List |
FullTextSessionImpl.list(NativeSQLQuerySpecification spec,
QueryParameters queryParameters) |
List |
FullTextSessionImpl.list(String query,
QueryParameters queryParameters) |
List |
FullTextSessionImpl.listCustomQuery(CustomQuery customQuery,
QueryParameters queryParameters) |
List |
FullTextSessionImpl.listFilter(Object collection,
String filter,
QueryParameters queryParameters) |
ScrollableResults |
FullTextSessionImpl.scroll(NativeSQLQuerySpecification spec,
QueryParameters queryParameters) |
ScrollableResults |
FullTextSessionImpl.scroll(String query,
QueryParameters queryParameters) |
ScrollableResults |
FullTextSessionImpl.scrollCustomQuery(CustomQuery customQuery,
QueryParameters queryParameters) |
Copyright © 2018 JBoss by Red Hat. All rights reserved.