Acts as the mediary between "entity-mode related" sessions in terms of
their interaction with the JDBC data store.
afterNontransactionalQuery
public void afterNontransactionalQuery(boolean success)
Called after executing a query outside the scope of
a Hibernate or JTA transaction
afterTransactionBegin
public void afterTransactionBegin(Transaction tx)
We cannot rely upon this method being called! It is only
called if we are using Hibernate Transaction API.
afterTransactionCompletion
public void afterTransactionCompletion(boolean success,
Transaction tx)
beforeTransactionCompletion
public void beforeTransactionCompletion(Transaction tx)
borrowConnection
public Connection borrowConnection()
deserialize
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.
ois
- The stream from which to read the entry.
registerCallbackIfNecessary
public boolean registerCallbackIfNecessary()
registerSynchronizationIfPossible
public boolean registerSynchronizationIfPossible()
serialize
public void serialize(ObjectOutputStream oos)
throws IOException
Custom serialization routine used during serialization of a
Session/PersistenceContext for increased performance.
oos
- The stream to which we should write the serial data.