Uses of Interface
org.apache.openjpa.kernel.Broker
Package
Description
OpenJPA Audit Facility
OpenJPA Events
OpenJPA-JDBC Runtime Kernel
OpenJPA Runtime Kernel
OpenJPA JPA
Extended OpenJPA Interfaces for distributed databases.
-
Uses of Broker in org.apache.openjpa.audit
Modifier and TypeMethodDescriptionvoid
AuditLogger.audit
(Broker broker, Collection<Audited> newObjects, Collection<Audited> updates, Collection<Audited> deletes) void
Auditor.audit
(Broker broker, Collection<Audited> newObjects, Collection<Audited> updates, Collection<Audited> deletes) OpenJPA runtime will invoke this method with the given parameters within a transaction. -
Uses of Broker in org.apache.openjpa.event
ModifierConstructorDescriptionTransactionEvent
(Broker broker, int type, Collection objs, Collection addClss, Collection updateClss, Collection deleteClss) Constructor. -
Uses of Broker in org.apache.openjpa.jdbc.kernel
Modifier and TypeMethodDescriptionAbstractJDBCSavepointManager.newSavepoint
(String name, Broker broker) PreparedQueryImpl.reparametrize
(Map user, Broker broker) Merge the given user parameters with its own parameter. -
Uses of Broker in org.apache.openjpa.kernel
Modifier and TypeClassDescriptionclass
ConcreteBroker
.class
Delegating broker that can also perform exception translation for use in facades.class
Subtype ofBrokerImpl
that automatically closes itself during finalization.Modifier and TypeMethodDescriptionprotected Broker
AbstractBrokerFactory.findBroker
(String user, String pass, boolean managed) Find a pooled broker, or return null if none.protected Broker
AbstractBrokerFactory.findTransactionalBroker
(String user, String pass) Find a managed runtime broker associated with the current transaction, or returns null if none.protected Broker
AuditManager.getBroker
(PersistenceCapable pc) Extracts the broker from the given persistence capable instance.BrokerImpl.getBroker()
DelegatingBroker.getBroker()
DelegatingExtent.getBroker()
DelegatingQuery.getBroker()
Extent.getBroker()
The broker that generated the extent.ExtentImpl.getBroker()
OpenJPASavepoint.getBroker()
Return the Broker associated with this savepoint.Query.getBroker()
The broker that generated this query.QueryImpl.getBroker()
StoreContext.getBroker()
Return the broker for this context, if possible.DelegatingBroker.getDelegate()
Return the direct delegate.DelegatingBroker.getInnermostDelegate()
Return the native delegate.AbstractBrokerFactory.newBroker()
AbstractBrokerFactory.newBroker
(boolean managed, int connRetainMode) AbstractBrokerFactory.newBroker
(String user, String pass, boolean managed, int connRetainMode, boolean findExisting) AbstractBrokerFactory.newBroker
(String user, String pass, boolean managed, int connRetainMode, boolean findExisting, String cf1Name, String cf2Name) BrokerFactory.newBroker()
Return a broker with default settings.BrokerFactory.newBroker
(String user, String pass, boolean managed, int connRetainMode, boolean findExisting) Return a broker using the given credentials and in the given transaction and connection retain mode, optionally finding existing broker in the global transaction.BrokerFactory.newBroker
(String user, String pass, boolean managed, int connRetainMode, boolean findExisting, String cfName, String cf2Name) Return a new broker using the supplied credentials transaction management mode connectionRetainMode connectionFactoriesDelegatingBrokerFactory.newBroker()
DelegatingBrokerFactory.newBroker
(String user, String pass, boolean managed, int connRetainMode, boolean findExisting) DelegatingBrokerFactory.newBroker
(String user, String pass, boolean managed, int connRetainMode, boolean findExisting, String cfName, String cf2Name) Modifier and TypeMethodDescriptionAbstractBrokerFactory.getOpenBrokers()
Returns a set of all the open brokers associated with this factory.Modifier and TypeMethodDescriptionprotected void
AbstractBrokerFactory.addListeners
(Broker broker) Add factory-registered lifecycle listeners to the broker.static boolean
QueryImpl.isAccessPathDirty
(Broker broker, ClassMetaData[] accessMetas) static BrokerImpl.StateManagerId
BrokerImpl.StateManagerId.newInstance
(Broker b) InMemorySavepointManager.newSavepoint
(String name, Broker broker) SavepointManager.newSavepoint
(String name, Broker broker) Return a new savepoint for the given name, which may be null.PreparedQuery.reparametrize
(Map user, Broker broker) Get the list of parameters in a map where an entry represents a parameter key and value after replacing with the given user parameters.ModifierConstructorDescriptionDelegatingBroker
(Broker broker) Constructor; supply delegate.DelegatingBroker
(Broker broker, RuntimeExceptionTranslator trans) Constructor; supply delegate and exception translator.OpenJPASavepoint
(Broker broker, String name, boolean copy) Constructor.QueryImpl
(Broker broker, String language, StoreQuery storeQuery) Construct a query managed by the given broker. -
Uses of Broker in org.apache.openjpa.persistence
Modifier and TypeMethodDescriptionEntityManagerImpl.getBroker()
Broker delegate.static Broker
JPAFacadeHelper.toBroker
(jakarta.persistence.EntityManager em) Return the underlying broker for the given entity manager facade.static Broker
OpenJPAPersistence.toBroker
(jakarta.persistence.EntityManager em) Deprecated.Modifier and TypeMethodDescriptionprotected EntityManagerImpl
EntityManagerFactoryImpl.newEntityManagerImpl
(Broker broker) Create a new entity manager around the given broker.static OpenJPAEntityManager
JPAFacadeHelper.toEntityManager
(Broker broker) Return a persistence manager facade to the given broker retaining previously associated persistence context type.static OpenJPAEntityManager
OpenJPAPersistence.toEntityManager
(Broker broker) Deprecated.useJPAFacadeHelper
instead.ModifierConstructorDescriptionEntityManagerImpl
(EntityManagerFactoryImpl factory, Broker broker) Constructor; supply factory and delegate. -
Uses of Broker in org.apache.openjpa.slice
Modifier and TypeInterfaceDescriptioninterface
Extension to Broker to allow access tovirtual data store
.Modifier and TypeClassDescriptionclass
A specialized Broker to associate slice identifiers with the StateManagers as they are persisted in a cascade.ModifierConstructorDescriptionDistributedQueryImpl
(Broker broker, String language, StoreQuery storeQuery) -
Uses of Broker in org.apache.openjpa.util.proxy
Modifier and TypeMethodDescriptionDelayedArrayListProxy.getBroker()
DelayedHashSetProxy.getBroker()
DelayedLinkedHashSetProxy.getBroker()
DelayedLinkedListProxy.getBroker()
DelayedPriorityQueueProxy.getBroker()
DelayedProxy.getBroker()
Get the broker that is used to service this proxy.DelayedTreeSetProxy.getBroker()
DelayedVectorProxy.getBroker()
JPAFacadeHelper
instead.