| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| public class | |
| private static interface | |
| public class | |
| public class |
| 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 final LockMode[] | |
| private final Map | |
| private final Set | |
| private Type[] | |
| private final CustomLoader. | |
| private final String | |
| private String[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| 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. |
| private static HolderInstantiator | |
| protected LockMode[] | getLockModes(LockOptions
a collection of lock options specified dynamically via the Query interface lockOptions)Implements abstract org. |
| public int[] | |
| 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, SessionImplementor session)
Get the actual object that is returned in the user-visible result list.
|
| protected List | getResultList(List<E> results, ResultTransformer resultTransformer)
Overrides org. |
| private String[] | |
| protected String | getSQLString()
Implements abstract org. |
| public List | |
| protected ResultTransformer | resolveResultTransformer(ResultTransformer
the specified result transformer resultTransformer)Overrides org. |
| public ScrollableResults |
| 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 | |
| lockModes | back to summary |
|---|---|
| private final LockMode[] lockModes | |
| namedParameterBindPoints | back to summary |
|---|---|
| private final Map<K, V> namedParameterBindPoints | |
| querySpaces | back to summary |
|---|---|
| private final Set<E> querySpaces | |
| resultTypes | back to summary |
|---|---|
| private Type[] resultTypes | |
| rowProcessor | back to summary |
|---|---|
| private final CustomLoader. | |
| 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) | |
| autoDiscoverTypes | back to summary |
|---|---|
| protected void autoDiscoverTypes(ResultSet rs) | |
| 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
| |
| getHolderInstantiator | back to summary |
|---|---|
| private static HolderInstantiator getHolderInstantiator(ResultTransformer resultTransformer, String[] queryReturnAliases) | |
| getLockModes | back to summary |
|---|---|
| protected LockMode[] getLockModes(LockOptions lockOptions) Implements abstract org. Doc from org. What lock options does this load entities with?
| |
| getNamedParameterLocs | back to summary |
|---|---|
| public int[] getNamedParameterLocs(String name) throws QueryException Overrides org. | |
| 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, SessionImplementor 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. | |
| getReturnAliasesForTransformer | back to summary |
|---|---|
| private String[] getReturnAliasesForTransformer() | |
| getSQLString | back to summary |
|---|---|
| protected String getSQLString() Implements abstract org. Doc from org. The SQL query string to be called; implemented by all subclasses | |
| list | back to summary |
|---|---|
| public List | |
| 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 ScrollableResults scroll(final QueryParameters queryParameters, final SessionImplementor session) throws HibernateException | |
| Modifier and Type | Field and Description |
|---|---|
| private final SessionFactoryImplementor | |
| private final ResultSet | |
| private final ResultSetMetaData |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public String | |
| public Type | |
| public int |
| factory | back to summary |
|---|---|
| private final SessionFactoryImplementor factory | |
| resultSet | back to summary |
|---|---|
| private final ResultSet resultSet | |
| resultSetMetaData | back to summary |
|---|---|
| private final ResultSetMetaData resultSetMetaData | |
| Metadata | back to summary |
|---|---|
| public Metadata(SessionFactoryImplementor factory, ResultSet resultSet) throws HibernateException | |
| getColumnCount | back to summary |
|---|---|
| public int getColumnCount() throws HibernateException | |
| getColumnName | back to summary |
|---|---|
| public String getColumnName(int position) throws HibernateException | |
| getHibernateType | back to summary |
|---|---|
| public Type getHibernateType(int columnPos) throws SQLException | |
| resolveColumnPosition | back to summary |
|---|---|
| public int resolveColumnPosition(String columnName) throws HibernateException | |
| Modifier and Type | Field and Description |
|---|---|
| private final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | extract(Object[] data, ResultSet resultSet, SessionImplementor session)
Implements org. |
| public void | performDiscovery(CustomLoader.
Implements org. |
| position | back to summary |
|---|---|
| private final int position | |
| NonScalarResultColumnProcessor | back to summary |
|---|---|
| public NonScalarResultColumnProcessor(int position) | |
| extract | back to summary |
|---|---|
| public Object extract(Object[] data, ResultSet resultSet, SessionImplementor session) throws SQLException, HibernateException Implements org. | |
| performDiscovery | back to summary |
|---|---|
| public void performDiscovery(CustomLoader. Implements org. | |
| Modifier and Type | Method and Description |
|---|---|
| public Object | |
| public void |
| extract | back to summary |
|---|---|
| public Object extract(Object[] data, ResultSet resultSet, SessionImplementor session) throws SQLException, HibernateException | |
| performDiscovery | back to summary |
|---|---|
| public void performDiscovery(CustomLoader. | |
| Modifier and Type | Field and Description |
|---|---|
| private CustomLoader. | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | Returns: The logical result rowEntity data defined as "root returns" and already handled by the
normal Loader mechanism. data, ResultSet The JDBC result set (positioned at the row currently being processed). resultSet, boolean Does this query have an associated hasTransformer, SessionImplementor ResultTransformerThe session from which the query request originated. session)Build a logical result row. |
| public void |
| columnProcessors | back to summary |
|---|---|
| private CustomLoader. | |
| hasScalars | back to summary |
|---|---|
| private final boolean hasScalars | |
| ResultRowProcessor | back to summary |
|---|---|
| public ResultRowProcessor(boolean hasScalars, CustomLoader. | |
| buildResultRow | back to summary |
|---|---|
| public Object buildResultRow(Object[] data, ResultSet resultSet, boolean hasTransformer, SessionImplementor session) throws SQLException, HibernateException Build a logical result row. At this point, Loader has already processed all non-scalar result data. We just need to account for scalar result data here...
| |
| prepareForAutoDiscovery | back to summary |
|---|---|
| public void prepareForAutoDiscovery(CustomLoader. | |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | extract(Object[] data, ResultSet resultSet, SessionImplementor session)
Implements org. |
| public void | performDiscovery(CustomLoader.
Implements org. |
| alias | back to summary |
|---|---|
| private String alias | |
| position | back to summary |
|---|---|
| private int position | |
| type | back to summary |
|---|---|
| private Type type | |
| ScalarResultColumnProcessor | back to summary |
|---|---|
| public ScalarResultColumnProcessor(int position) | |
| ScalarResultColumnProcessor | back to summary |
|---|---|
| public ScalarResultColumnProcessor(String alias, Type type) | |
| extract | back to summary |
|---|---|
| public Object extract(Object[] data, ResultSet resultSet, SessionImplementor session) throws SQLException, HibernateException Implements org. | |
| performDiscovery | back to summary |
|---|---|
| public void performDiscovery(CustomLoader. Implements org. | |