Uses of Interface
org.apache.openjpa.kernel.Broker
Packages that use 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
Methods in org.apache.openjpa.audit with parameters of type BrokerModifier 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
Constructors in org.apache.openjpa.event with parameters of type BrokerModifierConstructorDescriptionTransactionEvent
(Broker broker, int type, Collection objs, Collection addClss, Collection updateClss, Collection deleteClss) Constructor. -
Uses of Broker in org.apache.openjpa.jdbc.kernel
Methods in org.apache.openjpa.jdbc.kernel with parameters of type BrokerModifier and TypeMethodDescriptionAbstractJDBCSavepointManager.newSavepoint
(String name, Broker broker) PreparedQueryImpl.reparametrize
(Map user, Broker broker) Merge the given user parameters with its own parameter.Constructors in org.apache.openjpa.jdbc.kernel with parameters of type Broker -
Uses of Broker in org.apache.openjpa.kernel
Classes in org.apache.openjpa.kernel that implement BrokerModifier 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.Methods in org.apache.openjpa.kernel that return BrokerModifier 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) Methods in org.apache.openjpa.kernel that return types with arguments of type BrokerModifier and TypeMethodDescriptionAbstractBrokerFactory.getOpenBrokers()
Returns a set of all the open brokers associated with this factory.Methods in org.apache.openjpa.kernel with parameters of type BrokerModifier 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.Constructors in org.apache.openjpa.kernel with parameters of type BrokerModifierConstructorDescriptionDelegatingBroker
(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
Methods in org.apache.openjpa.persistence that return BrokerModifier 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.Methods in org.apache.openjpa.persistence with parameters of type BrokerModifier 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.Constructors in org.apache.openjpa.persistence with parameters of type BrokerModifierConstructorDescriptionEntityManagerImpl
(EntityManagerFactoryImpl factory, Broker broker) Constructor; supply factory and delegate. -
Uses of Broker in org.apache.openjpa.slice
Subinterfaces of Broker in org.apache.openjpa.sliceModifier and TypeInterfaceDescriptioninterface
Extension to Broker to allow access tovirtual data store
.Classes in org.apache.openjpa.slice that implement BrokerModifier and TypeClassDescriptionclass
A specialized Broker to associate slice identifiers with the StateManagers as they are persisted in a cascade.Constructors in org.apache.openjpa.slice with parameters of type BrokerModifierConstructorDescriptionDistributedQueryImpl
(Broker broker, String language, StoreQuery storeQuery) -
Uses of Broker in org.apache.openjpa.util.proxy
Methods in org.apache.openjpa.util.proxy that return BrokerModifier 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.