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