Package org.apache.openjpa.persistence
Interface OpenJPAEntityManagerSPI
- 
- All Superinterfaces:
- jakarta.persistence.EntityManager,- jakarta.persistence.EntityTransaction,- OpenJPAEntityManager
 - All Known Implementing Classes:
- EntityManagerImpl
 
 public interface OpenJPAEntityManagerSPI extends OpenJPAEntityManager 
- 
- 
Field Summary- 
Fields inherited from interface org.apache.openjpa.persistence.OpenJPAEntityManagerCALLBACK_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 SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddLifecycleListener(java.lang.Object listener, java.lang.Class... classes)Register a listener for lifecycle-related events on the specified classes.voidaddTransactionListener(java.lang.Object listener)Register a listener for transaction-related events.OpenJPAConfigurationgetConfiguration()Return the configuration associated with this entity manager.java.util.EnumSet<CallbackMode>getLifecycleListenerCallbackModes()TheCallbackModeflags for handling lifecycle listener exceptions.ManagedRuntimegetManagedRuntime()Return the managed runtime in use.booleangetQuerySQLCache()Affirms if this receiver is caching database queries.java.util.EnumSet<CallbackMode>getTransactionListenerCallbackModes()TheCallbackModeflags for handling transaction listener exceptions.voidremoveLifecycleListener(java.lang.Object listener)Remove a listener for lifecycle-related events.voidremoveTransactionListener(java.lang.Object listener)Remove a listener for transaction-related events.voidsetLifecycleListenerCallbackMode(java.util.EnumSet<CallbackMode> modes)TheCallbackModeflags for handling lifecycle listener exceptions.voidsetLifecycleListenerCallbackMode(CallbackMode mode)TheCallbackModeflag for handling lifecycle listener exceptions.voidsetQuerySQLCache(boolean flag)Sets whether this receiver will cache database queries during its lifetime.voidsetTransactionListenerCallbackMode(java.util.EnumSet<CallbackMode> modes)TheCallbackModeflags for handling transaction listener exceptions.voidsetTransactionListenerCallbackMode(CallbackMode mode)TheCallbackModeflag for handling transaction listener exceptions.- 
Methods inherited from interface jakarta.persistence.EntityManagerclear, close, contains, createEntityGraph, createEntityGraph, createNamedQuery, createNamedStoredProcedureQuery, createQuery, createQuery, createQuery, createQuery, createStoredProcedureQuery, createStoredProcedureQuery, createStoredProcedureQuery, detach, find, find, find, find, flush, getDelegate, getEntityGraph, getEntityGraphs, getFlushMode, getMetamodel, getProperties, getReference, isJoinedToTransaction, isOpen, joinTransaction, lock, lock, merge, persist, refresh, refresh, refresh, refresh, remove, setFlushMode, setProperty, unwrap
 - 
Methods inherited from interface org.apache.openjpa.persistence.OpenJPAEntityManagerbegin, beginStore, cancelAll, commit, commitAndResume, containsAll, containsAll, createDynamicQuery, createExtent, createInstance, createNamedQuery, createNativeQuery, createNativeQuery, createNativeQuery, createQuery, createQuery, createQuery, detachAll, detachAll, detachCopy, dirty, dirtyClass, evict, evictAll, evictAll, evictAll, evictAll, evictAll, findAll, findAll, findCached, getAutoClear, getAutoDetach, getClassLoader, getConnection, getConnectionPassword, getConnectionRetainMode, getConnectionUserName, getCriteriaBuilder, getDetachState, getDirtyObjects, getEntityManagerFactory, getEvictFromStoreCache, getFetchPlan, getFieldGenerator, getIdGenerator, getIgnoreChanges, getLifecycleListenerCallbackMode, getLockMode, getManagedObjects, getMultithreaded, getNamedGenerator, getNontransactionalRead, getNontransactionalWrite, getObjectId, getObjectIdClass, getOptimistic, getOrderDirtyObjects, getPendingTransactionalObjects, getPersistedClasses, getPopulateStoreCache, getRemovedClasses, getRestoreState, getRetainState, getRollbackCause, getRollbackOnly, getSupportedProperties, getSyncWithManagedTransactions, getTransaction, getTransactionalObjects, getTransactionListenerCallbackMode, getUpdatedClasses, getUserObject, getVersion, isActive, isDetached, isDirty, isLargeTransaction, isManaged, isNewlyPersistent, isPersistent, isRemoved, isStoreActive, isTrackChangesByType, isTransactional, isTransactionManaged, lock, lock, lockAll, lockAll, lockAll, lockAll, mergeAll, mergeAll, nontransactional, nontransactionalAll, nontransactionalAll, persistAll, persistAll, popFetchPlan, preFlush, pushFetchPlan, putUserObject, refreshAll, refreshAll, refreshAll, release, releaseAll, releaseAll, releaseSavepoint, releaseSavepoint, removeAll, removeAll, retrieve, retrieveAll, retrieveAll, rollback, rollbackAndResume, rollbackToSavepoint, rollbackToSavepoint, setAutoClear, setAutoClear, setAutoDetach, setAutoDetach, setAutoDetach, setAutoDetach, setAutoDetach, setDetachState, setDetachState, setEvictFromStoreCache, setIgnoreChanges, setLargeTransaction, setLifecycleListenerCallbackMode, setMultithreaded, setNontransactionalRead, setNontransactionalWrite, setOptimistic, setOrderDirtyObjects, setPopulateStoreCache, setRestoreState, setRestoreState, setRetainState, setRollbackOnly, setRollbackOnly, setSavepoint, setSyncWithManagedTransactions, setTrackChangesByType, setTransactionListenerCallbackMode, transactional, transactionalAll, transactionalAll, validateChanges
 
