java.sql.PreparedStatement , org.hibernate.impl.SessionImpl
| Modifier and Type | Method and Description |
|---|---|
| public void | abortBatch(SQLException
the (not null) exception that is the reason for aborting sqle)Must be called when an exception occurs |
| public void | addToBatch(Expectation expectation)
Add an insert / delete / update to the current batch (might be called multiple times for single prepareBatchStatement()) |
| public void | |
| public void | closeConnection(Connection conn)
Deprecated
Obtain connections from
Dispose of the JDBC connection
ConnectionProvider instead
|
| public void | closeQueryStatement(PreparedStatement ps, ResultSet rs)
Close a prepared statement opened with prepareQueryStatement() |
| public void | closeStatement(PreparedStatement ps)
Close a prepared or callable statement opened using prepareStatement() or prepareCallableStatement() |
| public void | |
| public void | |
| public ResultSet | |
| public ResultSet | getResultSet(CallableStatement ps, Dialect dialect)
Execute the statement and return the result set from a callable statement |
| public boolean | |
| public Connection | openConnection()
Deprecated
Obtain connections from
Obtain a JDBC connection
ConnectionProvider instead
|
| public String | |
| public CallableStatement | prepareBatchCallableStatement(String sql)
Get a batchable callable statement to use for inserting / deleting / updating (might be called many times before a single call to executeBatch()). |
| public PreparedStatement | prepareBatchStatement(String sql)
Get a batchable prepared statement to use for inserting / deleting / updating (might be called many times before a single call to executeBatch()). |
| public CallableStatement | prepareCallableQueryStatement(String sql, boolean scrollable, ScrollMode scrollMode)
Get a prepared statement for use in loading / querying. |
| public CallableStatement | prepareCallableStatement(String sql)
Get a non-batchable callable statement to use for inserting / deleting / updating. |
| public PreparedStatement | prepareQueryStatement(String sql, boolean scrollable, ScrollMode scrollMode)
Get a prepared statement for use in loading / querying. |
| public PreparedStatement | |
| public PreparedStatement | prepareStatement(String sql, boolean useGetGeneratedKeys)
Get a non-batchable prepared statement to use for inserting / deleting / updating,
using JDBC3 getGeneratedKeys ( |
| public PreparedStatement | prepareStatement(String sql, String[] columnNames)
Get a non-batchable prepared statement to use for inserting / deleting / updating. |
| public PreparedStatement | prepareStatement(String sql)
Get a non-batchable prepared statement to use for inserting / deleting / updating. |
| public void | setTransactionTimeout(int seconds)
Set the transaction timeout to seconds later than the current system time. |
| public void |
| abortBatch | back to summary |
|---|---|
| public void abortBatch(SQLException sqle) Must be called when an exception occurs
| |
| addToBatch | back to summary |
|---|---|
| public void addToBatch(Expectation expectation) throws SQLException, HibernateException Add an insert / delete / update to the current batch (might be called multiple times for single prepareBatchStatement()) | |
| cancelLastQuery | back to summary |
|---|---|
| public void cancelLastQuery() throws HibernateException Cancel the current query statement | |
| closeConnection | back to summary |
|---|---|
| public void closeConnection(Connection conn) throws HibernateException
Deprecated Obtain connections from Dispose of the JDBC connection | |
| closeQueryStatement | back to summary |
|---|---|
| public void closeQueryStatement(PreparedStatement ps, ResultSet rs) throws SQLException Close a prepared statement opened with prepareQueryStatement() | |
| closeStatement | back to summary |
|---|---|
| public void closeStatement(PreparedStatement ps) throws SQLException Close a prepared or callable statement opened using prepareStatement() or prepareCallableStatement() | |
| closeStatements | back to summary |
|---|---|
| public void closeStatements() Close any query statements that were left lying around | |
| executeBatch | back to summary |
|---|---|
| public void executeBatch() throws HibernateException Execute the batch | |
| getResultSet | back to summary |
|---|---|
| public ResultSet getResultSet(PreparedStatement ps) throws SQLException Execute the statement and return the result set | |
| getResultSet | back to summary |
|---|---|
| public ResultSet getResultSet(CallableStatement ps, Dialect dialect) throws SQLException Execute the statement and return the result set from a callable statement | |
| hasOpenResources | back to summary |
|---|---|
| public boolean hasOpenResources() | |
| openConnection | back to summary |
|---|---|
| public Connection openConnection() throws HibernateException
Deprecated Obtain connections from Obtain a JDBC connection | |
| openResourceStatsAsString | back to summary |
|---|---|
| public String openResourceStatsAsString() | |
| prepareBatchCallableStatement | back to summary |
|---|---|
| public CallableStatement prepareBatchCallableStatement(String sql) throws SQLException, HibernateException 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 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 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 Get a non-batchable callable statement to use for inserting / deleting / updating.
Must be explicitly released by | |
| prepareQueryStatement | back to summary |
|---|---|
| public PreparedStatement prepareQueryStatement(String sql, boolean scrollable, ScrollMode scrollMode) throws SQLException, HibernateException 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 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, boolean useGetGeneratedKeys) throws SQLException, HibernateException 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 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) throws SQLException, HibernateException Get a non-batchable prepared statement to use for inserting / deleting / updating.
Must be explicitly released by | |
| setTransactionTimeout | back to summary |
|---|---|
| public void setTransactionTimeout(int seconds) Set the transaction timeout to seconds later than the current system time. | |
| unsetTransactionTimeout | back to summary |
|---|---|
| public void unsetTransactionTimeout() Unset the transaction timeout, called after the end of a transaction. | |