org.apache.openjpa.persistence
Interface OpenJPAEntityManagerSPI

All Superinterfaces:
OpenJPAEntityManager
All Known Implementing Classes:
EntityManagerImpl

public interface OpenJPAEntityManagerSPI
extends OpenJPAEntityManager


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 org.apache.openjpa.persistence.OpenJPAEntityManager
beginStore, cancelAll, containsAll, containsAll, createExtent, createInstance, createNamedQuery, createNativeQuery, createNativeQuery, createNativeQuery, createQuery, createQuery, detach, detachAll, detachAll, dirty, dirtyClass, evict, evictAll, evictAll, evictAll, evictAll, evictAll, findAll, findAll, findCached, getAutoClear, getAutoDetach, getClassLoader, getConnection, getConnectionPassword, getConnectionRetainMode, getConnectionUserName, getDetachState, getDirtyObjects, getEntityManagerFactory, getEvictFromStoreCache, getFetchPlan, getFieldGenerator, getIdGenerator, getIgnoreChanges, getLockMode, getManagedObjects, getMultithreaded, getNamedGenerator, getNontransactionalRead, getNontransactionalWrite, getObjectId, getObjectIdClass, getOptimistic, getOrderDirtyObjects, getPendingTransactionalObjects, getPersistedClasses, getPopulateStoreCache, getRemovedClasses, getRestoreState, getRetainState, getSyncWithManagedTransactions, getTransaction, getTransactionalObjects, getUpdatedClasses, getUserObject, getVersion, isDetached, isDirty, isManaged, isNewlyPersistent, isPersistent, isRemoved, isStoreActive, isTrackChangesByType, isTransactional, lock, lock, lockAll, lockAll, lockAll, lockAll, mergeAll, mergeAll, nontransactional, nontransactionalAll, nontransactionalAll, persistAll, persistAll, preFlush, putUserObject, refreshAll, refreshAll, refreshAll, release, releaseAll, releaseAll, releaseSavepoint, releaseSavepoint, removeAll, removeAll, retrieve, retrieveAll, retrieveAll, rollbackToSavepoint, rollbackToSavepoint, setAutoClear, setAutoDetach, setAutoDetach, setAutoDetach, setDetachState, setEvictFromStoreCache, setIgnoreChanges, setMultithreaded, setNontransactionalRead, setNontransactionalWrite, setOptimistic, setOrderDirtyObjects, setPopulateStoreCache, setRestoreState, setRetainState, setSavepoint, setSyncWithManagedTransactions, setTrackChangesByType, transactional, transactionalAll, transactionalAll, validateChanges
 

Method Detail

getConfiguration

OpenJPAConfiguration getConfiguration()
Return the configuration associated with this entity manager.


getManagedRuntime

ManagedRuntime getManagedRuntime()
Return the managed runtime in use.


addTransactionListener

void addTransactionListener(Object listener)
Register a listener for transaction-related events.


removeTransactionListener

void removeTransactionListener(Object listener)
Remove a listener for transaction-related events.


getTransactionListenerCallbackMode

EnumSet<CallbackMode> getTransactionListenerCallbackMode()
The CallbackMode flags for handling transaction listener exceptions.


setTransactionListenerCallbackMode

void setTransactionListenerCallbackMode(CallbackMode mode)
The CallbackMode flag for handling transaction listener exceptions. The flags provided here will entirely replace the previous settings.


setTransactionListenerCallbackMode

void setTransactionListenerCallbackMode(EnumSet<CallbackMode> modes)
The CallbackMode flags for handling transaction listener exceptions. The flags provided here will entirely replace the previous settings.


addLifecycleListener

void addLifecycleListener(Object listener,
                          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.


removeLifecycleListener

void removeLifecycleListener(Object listener)
Remove a listener for lifecycle-related events.


getLifecycleListenerCallbackMode

EnumSet<CallbackMode> getLifecycleListenerCallbackMode()
The CallbackMode flags for handling lifecycle listener exceptions.


setLifecycleListenerCallbackMode

void setLifecycleListenerCallbackMode(CallbackMode mode)
The CallbackMode flag for handling lifecycle listener exceptions. The flags provided here will entirely replace the previous settings.


setLifecycleListenerCallbackMode

void setLifecycleListenerCallbackMode(EnumSet<CallbackMode> modes)
The CallbackMode flags for handling lifecycle listener exceptions. The flags provided here will entirely replace the previous settings.



Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.