Save This Page
Home » hibernate-distribution-3.3.1.GA-dist » org.hibernate » jdbc » [javadoc | source]
org.hibernate.jdbc
public class: JDBCContext [javadoc | source]
java.lang.Object
   org.hibernate.jdbc.JDBCContext

All Implemented Interfaces:
    Callback, Serializable

Acts as the mediary between "entity-mode related" sessions in terms of their interaction with the JDBC data store.
Nested Class Summary:
public static interface  JDBCContext.Context   
Constructor:
 public JDBCContext(JDBCContext.Context owner,
    Connection connection,
    Interceptor interceptor) 
Method from org.hibernate.jdbc.JDBCContext Summary:
afterNontransactionalQuery,   afterTransactionBegin,   afterTransactionCompletion,   beforeTransactionCompletion,   borrowConnection,   connection,   connectionCleanedUp,   connectionOpened,   deserialize,   getConnectionManager,   getFactory,   getTransaction,   isTransactionInProgress,   registerCallbackIfNecessary,   registerSynchronizationIfPossible,   serialize
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.hibernate.jdbc.JDBCContext Detail:
 public  void afterNontransactionalQuery(boolean success) 
    Called after executing a query outside the scope of a Hibernate or JTA transaction
 public  void afterTransactionBegin(Transaction tx) 
    We cannot rely upon this method being called! It is only called if we are using Hibernate Transaction API.
 public  void afterTransactionCompletion(boolean success,
    Transaction tx) 
 public  void beforeTransactionCompletion(Transaction tx) 
 public Connection borrowConnection() 
 public Connection connection() throws HibernateException 
 public  void connectionCleanedUp() 
 public  void connectionOpened() 
 public static JDBCContext deserialize(ObjectInputStream ois,
    JDBCContext.Context context,
    Interceptor interceptor) throws IOException 
    Custom deserialization routine used during deserialization of a Session/PersistenceContext for increased performance.
 public ConnectionManager getConnectionManager() 
 public SessionFactoryImplementor getFactory() 
 public Transaction getTransaction() throws HibernateException 
 public boolean isTransactionInProgress() 
 public boolean registerCallbackIfNecessary() 
 public boolean registerSynchronizationIfPossible() 
 public  void serialize(ObjectOutputStream oos) throws IOException 
    Custom serialization routine used during serialization of a Session/PersistenceContext for increased performance.