org.hibernate.jdbc
Class JDBCContext

java.lang.Object
  extended byorg.hibernate.jdbc.JDBCContext
All Implemented Interfaces:
Serializable

public class JDBCContext
extends Object
implements Serializable

Implementation of JDBCContext.

Author:
Steve Ebersole
See Also:
Serialized Form

Nested Class Summary
static interface JDBCContext.Context
           
 
Constructor Summary
JDBCContext(JDBCContext.Context owner, Connection connection, boolean autoClose)
           
 
Method Summary
 void afterNontransactionalQuery(boolean success)
          Called after executing a query outside the scope of a Hibernate or JTA transaction
 void afterTransactionCompletion(boolean success, Transaction tx)
           
 void beforeTransactionCompletion(Transaction tx)
           
 Transaction beginTransaction()
           
 Connection connection()
           
 Connection disconnect()
           
protected  void finalize()
          Just in case user forgot to commit()/cancel() or close()
 Batcher getBatcher()
           
 SessionFactoryImplementor getFactory()
           
 boolean isConnected()
           
 boolean isSerializable()
           
 boolean isTransactionInProgress()
           
 void reconnect()
           
 void reconnect(Connection conn)
           
 boolean registerCallbackIfNecessary()
           
 boolean registerSynchronizationIfPossible()
           
 Connection release()
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDBCContext

public JDBCContext(JDBCContext.Context owner,
                   Connection connection,
                   boolean autoClose)
Method Detail

getFactory

public SessionFactoryImplementor getFactory()

getBatcher

public Batcher getBatcher()

isConnected

public boolean isConnected()

isSerializable

public boolean isSerializable()

release

public Connection release()

connection

public Connection connection()
                      throws HibernateException
Throws:
HibernateException

registerCallbackIfNecessary

public boolean registerCallbackIfNecessary()

registerSynchronizationIfPossible

public boolean registerSynchronizationIfPossible()

isTransactionInProgress

public boolean isTransactionInProgress()

disconnect

public Connection disconnect()
                      throws HibernateException
Throws:
HibernateException

reconnect

public void reconnect()
               throws HibernateException
Throws:
HibernateException

reconnect

public void reconnect(Connection conn)
               throws HibernateException
Throws:
HibernateException

beginTransaction

public Transaction beginTransaction()
                             throws HibernateException
Throws:
HibernateException

beforeTransactionCompletion

public void beforeTransactionCompletion(Transaction tx)

afterTransactionCompletion

public void afterTransactionCompletion(boolean success,
                                       Transaction tx)

afterNontransactionalQuery

public void afterNontransactionalQuery(boolean success)
Called after executing a query outside the scope of a Hibernate or JTA transaction


finalize

protected void finalize()
                 throws Throwable
Just in case user forgot to commit()/cancel() or close()

Throws:
Throwable