org.hibernate.loader.entity.plan.EntityLoader , org.hibernate.loader.collection.plan.CollectionLoader
| Modifier and Type | Class and Description |
|---|---|
| protected static class | AbstractLoadPlanBasedLoader.SqlStatementWrapper
Wrapper class for |
| Modifier and Type | Field and Description |
|---|---|
| private ColumnNameCache | columnNameCache
Deprecated
as a consequence of
ColumnNameCache being deprecated.
|
| private final SessionFactoryImplementor | factory
Deprecated
as a consequence of
SessionFactoryImplementor being deprecated.
|
| private static final CoreMessageLogger |
| Access | Constructor and Description |
|---|---|
| public | AbstractLoadPlanBasedLoader(SessionFactoryImplementor
The session factory factory)
Deprecated
as a consequence of
Constructs a SessionFactoryImplementor being deprecated.
AbstractLoadPlanBasedLoader.
|
| Modifier and Type | Method and Description |
|---|---|
| protected void | advance(final ResultSet rs, final RowSelection selection)
Advance the cursor to the first required row of the ResultSet |
| protected abstract void | |
| protected int | Returns: The number of JDBC bind positions actually bound during this method execution.The JDBC prepared statement statement, final Map<K, V> A map of parameter names to values namedParams, final int The position from which to start binding parameter values. startIndex, final SharedSessionContractImplementor The originating session. session)Bind named parameters to the JDBC prepared statement. |
| protected int | Returns: The number of JDBC bind positions actually bound during this method execution.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. |
| protected int | Returns: The number of JDBC bind positions actually bound during this method execution.The JDBC prepared statement statement, final QueryParameters The encapsulation of the parameter values to be bound. queryParameters, final int The position from which to start binding parameter values. startIndex, final SharedSessionContractImplementor The originating session. session)Bind positional parameter values to the JDBC prepared statement. |
| protected List | executeLoad(SharedSessionContractImplementor session, QueryParameters queryParameters, LoadQueryDetails loadQueryDetails, boolean returnProxies, ResultTransformer forcedResultTransformer)
|
| protected AbstractLoadPlanBasedLoader. | executeQueryStatement(String sqlStatement, QueryParameters queryParameters, boolean scroll, SharedSessionContractImplementor session)
|
| protected SessionFactoryImplementor | |
| protected LimitHandler | Returns: LIMIT clause delegate.Selection criteria. selection)Build LIMIT clause handler applicable for given selection criteria. |
| protected abstract int[] | |
| protected final ResultSet | getResultSet(final PreparedStatement st, final RowSelection selection, final LimitHandler limitHandler, final boolean autodiscovertypes, final SharedSessionContractImplementor session)
Execute given PreparedStatement, advance to the first result and return SQL ResultSet. |
| protected ScrollMode | getScrollMode(boolean scroll, boolean hasFirstRow, boolean useLimitOffSet, QueryParameters queryParameters)
|
| protected abstract LoadQueryDetails | |
| protected final PreparedStatement | prepareQueryStatement(final String sql, final QueryParameters queryParameters, final LimitHandler limitHandler, final boolean scroll, final SharedSessionContractImplementor session)
Obtain a PreparedStatement with all parameters pre-bound. |
| private ColumnNameCache | retreiveColumnNameToIndexCache(ResultSet rs)
Deprecated
as a consequence of
ColumnNameCache being deprecated.
|
| private ResultSet |
| columnNameCache | back to summary |
|---|---|
| private ColumnNameCache columnNameCache
Deprecated as a consequence of | |
| factory | back to summary |
|---|---|
| private final SessionFactoryImplementor factory
Deprecated as a consequence of | |
| log | back to summary |
|---|---|
| private static final CoreMessageLogger log | |
| AbstractLoadPlanBasedLoader | back to summary |
|---|---|
| public AbstractLoadPlanBasedLoader(SessionFactoryImplementor factory)
Deprecated as a consequence of Constructs a
| |
| advance | back to summary |
|---|---|
| protected void advance(final ResultSet rs, final RowSelection selection) throws SQLException Advance the cursor to the first required row of the ResultSet | |
| autoDiscoverTypes | back to summary |
|---|---|
| protected abstract void autoDiscoverTypes(ResultSet rs) | |
| bindNamedParameters | back to summary |
|---|---|
| protected int bindNamedParameters(final PreparedStatement statement, final Map<K, V> namedParams, final int startIndex, final SharedSessionContractImplementor session) throws SQLException, HibernateException Bind named parameters to the JDBC prepared statement. This is a generic implementation, the problem being that in the general case we do not know enough information about the named parameters to perform this in a complete manner here. Thus this is generally overridden on subclasses allowing named parameters to apply the specific behavior. The most usual limitation here is that we need to assume the type span is always one...
| |
| bindParameterValues | back to summary |
|---|---|
| protected int bindParameterValues(PreparedStatement statement, QueryParameters queryParameters, int startIndex, SharedSessionContractImplementor session) throws SQLException Bind all parameter values into the prepared statement in preparation for execution.
| |
| bindPositionalParameters | back to summary |
|---|---|
| protected int bindPositionalParameters(final PreparedStatement statement, final QueryParameters queryParameters, final int startIndex, final SharedSessionContractImplementor session) throws SQLException, HibernateException Bind positional parameter values to the JDBC prepared statement. Positional parameters are those specified by JDBC-style ? parameters in the source query. It is (currently) expected that these come before any named parameters in the source query.
| |
| executeLoad | back to summary |
|---|---|
| protected List | |
| executeQueryStatement | back to summary |
|---|---|
| protected AbstractLoadPlanBasedLoader. | |
| getFactory | back to summary |
|---|---|
| protected SessionFactoryImplementor getFactory()
Deprecated as a consequence of | |
| getLimitHandler | back to summary |
|---|---|
| protected LimitHandler getLimitHandler(RowSelection selection) Build LIMIT clause handler applicable for given selection criteria. Returns
| |
| getNamedParameterLocs | back to summary |
|---|---|
| protected abstract int[] getNamedParameterLocs(String name) | |
| getResultSet | back to summary |
|---|---|
| protected final ResultSet getResultSet(final PreparedStatement st, final RowSelection selection, final LimitHandler limitHandler, final boolean autodiscovertypes, final SharedSessionContractImplementor session) throws SQLException, HibernateException Execute given PreparedStatement, advance to the first result and return SQL ResultSet. | |
| getScrollMode | back to summary |
|---|---|
| protected ScrollMode getScrollMode(boolean scroll, boolean hasFirstRow, boolean useLimitOffSet, QueryParameters queryParameters) | |
| getStaticLoadQuery | back to summary |
|---|---|
| protected abstract LoadQueryDetails getStaticLoadQuery() | |
| prepareQueryStatement | back to summary |
|---|---|
| protected final PreparedStatement prepareQueryStatement(final String sql, final QueryParameters queryParameters, final LimitHandler limitHandler, final boolean scroll, final SharedSessionContractImplementor session) throws SQLException, HibernateException Obtain a PreparedStatement with all parameters pre-bound. Bind JDBC-style ? parameters, named parameters, and limit parameters. | |
| retreiveColumnNameToIndexCache | back to summary |
|---|---|
| private ColumnNameCache retreiveColumnNameToIndexCache(ResultSet rs) throws SQLException
Deprecated as a consequence of | |
| wrapResultSetIfEnabled | back to summary |
|---|---|
| private ResultSet wrapResultSetIfEnabled(final ResultSet rs, final SharedSessionContractImplementor session) | |
java.sql.Statement and associated java.sql.ResultSet .
| Modifier and Type | Field and Description |
|---|---|
| private final ResultSet | |
| private final Statement |
| Access | Constructor and Description |
|---|---|
| private |
| resultSet | back to summary |
|---|---|
| private final ResultSet resultSet | |
| statement | back to summary |
|---|---|
| private final Statement statement | |
| SqlStatementWrapper | back to summary |
|---|---|
| private SqlStatementWrapper(Statement statement, ResultSet resultSet) | |
| getResultSet | back to summary |
|---|---|
| public ResultSet getResultSet() | |
| getStatement | back to summary |
|---|---|
| public Statement getStatement() | |