| Modifier and Type | Field and Description |
|---|---|
| private PreparedStatement | |
| private String | |
| private final ConnectionManager | |
| private final SessionFactoryImplementor | |
| private static int | |
| private static int | |
| private final Interceptor | |
| pack-priv boolean | |
| private PreparedStatement | |
| protected static final Logger | |
| private int | |
| private int | |
| private boolean | |
| private HashSet | |
| private HashSet | |
| private long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | abortBatch(SQLException
the (not null) exception that is the reason for aborting sqle)Implements org. |
| public void | cancelLastQuery()
Implements org. |
| public void | closeConnection(Connection conn)
Implements org. |
| private void | |
| public void | closeQueryStatement(PreparedStatement ps, ResultSet rs)
Implements org. |
| private void | |
| public void | closeStatement(PreparedStatement ps)
Implements org. |
| public void | closeStatements()
Implements org. |
| protected abstract void | |
| public void | |
| private CallableStatement | |
| protected SessionFactoryImplementor | |
| private PreparedStatement | getPreparedStatement(final Connection conn, final String sql, final boolean scrollable, final ScrollMode scrollMode)
|
| private PreparedStatement | getPreparedStatement(final Connection conn, String sql, boolean scrollable, final boolean useGetGeneratedKeys, final String[] namedGeneratedKeys, final ScrollMode scrollMode, final boolean callable)
|
| public ResultSet | getResultSet(PreparedStatement ps)
Implements org. |
| public ResultSet | getResultSet(CallableStatement ps, Dialect dialect)
Implements org. |
| private String | |
| protected PreparedStatement | |
| public boolean | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| public Connection | |
| public String | |
| public CallableStatement | prepareBatchCallableStatement(String sql)
Implements org. |
| public PreparedStatement | prepareBatchStatement(String sql)
Implements org. |
| public CallableStatement | prepareCallableQueryStatement(String sql, boolean scrollable, ScrollMode scrollMode)
Implements org. |
| public CallableStatement | prepareCallableStatement(String sql)
Implements org. |
| private String | |
| public PreparedStatement | prepareQueryStatement(String sql, boolean scrollable, ScrollMode scrollMode)
Implements org. |
| public PreparedStatement | prepareSelectStatement(String sql)
Implements org. |
| public PreparedStatement | prepareStatement(String sql)
Implements org. |
| public PreparedStatement | prepareStatement(String sql, boolean getGeneratedKeys)
Implements org. Connection#prepareStatement(String, int)).
|
| public PreparedStatement | prepareStatement(String sql, String[] columnNames)
Implements org. |
| private String | |
| private void | |
| private void | |
| public void | setTransactionTimeout(int seconds)
Implements org. |
| public void | unsetTransactionTimeout()
Implements org. |
| batchUpdate | back to summary |
|---|---|
| private PreparedStatement batchUpdate | |
| batchUpdateSQL | back to summary |
|---|---|
| private String batchUpdateSQL | |
| connectionManager | back to summary |
|---|---|
| private final ConnectionManager connectionManager | |
| factory | back to summary |
|---|---|
| private final SessionFactoryImplementor factory | |
| globalOpenPreparedStatementCount | back to summary |
|---|---|
| private static int globalOpenPreparedStatementCount | |
| globalOpenResultSetCount | back to summary |
|---|---|
| private static int globalOpenResultSetCount | |
| interceptor | back to summary |
|---|---|
| private final Interceptor interceptor | |
| isTransactionTimeoutSet | back to summary |
|---|---|
| pack-priv boolean isTransactionTimeoutSet | |
| lastQuery | back to summary |
|---|---|
| private PreparedStatement lastQuery | |
| log | back to summary |
|---|---|
| protected static final Logger log | |
| openPreparedStatementCount | back to summary |
|---|---|
| private int openPreparedStatementCount | |
| openResultSetCount | back to summary |
|---|---|
| private int openResultSetCount | |
| releasing | back to summary |
|---|---|
| private boolean releasing | |
| resultSetsToClose | back to summary |
|---|---|
| private HashSet<E> resultSetsToClose | |
| statementsToClose | back to summary |
|---|---|
| private HashSet<E> statementsToClose | |
| transactionTimeout | back to summary |
|---|---|
| private long transactionTimeout | |
| AbstractBatcher | back to summary |
|---|---|
| public AbstractBatcher(ConnectionManager connectionManager, Interceptor interceptor) | |
| abortBatch | back to summary |
|---|---|
| public void abortBatch(SQLException sqle) Implements org. Doc from org. Must be called when an exception occurs
| |
| cancelLastQuery | back to summary |
|---|---|
| public void cancelLastQuery() throws HibernateException Implements org. Doc from org. Cancel the current query statement | |
| closeConnection | back to summary |
|---|---|
| public void closeConnection(Connection conn) throws HibernateException Implements org. Doc from org. Dispose of the JDBC connection | |
| closePreparedStatement | back to summary |
|---|---|
| private void closePreparedStatement(PreparedStatement ps) throws SQLException | |
| closeQueryStatement | back to summary |
|---|---|
| public void closeQueryStatement(PreparedStatement ps, ResultSet rs) throws SQLException Implements org. Doc from org. Close a prepared statement opened with prepareQueryStatement() | |
| closeQueryStatement | back to summary |
|---|---|
| private void closeQueryStatement(PreparedStatement ps) throws SQLException | |
| closeStatement | back to summary |
|---|---|
| public void closeStatement(PreparedStatement ps) throws SQLException Implements org. Doc from org. Close a prepared or callable statement opened using prepareStatement() or prepareCallableStatement() | |
| closeStatements | back to summary |
|---|---|
| public void closeStatements() Implements org. Actually releases the batcher, allowing it to cleanup internally held resources. | |
| doExecuteBatch | back to summary |
|---|---|
| protected abstract void doExecuteBatch(PreparedStatement ps) throws SQLException, HibernateException | |
| executeBatch | back to summary |
|---|---|
| public void executeBatch() throws HibernateException Implements org. Doc from org. Execute the batch | |
| getCallableStatement | back to summary |
|---|---|
| private CallableStatement getCallableStatement(final Connection conn, String sql, boolean scrollable) throws SQLException | |
| getFactory | back to summary |
|---|---|
| protected SessionFactoryImplementor getFactory() | |
| getPreparedStatement | back to summary |
|---|---|
| private PreparedStatement getPreparedStatement(final Connection conn, final String sql, final boolean scrollable, final ScrollMode scrollMode) throws SQLException | |
| getPreparedStatement | back to summary |
|---|---|
| private PreparedStatement getPreparedStatement(final Connection conn, String sql, boolean scrollable, final boolean useGetGeneratedKeys, final String[] namedGeneratedKeys, final ScrollMode scrollMode, final boolean callable) throws SQLException | |
| getResultSet | back to summary |
|---|---|
| public ResultSet getResultSet(PreparedStatement ps) throws SQLException Implements org. Doc from org. Execute the statement and return the result set | |
| getResultSet | back to summary |
|---|---|
| public ResultSet getResultSet(CallableStatement ps, Dialect dialect) throws SQLException Implements org. Doc from org. Execute the statement and return the result set from a callable statement | |
| getSQL | back to summary |
|---|---|
| private String getSQL(String sql) | |
| getStatement | back to summary |
|---|---|
| protected PreparedStatement getStatement() | |
| hasOpenResources | back to summary |
|---|---|
| public boolean hasOpenResources() Implements org. | |
| log | back to summary |
|---|---|
| private void log(String sql) | |
| logClosePreparedStatement | back to summary |
|---|---|
| private void logClosePreparedStatement() | |
| logCloseResults | back to summary |
|---|---|
| private void logCloseResults() | |
| logOpenPreparedStatement | back to summary |
|---|---|
| private void logOpenPreparedStatement() | |
| logOpenResults | back to summary |
|---|---|
| private void logOpenResults() | |
| openConnection | back to summary |
|---|---|
| public Connection openConnection() throws HibernateException Implements org. Doc from org. Obtain a JDBC connection | |
| openResourceStatsAsString | back to summary |
|---|---|
| public String openResourceStatsAsString() Implements org. | |
| prepareBatchCallableStatement | back to summary |
|---|---|
| public CallableStatement prepareBatchCallableStatement(String sql) throws SQLException, HibernateException Implements org. Doc from org. Get a batchable callable statement to use for inserting / deleting / updating (might be called many times before a single call to executeBatch()). After setting parameters, call addToBatch - do not execute the statement explicitly. | |
| prepareBatchStatement | back to summary |
|---|---|
| public PreparedStatement prepareBatchStatement(String sql) throws SQLException, HibernateException Implements org. Doc from org. Get a batchable prepared statement to use for inserting / deleting / updating (might be called many times before a single call to executeBatch()). After setting parameters, call addToBatch - do not execute the statement explicitly. | |
| prepareCallableQueryStatement | back to summary |
|---|---|
| public CallableStatement prepareCallableQueryStatement(String sql, boolean scrollable, ScrollMode scrollMode) throws SQLException, HibernateException Implements org. Doc from org. Get a prepared statement for use in loading / querying. If not explicitly released by closeQueryStatement(), it will be released when the session is closed or disconnected. | |
| prepareCallableStatement | back to summary |
|---|---|
| public CallableStatement prepareCallableStatement(String sql) throws SQLException, HibernateException Implements org. Doc from org. Get a non-batchable callable statement to use for inserting / deleting / updating.
Must be explicitly released by | |
| preparedStatementCountsToString | back to summary |
|---|---|
| private String preparedStatementCountsToString() | |
| prepareQueryStatement | back to summary |
|---|---|
| public PreparedStatement prepareQueryStatement(String sql, boolean scrollable, ScrollMode scrollMode) throws SQLException, HibernateException Implements org. Doc from org. Get a prepared statement for use in loading / querying. If not explicitly released by closeQueryStatement(), it will be released when the session is closed or disconnected. | |
| prepareSelectStatement | back to summary |
|---|---|
| public PreparedStatement prepareSelectStatement(String sql) throws SQLException, HibernateException Implements org. Doc from org. Get a non-batchable prepared statement to use for selecting. Does not result in execution of the current batch. | |
| prepareStatement | back to summary |
|---|---|
| public PreparedStatement prepareStatement(String sql) throws SQLException, HibernateException Implements org. Doc from org. Get a non-batchable prepared statement to use for inserting / deleting / updating.
Must be explicitly released by | |
| prepareStatement | back to summary |
|---|---|
| public PreparedStatement prepareStatement(String sql, boolean getGeneratedKeys) throws SQLException, HibernateException Implements org. Doc from org. Get a non-batchable prepared statement to use for inserting / deleting / updating,
using JDBC3 getGeneratedKeys (
Must be explicitly released by | |
| prepareStatement | back to summary |
|---|---|
| public PreparedStatement prepareStatement(String sql, String[] columnNames) throws SQLException, HibernateException Implements org. Doc from org. Get a non-batchable prepared statement to use for inserting / deleting / updating.
using JDBC3 getGeneratedKeys (
Must be explicitly released by | |
| resultSetCountsToString | back to summary |
|---|---|
| private String resultSetCountsToString() | |
| setStatementFetchSize | back to summary |
|---|---|
| private void setStatementFetchSize(PreparedStatement statement) throws SQLException | |
| setTimeout | back to summary |
|---|---|
| private void setTimeout(PreparedStatement result) throws SQLException | |
| setTransactionTimeout | back to summary |
|---|---|
| public void setTransactionTimeout(int seconds) Implements org. Doc from org. Set the transaction timeout to seconds later than the current system time. | |
| unsetTransactionTimeout | back to summary |
|---|---|
| public void unsetTransactionTimeout() Implements org. Doc from org. Unset the transaction timeout, called after the end of a transaction. | |