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.envers.entities.mapper.relation.lazy | |
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.hql |
This package defines a loader for the AST-based query parser
|
org.hibernate.param |
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 |
HQLQueryPlan.performExecuteUpdate(QueryParameters queryParameters,
SessionImplementor session) |
int |
NativeSQLQueryPlan.performExecuteUpdate(QueryParameters queryParameters,
SessionImplementor session) |
Iterator |
HQLQueryPlan.performIterate(QueryParameters queryParameters,
EventSource session) |
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 |
---|---|
int |
SessionImplementor.executeNativeUpdate(NativeSQLQuerySpecification specification,
QueryParameters queryParameters)
Execute a native SQL update or delete query
|
int |
SessionImplementor.executeUpdate(String query,
QueryParameters queryParameters)
Execute a HQL update or delete query
|
Iterator |
SessionImplementor.iterate(String query,
QueryParameters queryParameters)
Execute an iterate() query
|
Iterator |
SessionImplementor.iterateFilter(Object collection,
String filter,
QueryParameters queryParameters)
Iterate a filter
|
List |
SessionImplementor.list(NativeSQLQuerySpecification spec,
QueryParameters queryParameters)
Execute a native SQL query, and return the results as a fully built list.
|
List |
SessionImplementor.list(String query,
QueryParameters queryParameters)
Execute a find() query
|
List |
SessionImplementor.listCustomQuery(CustomQuery customQuery,
QueryParameters queryParameters)
Execute an SQL Query
|
List |
SessionImplementor.listFilter(Object collection,
String filter,
QueryParameters queryParameters)
Execute a filter
|
ScrollableResults |
SessionImplementor.scroll(NativeSQLQuerySpecification spec,
QueryParameters queryParameters)
Execute a native SQL query, and return the results as a scrollable result.
|
ScrollableResults |
SessionImplementor.scroll(String query,
QueryParameters queryParameters)
Execute a scroll() query
|
ScrollableResults |
SessionImplementor.scrollCustomQuery(CustomQuery customQuery,
QueryParameters queryParameters)
Execute an SQL Query
|
Constructor and Description |
---|
SubselectFetch(String alias,
Loadable loadable,
QueryParameters queryParameters,
Set resultingEntityKeys,
Map namedParameterLocMap) |
Modifier and Type | Method and Description |
---|---|
int |
AbstractDelegateSessionImplementor.executeNativeUpdate(NativeSQLQuerySpecification specification,
QueryParameters queryParameters) |
int |
AbstractDelegateSessionImplementor.executeUpdate(String query,
QueryParameters queryParameters) |
Iterator |
AbstractDelegateSessionImplementor.iterate(String query,
QueryParameters queryParameters) |
Iterator |
AbstractDelegateSessionImplementor.iterateFilter(Object collection,
String filter,
QueryParameters queryParameters) |
List |
AbstractDelegateSessionImplementor.list(NativeSQLQuerySpecification spec,
QueryParameters queryParameters) |
List |
AbstractDelegateSessionImplementor.list(String query,
QueryParameters queryParameters) |
List |
AbstractDelegateSessionImplementor.listCustomQuery(CustomQuery customQuery,
QueryParameters queryParameters) |
List |
AbstractDelegateSessionImplementor.listFilter(Object collection,
String filter,
QueryParameters queryParameters) |
ScrollableResults |
AbstractDelegateSessionImplementor.scroll(NativeSQLQuerySpecification spec,
QueryParameters queryParameters) |
ScrollableResults |
AbstractDelegateSessionImplementor.scroll(String query,
QueryParameters queryParameters) |
ScrollableResults |
AbstractDelegateSessionImplementor.scrollCustomQuery(CustomQuery customQuery,
QueryParameters queryParameters) |
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 |
---|---|
int |
BasicExecutor.execute(QueryParameters parameters,
SessionImplementor session) |
int |
MultiTableDeleteExecutor.execute(QueryParameters parameters,
SessionImplementor session) |
int |
MultiTableUpdateExecutor.execute(QueryParameters parameters,
SessionImplementor session) |
int |
StatementExecutor.execute(QueryParameters parameters,
SessionImplementor session)
Execute the sql managed by this executor using the given parameters.
|
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 |
TableBasedDeleteHandlerImpl.execute(SessionImplementor session,
QueryParameters queryParameters) |
int |
MultiTableBulkIdStrategy.UpdateHandler.execute(SessionImplementor session,
QueryParameters queryParameters) |
int |
MultiTableBulkIdStrategy.DeleteHandler.execute(SessionImplementor session,
QueryParameters queryParameters) |
int |
TableBasedUpdateHandlerImpl.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 |
SessionImpl.executeNativeUpdate(NativeSQLQuerySpecification nativeQuerySpecification,
QueryParameters queryParameters) |
int |
StatelessSessionImpl.executeNativeUpdate(NativeSQLQuerySpecification nativeSQLQuerySpecification,
QueryParameters queryParameters) |
int |
SessionImpl.executeUpdate(String query,
QueryParameters queryParameters) |
int |
StatelessSessionImpl.executeUpdate(String query,
QueryParameters queryParameters) |
Iterator |
SessionImpl.iterate(String query,
QueryParameters queryParameters) |
Iterator |
StatelessSessionImpl.iterate(String query,
QueryParameters queryParameters) |
Iterator |
SessionImpl.iterateFilter(Object collection,
String filter,
QueryParameters queryParameters) |
Iterator |
StatelessSessionImpl.iterateFilter(Object collection,
String filter,
QueryParameters queryParameters) |
List |
AbstractSessionImpl.list(NativeSQLQuerySpecification spec,
QueryParameters queryParameters) |
List |
SessionImpl.list(String query,
QueryParameters queryParameters) |
List |
StatelessSessionImpl.list(String query,
QueryParameters queryParameters) |
List |
SessionImpl.listCustomQuery(CustomQuery customQuery,
QueryParameters queryParameters) |
List |
StatelessSessionImpl.listCustomQuery(CustomQuery customQuery,
QueryParameters queryParameters) |
List |
SessionImpl.listFilter(Object collection,
String filter,
QueryParameters queryParameters) |
List |
StatelessSessionImpl.listFilter(Object collection,
String filter,
QueryParameters queryParameters) |
ScrollableResults |
AbstractSessionImpl.scroll(NativeSQLQuerySpecification spec,
QueryParameters queryParameters) |
ScrollableResults |
SessionImpl.scroll(String query,
QueryParameters queryParameters) |
ScrollableResults |
StatelessSessionImpl.scroll(String query,
QueryParameters queryParameters) |
ScrollableResults |
SessionImpl.scrollCustomQuery(CustomQuery customQuery,
QueryParameters queryParameters) |
ScrollableResults |
StatelessSessionImpl.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
|
protected ResultSet |
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 ResultSet |
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 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 namedParameterLocMap,
SessionFactoryImplementor factory,
LoadQueryInfluencers loadQueryInfluencers) |
SubselectOneToManyLoader(QueryableCollection persister,
String subquery,
Collection entityKeys,
QueryParameters queryParameters,
Map 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) |
ScrollableResults |
CustomLoader.scroll(QueryParameters queryParameters,
SessionImplementor session) |
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 explciitly 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 |
DynamicFilterParameterSpecification.bind(PreparedStatement statement,
QueryParameters qp,
SessionImplementor session,
int start)
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 |
VersionTypeSeedParameterSpecification.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 |
PositionalParameterSpecification.bind(PreparedStatement statement,
QueryParameters qp,
SessionImplementor session,
int position)
Bind the appropriate value into the given statement at the specified position.
|
int |
CollectionFilterKeyParameterSpecification.bind(PreparedStatement statement,
QueryParameters qp,
SessionImplementor session,
int position)
Bind the appropriate value into the given statement at the specified position.
|
Copyright © 2001-2013 Red Hat, Inc. All Rights Reserved.