Uses of Interface
org.apache.openjpa.kernel.Broker
-
Packages that use Broker Package Description org.apache.openjpa.audit OpenJPA Audit Facilityorg.apache.openjpa.event OpenJPA Eventsorg.apache.openjpa.jdbc.kernel OpenJPA-JDBC Runtime Kernelorg.apache.openjpa.kernel OpenJPA Runtime Kernelorg.apache.openjpa.persistence OpenJPA JPAorg.apache.openjpa.slice Extended OpenJPA Interfaces for distributed databases.org.apache.openjpa.util.proxy -
-
Uses of Broker in org.apache.openjpa.audit
Methods in org.apache.openjpa.audit with parameters of type Broker Modifier and Type Method Description void
AuditLogger. audit(Broker broker, java.util.Collection<Audited> newObjects, java.util.Collection<Audited> updates, java.util.Collection<Audited> deletes)
void
Auditor. audit(Broker broker, java.util.Collection<Audited> newObjects, java.util.Collection<Audited> updates, java.util.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 Broker Constructor Description TransactionEvent(Broker broker, int type, java.util.Collection objs, java.util.Collection addClss, java.util.Collection updateClss, java.util.Collection deleteClss)
Constructor. -
Uses of Broker in org.apache.openjpa.jdbc.kernel
Methods in org.apache.openjpa.jdbc.kernel with parameters of type Broker Modifier and Type Method Description OpenJPASavepoint
AbstractJDBCSavepointManager. newSavepoint(java.lang.String name, Broker broker)
java.util.Map<java.lang.Integer,java.lang.Object>
PreparedQueryImpl. reparametrize(java.util.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 Constructor Description ConnectionSavepoint(Broker broker, java.lang.String name, boolean copy)
-
Uses of Broker in org.apache.openjpa.kernel
Classes in org.apache.openjpa.kernel that implement Broker Modifier and Type Class Description class
BrokerImpl
ConcreteBroker
.class
DelegatingBroker
Delegating broker that can also perform exception translation for use in facades.class
FinalizingBrokerImpl
Subtype ofBrokerImpl
that automatically closes itself during finalization.Methods in org.apache.openjpa.kernel that return Broker Modifier and Type Method Description protected Broker
AbstractBrokerFactory. findBroker(java.lang.String user, java.lang.String pass, boolean managed)
Find a pooled broker, or return null if none.protected Broker
AbstractBrokerFactory. findTransactionalBroker(java.lang.String user, java.lang.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.Broker
BrokerImpl. getBroker()
Broker
DelegatingBroker. getBroker()
Broker
DelegatingExtent. getBroker()
Broker
DelegatingQuery. getBroker()
Broker
Extent. getBroker()
The broker that generated the extent.Broker
ExtentImpl. getBroker()
Broker
OpenJPASavepoint. getBroker()
Return the Broker associated with this savepoint.Broker
Query. getBroker()
The broker that generated this query.Broker
QueryImpl. getBroker()
Broker
StoreContext. getBroker()
Return the broker for this context, if possible.Broker
DelegatingBroker. getDelegate()
Return the direct delegate.Broker
DelegatingBroker. getInnermostDelegate()
Return the native delegate.Broker
AbstractBrokerFactory. newBroker()
Broker
AbstractBrokerFactory. newBroker(boolean managed, int connRetainMode)
Broker
AbstractBrokerFactory. newBroker(java.lang.String user, java.lang.String pass)
Broker
AbstractBrokerFactory. newBroker(java.lang.String user, java.lang.String pass, boolean managed, int connRetainMode)
Broker
AbstractBrokerFactory. newBroker(java.lang.String user, java.lang.String pass, boolean managed, int connRetainMode, boolean findExisting)
Broker
AbstractBrokerFactory. newBroker(java.lang.String user, java.lang.String pass, boolean managed, int connRetainMode, boolean findExisting, java.lang.String cf1Name, java.lang.String cf2Name)
Broker
BrokerFactory. newBroker()
Return a broker with default settings.Broker
BrokerFactory. newBroker(java.lang.String user, java.lang.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.Broker
BrokerFactory. newBroker(java.lang.String user, java.lang.String pass, boolean managed, int connRetainMode, boolean findExisting, java.lang.String cfName, java.lang.String cf2Name)
Return a new broker using the supplied credentials transaction management mode connectionRetainMode connectionFactoriesBroker
DelegatingBrokerFactory. newBroker()
Broker
DelegatingBrokerFactory. newBroker(java.lang.String user, java.lang.String pass, boolean managed, int connRetainMode, boolean findExisting)
Broker
DelegatingBrokerFactory. newBroker(java.lang.String user, java.lang.String pass, boolean managed, int connRetainMode, boolean findExisting, java.lang.String cfName, java.lang.String cf2Name)
Methods in org.apache.openjpa.kernel that return types with arguments of type Broker Modifier and Type Method Description java.util.Collection<Broker>
AbstractBrokerFactory. getOpenBrokers()
Returns a set of all the open brokers associated with this factory.Methods in org.apache.openjpa.kernel with parameters of type Broker Modifier and Type Method Description protected 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)
OpenJPASavepoint
InMemorySavepointManager. newSavepoint(java.lang.String name, Broker broker)
OpenJPASavepoint
SavepointManager. newSavepoint(java.lang.String name, Broker broker)
Return a new savepoint for the given name, which may be null.java.util.Map
PreparedQuery. reparametrize(java.util.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 Broker Constructor Description DelegatingBroker(Broker broker)
Constructor; supply delegate.DelegatingBroker(Broker broker, RuntimeExceptionTranslator trans)
Constructor; supply delegate and exception translator.OpenJPASavepoint(Broker broker, java.lang.String name, boolean copy)
Constructor.QueryImpl(Broker broker, java.lang.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 Broker Modifier and Type Method Description Broker
EntityManagerImpl. 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.useJPAFacadeHelper
instead.Methods in org.apache.openjpa.persistence with parameters of type Broker Modifier and Type Method Description protected 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 Broker Constructor Description EntityManagerImpl(EntityManagerFactoryImpl factory, Broker broker)
Constructor; supply factory and delegate. -
Uses of Broker in org.apache.openjpa.slice
Subinterfaces of Broker in org.apache.openjpa.slice Modifier and Type Interface Description interface
DistributedBroker
Extension to Broker to allow access tovirtual data store
.Classes in org.apache.openjpa.slice that implement Broker Modifier and Type Class Description class
DistributedBrokerImpl
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 Broker Constructor Description DistributedQueryImpl(Broker broker, java.lang.String language, StoreQuery storeQuery)
-
Uses of Broker in org.apache.openjpa.util.proxy
Methods in org.apache.openjpa.util.proxy that return Broker Modifier and Type Method Description Broker
DelayedArrayListProxy. getBroker()
Broker
DelayedHashSetProxy. getBroker()
Broker
DelayedLinkedHashSetProxy. getBroker()
Broker
DelayedLinkedListProxy. getBroker()
Broker
DelayedPriorityQueueProxy. getBroker()
Broker
DelayedProxy. getBroker()
Get the broker that is used to service this proxy.Broker
DelayedTreeSetProxy. getBroker()
Broker
DelayedVectorProxy. getBroker()
-