| java.lang.Object | |
| ↳ | org.hibernate.jdbc.AbstractBatcher | 
   Known Direct Subclasses
  
 | 
Manages prepared statements and batching.
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| log | |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Must be called when an exception occurs 
  
   | |||||||||||
Cancel the current query statement
 
  
   | |||||||||||
Dispose of the JDBC connection 
  
   | |||||||||||
Close a prepared statement opened with prepareQueryStatement()
 
  
   | |||||||||||
Close a prepared or callable statement opened using prepareStatement() or prepareCallableStatement()
 
  
   | |||||||||||
Actually releases the batcher, allowing it to cleanup internally held
 resources. 
  
   | |||||||||||
Execute the batch
 
  
   | |||||||||||
Execute the statement and return the result set from a callable statement
 
  
   | |||||||||||
Execute the statement and return the result set
 
  
   | |||||||||||
Obtain a JDBC connection 
  
   | |||||||||||
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. 
  
   | |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 
  [Expand]
   Inherited Methods  | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
   
From class
  java.lang.Object
 | |||||||||||
   
From interface
  org.hibernate.jdbc.Batcher
 | |||||||||||
Must be called when an exception occurs
| sqle | the (not null) exception that is the reason for aborting | 
|---|
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 | 
|---|
Actually releases the batcher, allowing it to cleanup internally held resources.
Execute the statement and return the result set from a callable statement
| SQLException | 
|---|
Execute the statement and return the result set
| SQLException | 
|---|
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.
| HibernateException | |
|---|---|
| SQLException |