|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OpenJPAEntityManagerSPI
Method Summary | |
---|---|
void |
addLifecycleListener(Object listener,
Class... classes)
Register a listener for lifecycle-related events on the specified classes. |
void |
addTransactionListener(Object listener)
Register a listener for transaction-related events. |
OpenJPAConfiguration |
getConfiguration()
Return the configuration associated with this entity manager. |
EnumSet<CallbackMode> |
getLifecycleListenerCallbackMode()
The CallbackMode flags for handling lifecycle listener
exceptions. |
ManagedRuntime |
getManagedRuntime()
Return the managed runtime in use. |
EnumSet<CallbackMode> |
getTransactionListenerCallbackMode()
The CallbackMode flags for handling transaction listener
exceptions. |
void |
removeLifecycleListener(Object listener)
Remove a listener for lifecycle-related events. |
void |
removeTransactionListener(Object listener)
Remove a listener for transaction-related events. |
void |
setLifecycleListenerCallbackMode(CallbackMode mode)
The CallbackMode flag for handling lifecycle listener
exceptions. |
void |
setLifecycleListenerCallbackMode(EnumSet<CallbackMode> modes)
The CallbackMode flags for handling lifecycle listener
exceptions. |
void |
setTransactionListenerCallbackMode(CallbackMode mode)
The CallbackMode flag for handling transaction listener
exceptions. |
void |
setTransactionListenerCallbackMode(EnumSet<CallbackMode> modes)
The CallbackMode flags for handling transaction listener
exceptions. |
Methods inherited from interface javax.persistence.EntityManager |
---|
clear, close, contains, find, flush, getDelegate, getFlushMode, getReference, isOpen, joinTransaction, lock, merge, persist, refresh, remove, setFlushMode |
Method Detail |
---|
OpenJPAConfiguration getConfiguration()
ManagedRuntime getManagedRuntime()
void addTransactionListener(Object listener)
void removeTransactionListener(Object listener)
EnumSet<CallbackMode> getTransactionListenerCallbackMode()
CallbackMode
flags for handling transaction listener
exceptions.
void setTransactionListenerCallbackMode(CallbackMode mode)
CallbackMode
flag for handling transaction listener
exceptions. The flags provided here will entirely replace the
previous settings.
void setTransactionListenerCallbackMode(EnumSet<CallbackMode> modes)
CallbackMode
flags for handling transaction listener
exceptions. The flags provided here will entirely replace the
previous settings.
void addLifecycleListener(Object listener, Class... classes)
void removeLifecycleListener(Object listener)
EnumSet<CallbackMode> getLifecycleListenerCallbackMode()
CallbackMode
flags for handling lifecycle listener
exceptions.
void setLifecycleListenerCallbackMode(CallbackMode mode)
CallbackMode
flag for handling lifecycle listener
exceptions. The flags provided here will entirely replace the
previous settings.
void setLifecycleListenerCallbackMode(EnumSet<CallbackMode> modes)
CallbackMode
flags for handling lifecycle listener
exceptions. The flags provided here will entirely replace the
previous settings.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |