|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OpenJPAEntityManagerSPI
Field Summary |
---|
Fields inherited from interface org.apache.openjpa.persistence.OpenJPAEntityManager |
---|
CALLBACK_FAIL_FAST, CALLBACK_IGNORE, CALLBACK_LOG, CALLBACK_RETHROW, CALLBACK_ROLLBACK, CLEAR_ALL, CLEAR_DATASTORE, CONN_RETAIN_ALWAYS, CONN_RETAIN_DEMAND, CONN_RETAIN_TRANS, DETACH_ALL, DETACH_CLOSE, DETACH_COMMIT, DETACH_FETCH_GROUPS, DETACH_FGS, DETACH_LOADED, DETACH_NONTXREAD, DETACH_ROLLBACK, RESTORE_ALL, RESTORE_IMMUTABLE, RESTORE_NONE |
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> |
getLifecycleListenerCallbackModes()
The CallbackMode flags for handling lifecycle listener
exceptions. |
ManagedRuntime |
getManagedRuntime()
Return the managed runtime in use. |
boolean |
getQuerySQLCache()
Affirms if this receiver is caching database queries. |
EnumSet<CallbackMode> |
getTransactionListenerCallbackModes()
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 |
setQuerySQLCache(boolean flag)
Sets whether this receiver will cache database queries during its lifetime. |
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, createNamedQuery, createQuery, createQuery, detach, find, find, find, find, flush, getDelegate, getFlushMode, getMetamodel, getProperties, getReference, isOpen, joinTransaction, lock, lock, merge, persist, refresh, refresh, refresh, refresh, remove, setFlushMode, setProperty, unwrap |
Method Detail |
---|
OpenJPAConfiguration getConfiguration()
getConfiguration
in interface OpenJPAEntityManager
ManagedRuntime getManagedRuntime()
void addTransactionListener(Object listener)
addTransactionListener
in interface OpenJPAEntityManager
void removeTransactionListener(Object listener)
removeTransactionListener
in interface OpenJPAEntityManager
EnumSet<CallbackMode> getTransactionListenerCallbackModes()
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)
addLifecycleListener
in interface OpenJPAEntityManager
void removeLifecycleListener(Object listener)
removeLifecycleListener
in interface OpenJPAEntityManager
EnumSet<CallbackMode> getLifecycleListenerCallbackModes()
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.
boolean getQuerySQLCache()
void setQuerySQLCache(boolean flag)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |