public class NullPersistentContextInterceptor extends java.lang.Object implements PersistenceContextInterceptor
| Constructor and Description |
|---|
NullPersistentContextInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear any pending changes.
|
void |
destroy()
Called to finalize the persistent context.
|
void |
disconnect()
Disconnects the persistence context.
|
void |
flush()
Flushes any pending changes to the DB.
|
void |
init()
Called to intialisation the persistent context.
|
boolean |
isOpen()
Checks whether the persistence context is open.
|
void |
reconnect()
Reconnects the persistence context.
|
void |
setReadOnly()
Sets the persistence context to read-only mode.
|
void |
setReadWrite()
Sets the persistence context to read-write mode.
|
public void init()
PersistenceContextInterceptorinit in interface PersistenceContextInterceptorpublic void destroy()
PersistenceContextInterceptordestroy in interface PersistenceContextInterceptorpublic void disconnect()
PersistenceContextInterceptordisconnect in interface PersistenceContextInterceptorpublic void reconnect()
PersistenceContextInterceptorreconnect in interface PersistenceContextInterceptorpublic void flush()
PersistenceContextInterceptorflush in interface PersistenceContextInterceptorpublic void clear()
PersistenceContextInterceptorclear in interface PersistenceContextInterceptorpublic void setReadOnly()
PersistenceContextInterceptorsetReadOnly in interface PersistenceContextInterceptorpublic void setReadWrite()
PersistenceContextInterceptorsetReadWrite in interface PersistenceContextInterceptorpublic boolean isOpen()
PersistenceContextInterceptorisOpen in interface PersistenceContextInterceptor