| Modifier and Type | Field and Description |
|---|---|
| private final CollectionAliases[] | |
| private final int[] | |
| private final QueryableCollection[] | |
| private final EntityAliases[] | |
| private final Queryable[] | |
| private final int[] | |
| private boolean[] | |
| private final LockMode[] | |
| private final List | |
| private final Set | |
| private Type[] | |
| private final ResultRowProcessor | |
| private final String | |
| private String[] |
| Access | Constructor and Description |
|---|---|
| public | CustomLoader(CustomQuery customQuery, SessionFactoryImplementor factory)
Deprecated
as a consequence of
SessionFactoryImplementor being deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
| protected String | applyLocks(String sql, QueryParameters parameters, Dialect dialect, List<AfterLoadAction> afterLoadActions)
Overrides org. |
| protected void | |
| protected int | bindParameterValues(PreparedStatement
The JDBC prepared statement statement, QueryParameters The encapsulation of the parameter values to be bound. queryParameters, int The position from which to start binding parameter values. startIndex, SharedSessionContractImplementor The originating session. session)
Bind all parameter values into the prepared statement in preparation
for execution.
|
| private Queryable | |
| protected CollectionAliases[] | |
| protected int[] | getCollectionOwners()
Get the index of the entity that owns the collection, or -1
if there is no owner in the query results (ie.
|
| protected CollectionPersister[] | getCollectionPersisters()
Overrides org. |
| protected EntityAliases[] | getEntityAliases()
Implements abstract org. |
| protected Loadable[] | getEntityPersisters()
Implements abstract org. |
| protected LockMode[] | getLockModes(LockOptions
a collection of lock options specified dynamically via the Query interface lockOptions)Implements abstract org. |
| protected int[] | getOwners()
Overrides org. |
| protected String | getQueryIdentifier()
Identifies the query for statistics reporting, if null,
no statistics will be reported
|
| public Set | |
| protected Object | getResultColumnOrRow(Object[] row, ResultTransformer transformer, ResultSet rs, SharedSessionContractImplementor session)
Get the actual object that is returned in the user-visible result list.
|
| protected List | getResultList(List<E> results, ResultTransformer resultTransformer)
Overrides org. |
| protected Object[] | getResultRow(Object[] row, ResultSet rs, SharedSessionContractImplementor session)
Overrides org. |
| protected String[] | getResultRowAliases()
Returns the aliases that corresponding to a result row.
|
| private String[] | |
| public String | getSQLString()
Implements abstract org. |
| protected boolean[] | |
| public List | |
| protected void | putResultInQueryCache(final SharedSessionContractImplementor session, final QueryParameters queryParameters, final Type[] resultTypes, final QueryResultsCache queryCache, final QueryKey key, final List<E> result)
Overrides org.
Deprecated
as a consequence of
QueryResultsCache being deprecated.
resultTypes can be overridden by autoDiscoverTypes(ResultSet),
*after* list(SharedSessionContractImplementor, QueryParameters) has already been called.
|
| protected ResultTransformer | resolveResultTransformer(ResultTransformer
the specified result transformer resultTransformer)Overrides org. |
| public ScrollableResultsImplementor | |
| protected void | |
| private void |
| collectionAliases | back to summary |
|---|---|
| private final CollectionAliases[] collectionAliases | |
| collectionOwners | back to summary |
|---|---|
| private final int[] collectionOwners | |
| collectionPersisters | back to summary |
|---|---|
| private final QueryableCollection[] collectionPersisters | |
| entityAliases | back to summary |
|---|---|
| private final EntityAliases[] entityAliases | |
| entityPersisters | back to summary |
|---|---|
| private final Queryable[] entityPersisters | |
| entiytOwners | back to summary |
|---|---|
| private final int[] entiytOwners | |
| includeInResultRow | back to summary |
|---|---|
| private boolean[] includeInResultRow | |
| lockModes | back to summary |
|---|---|
| private final LockMode[] lockModes | |
| paramValueBinders | back to summary |
|---|---|
| private final List<ParameterBinder> paramValueBinders | |
| querySpaces | back to summary |
|---|---|
| private final Set<Serializable> querySpaces | |
| resultTypes | back to summary |
|---|---|
| private Type[] resultTypes | |
| rowProcessor | back to summary |
|---|---|
| private final ResultRowProcessor rowProcessor | |
| sql | back to summary |
|---|---|
| private final String sql | |
| transformerAliases | back to summary |
|---|---|
| private String[] transformerAliases | |
| CustomLoader | back to summary |
|---|---|
| public CustomLoader(CustomQuery customQuery, SessionFactoryImplementor factory)
Deprecated as a consequence of | |
| applyLocks | back to summary |
|---|---|
| protected String applyLocks(String sql, QueryParameters parameters, Dialect dialect, List<AfterLoadAction> afterLoadActions) throws QueryException Overrides org. Doc from org. Append FOR UPDATE OF clause, if necessary. This empty superclass implementation merely returns its first argument.
| |
| autoDiscoverTypes | back to summary |
|---|---|
| protected void autoDiscoverTypes(ResultSet rs) Overrides org.
| |
| bindParameterValues | back to summary |
|---|---|
| protected int bindParameterValues(PreparedStatement statement, QueryParameters queryParameters, int startIndex, SharedSessionContractImplementor session) throws SQLException Overrides org. Doc from org. Bind all parameter values into the prepared statement in preparation for execution.
| |
| determineAppropriateOwnerPersister | back to summary |
|---|---|
| private Queryable determineAppropriateOwnerPersister(NonScalarReturn ownerDescriptor) | |
| getCollectionAliases | back to summary |
|---|---|
| protected CollectionAliases[] getCollectionAliases() Implements abstract org.
| |
| getCollectionOwners | back to summary |
|---|---|
| protected int[] getCollectionOwners() Overrides org. Doc from org. Get the index of the entity that owns the collection, or -1 if there is no owner in the query results (ie. in the case of a collection initializer) or no collection.
| |
| getCollectionPersisters | back to summary |
|---|---|
| protected CollectionPersister[] getCollectionPersisters() Overrides org. Doc from org. An (optional) persister for a collection to be initialized; only collection loaders return a non-null value
| |
| getEntityAliases | back to summary |
|---|---|
| protected EntityAliases[] getEntityAliases() Implements abstract org. Doc from org. Get the result set descriptor
| |
| getEntityPersisters | back to summary |
|---|---|
| protected Loadable[] getEntityPersisters() Implements abstract org. Doc from org. An array of persisters of entity classes contained in each row of results; implemented by all subclasses | |
| getLockModes | back to summary |
|---|---|
| protected LockMode[] getLockModes(LockOptions lockOptions) Implements abstract org. Doc from org. What lock options does this load entities with?
| |
| getOwners | back to summary |
|---|---|
| protected int[] getOwners() Overrides org. Doc from org. An array of indexes of the entity that owns a one-to-one association
to the entity at the given index (-1 if there is no "owner"). The
indexes contained here are relative to the result of
| |
| getQueryIdentifier | back to summary |
|---|---|
| protected String getQueryIdentifier() Overrides org. Doc from org. Identifies the query for statistics reporting, if null, no statistics will be reported
| |
| getQuerySpaces | back to summary |
|---|---|
| public Set | |
| getResultColumnOrRow | back to summary |
|---|---|
| protected Object getResultColumnOrRow(Object[] row, ResultTransformer transformer, ResultSet rs, SharedSessionContractImplementor session) throws SQLException, HibernateException Overrides org. Doc from org. Get the actual object that is returned in the user-visible result list. This empty implementation merely returns its first argument. This is overridden by some subclasses.
| |
| getResultList | back to summary |
|---|---|
| protected List Overrides org.
| |
| getResultRow | back to summary |
|---|---|
| protected Object[] getResultRow(Object[] row, ResultSet rs, SharedSessionContractImplementor session) throws SQLException, HibernateException Overrides org.
| |
| getResultRowAliases | back to summary |
|---|---|
| protected String[] getResultRowAliases() Overrides org. Doc from org. Returns the aliases that corresponding to a result row. | |
| getReturnAliasesForTransformer | back to summary |
|---|---|
| private String[] getReturnAliasesForTransformer() | |
| getSQLString | back to summary |
|---|---|
| public String getSQLString() Implements abstract org. Doc from org. The SQL query string to be called; implemented by all subclasses | |
| includeInResultRow | back to summary |
|---|---|
| protected boolean[] includeInResultRow() Overrides org.
| |
| list | back to summary |
|---|---|
| public List | |
| putResultInQueryCache | back to summary |
|---|---|
| protected void putResultInQueryCache(final SharedSessionContractImplementor session, final QueryParameters queryParameters, final Type[] resultTypes, final QueryResultsCache queryCache, final QueryKey key, final List<E> result) Overrides org. Deprecated as a consequence of
As a hacky workaround, overridden here to provide the
| |
| resolveResultTransformer | back to summary |
|---|---|
| protected ResultTransformer resolveResultTransformer(ResultTransformer resultTransformer) Overrides org. Doc from org. Determine the actual ResultTransformer that will be used to transform query results.
| |
| scroll | back to summary |
|---|---|
| public ScrollableResultsImplementor scroll(final QueryParameters queryParameters, final SharedSessionContractImplementor session) throws HibernateException | |
| validateAlias | back to summary |
|---|---|
protected void validateAlias(String alias)
| |
| validateAliases | back to summary |
|---|---|
| private void validateAliases(List<String> aliases) | |