org.hibernate.jdbc.Batcher |
Known Indirect Subclasses |
Manages PreparedStatements for a session. Abstracts JDBC batching to maintain the illusion that a single logical batch exists for the whole session, even when batching is disabled. Provides transparent PreparedStatement caching.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Must be called when an exception occurs
| |||||||||||
Add an insert / delete / update to the current batch (might be called multiple times
for single prepareBatchStatement())
| |||||||||||
Cancel the current query statement
| |||||||||||
This method is deprecated.
Obtain connections from ConnectionProvider instead
| |||||||||||
Close a prepared statement opened with prepareQueryStatement()
| |||||||||||
Close a prepared or callable statement opened using prepareStatement() or prepareCallableStatement()
| |||||||||||
Close any query statements that were left lying around
| |||||||||||
Execute the batch
| |||||||||||
Execute the statement and return the result set
| |||||||||||
Execute the statement and return the result set from a callable statement
| |||||||||||
This method is deprecated.
Obtain connections from ConnectionProvider instead
| |||||||||||
Get a batchable callable statement to use for inserting / deleting / updating
(might be called many times before a single call to executeBatch()).
| |||||||||||
Get a batchable prepared statement to use for inserting / deleting / updating
(might be called many times before a single call to executeBatch()).
| |||||||||||
Get a prepared statement for use in loading / querying.
| |||||||||||
Get a non-batchable callable statement to use for inserting / deleting / updating.
| |||||||||||
Get a prepared statement for use in loading / querying.
| |||||||||||
Get a non-batchable prepared statement to use for selecting.
| |||||||||||
Get a non-batchable prepared statement to use for inserting / deleting / updating.
| |||||||||||
Get a non-batchable prepared statement to use for inserting / deleting / updating,
using JDBC3 getGeneratedKeys (
prepareStatement(String, int) ). | |||||||||||
Get a non-batchable prepared statement to use for inserting / deleting / updating.
| |||||||||||
Set the transaction timeout to seconds later
than the current system time.
| |||||||||||
Unset the transaction timeout, called after the end of a
transaction.
|
Must be called when an exception occurs
sqle | the (not null) exception that is the reason for aborting |
---|
Add an insert / delete / update to the current batch (might be called multiple times for single prepareBatchStatement())
HibernateException | |
---|---|
SQLException |
Cancel the current query statement
HibernateException |
---|
This method is deprecated.
Obtain connections from ConnectionProvider instead
Dispose of the JDBC connection
HibernateException |
---|
Close a prepared statement opened with prepareQueryStatement()
SQLException |
---|
Close a prepared or callable statement opened using prepareStatement() or prepareCallableStatement()
SQLException |
---|
Close any query statements that were left lying around
Execute the statement and return the result set
SQLException |
---|
Execute the statement and return the result set from a callable statement
SQLException |
---|
This method is deprecated.
Obtain connections from ConnectionProvider instead
Obtain a JDBC connection
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.
HibernateException | |
---|---|
SQLException |
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.
HibernateException | |
---|---|
SQLException |
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.
HibernateException | |
---|---|
SQLException |
Get a non-batchable callable statement to use for inserting / deleting / updating.
Must be explicitly released bycloseStatement(PreparedStatement)
after use.
HibernateException | |
---|---|
SQLException |
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.
HibernateException | |
---|---|
SQLException |
Get a non-batchable prepared statement to use for selecting. Does not result in execution of the current batch.
HibernateException | |
---|---|
SQLException |
Get a non-batchable prepared statement to use for inserting / deleting / updating.
using JDBC3 getGeneratedKeys (prepareStatement(String, String[])
).
closeStatement(PreparedStatement)
after use.
HibernateException | |
---|---|
SQLException |
Get a non-batchable prepared statement to use for inserting / deleting / updating,
using JDBC3 getGeneratedKeys (prepareStatement(String, int)
).
closeStatement(PreparedStatement)
after use.
HibernateException | |
---|---|
SQLException |
Get a non-batchable prepared statement to use for inserting / deleting / updating.
Must be explicitly released bycloseStatement(PreparedStatement)
after use.
HibernateException | |
---|---|
SQLException |
Set the transaction timeout to seconds later than the current system time.
Unset the transaction timeout, called after the end of a transaction.