Methods Summary |
---|
public void | abortBatch(java.sql.SQLException 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 | cancelLastQuery()Cancel the current query statement
|
public void | closeConnection(java.sql.Connection conn)Dispose of the JDBC connection
|
public void | closeQueryStatement(java.sql.PreparedStatement ps, java.sql.ResultSet rs)Close a prepared statement opened with prepareQueryStatement()
|
public void | closeStatement(java.sql.PreparedStatement ps)Close a prepared or callable statement opened using prepareStatement() or prepareCallableStatement()
|
public void | closeStatements()Close any query statements that were left lying around
|
public void | executeBatch()Execute the batch
|
public java.sql.ResultSet | getResultSet(java.sql.PreparedStatement ps)Execute the statement and return the result set
|
public java.sql.ResultSet | getResultSet(java.sql.CallableStatement ps, org.hibernate.dialect.Dialect dialect)Execute the statement and return the result set from a callable statement
|
public boolean | hasOpenResources()
|
public java.sql.Connection | openConnection()Obtain a JDBC connection
|
public java.lang.String | openResourceStatsAsString()
|
public java.sql.CallableStatement | prepareBatchCallableStatement(java.lang.String sql)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.
|
public java.sql.PreparedStatement | prepareBatchStatement(java.lang.String sql)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.
|
public java.sql.CallableStatement | prepareCallableQueryStatement(java.lang.String sql, boolean scrollable, org.hibernate.ScrollMode scrollMode)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.
|
public java.sql.CallableStatement | prepareCallableStatement(java.lang.String sql)Get a non-batchable callable statement to use for inserting / deleting / updating.
Must be explicitly released by {@link #closeStatement} after use.
|
public java.sql.PreparedStatement | prepareQueryStatement(java.lang.String sql, boolean scrollable, org.hibernate.ScrollMode scrollMode)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.
|
public java.sql.PreparedStatement | prepareSelectStatement(java.lang.String sql)Get a non-batchable prepared statement to use for selecting. Does not
result in execution of the current batch.
|
public java.sql.PreparedStatement | prepareStatement(java.lang.String sql, boolean useGetGeneratedKeys)Get a non-batchable prepared statement to use for inserting / deleting / updating,
using JDBC3 getGeneratedKeys ({@link Connection#prepareStatement(String, int)}).
Must be explicitly released by {@link #closeStatement} after use.
|
public java.sql.PreparedStatement | prepareStatement(java.lang.String sql, java.lang.String[] columnNames)Get a non-batchable prepared statement to use for inserting / deleting / updating.
using JDBC3 getGeneratedKeys ({@link Connection#prepareStatement(String, String[])}).
Must be explicitly released by {@link #closeStatement} after use.
|
public java.sql.PreparedStatement | prepareStatement(java.lang.String sql)Get a non-batchable prepared statement to use for inserting / deleting / updating.
Must be explicitly released by {@link #closeStatement} after use.
|
public void | setTransactionTimeout(int seconds)Set the transaction timeout to seconds later
than the current system time.
|
public void | unsetTransactionTimeout()Unset the transaction timeout, called after the end of a
transaction.
|