- 
 
- 
- 
- 
Method Detail- 
getConfigurationOpenJPAConfiguration getConfiguration() Return the configuration associated with this entity manager.- Specified by:
- getConfigurationin interface- OpenJPAEntityManager
 
 - 
getManagedRuntimeManagedRuntime getManagedRuntime() Return the managed runtime in use.
 - 
addTransactionListenervoid addTransactionListener(java.lang.Object listener) Register a listener for transaction-related events.- Specified by:
- addTransactionListenerin interface- OpenJPAEntityManager
 
 - 
removeTransactionListenervoid removeTransactionListener(java.lang.Object listener) Remove a listener for transaction-related events.- Specified by:
- removeTransactionListenerin interface- OpenJPAEntityManager
 
 - 
getTransactionListenerCallbackModesjava.util.EnumSet<CallbackMode> getTransactionListenerCallbackModes() TheCallbackModeflags for handling transaction listener exceptions.- Since:
- 1.1.0
 
 - 
setTransactionListenerCallbackModevoid setTransactionListenerCallbackMode(CallbackMode mode) TheCallbackModeflag for handling transaction listener exceptions. The flags provided here will entirely replace the previous settings.
 - 
setTransactionListenerCallbackModevoid setTransactionListenerCallbackMode(java.util.EnumSet<CallbackMode> modes) TheCallbackModeflags for handling transaction listener exceptions. The flags provided here will entirely replace the previous settings.
 - 
addLifecycleListenervoid addLifecycleListener(java.lang.Object listener, java.lang.Class... classes)Register a listener for lifecycle-related events on the specified classes. If the classes are null, all events will be propagated to the listener.- Specified by:
- addLifecycleListenerin interface- OpenJPAEntityManager
 
 - 
removeLifecycleListenervoid removeLifecycleListener(java.lang.Object listener) Remove a listener for lifecycle-related events.- Specified by:
- removeLifecycleListenerin interface- OpenJPAEntityManager
 
 - 
getLifecycleListenerCallbackModesjava.util.EnumSet<CallbackMode> getLifecycleListenerCallbackModes() TheCallbackModeflags for handling lifecycle listener exceptions.- Since:
- 1.1.0
 
 - 
setLifecycleListenerCallbackModevoid setLifecycleListenerCallbackMode(CallbackMode mode) TheCallbackModeflag for handling lifecycle listener exceptions. The flags provided here will entirely replace the previous settings.
 - 
setLifecycleListenerCallbackModevoid setLifecycleListenerCallbackMode(java.util.EnumSet<CallbackMode> modes) TheCallbackModeflags for handling lifecycle listener exceptions. The flags provided here will entirely replace the previous settings.
 - 
getQuerySQLCacheboolean getQuerySQLCache() Affirms if this receiver is caching database queries.- Since:
- 2.0.0
 
 - 
setQuerySQLCachevoid setQuerySQLCache(boolean flag) Sets whether this receiver will cache database queries during its lifetime. The cache configured at BrokerFactory level is not affected by setting it inactive for this receiver.- Since:
- 2.0.0
 
 
- 
 
-