Package | Description |
---|---|
org.apache.openjpa.audit |
OpenJPA Audit Facility
Audit facility for OpenJPA.
|
org.apache.openjpa.event |
OpenJPA Events
This package provides some interfaces and useful implementations
for OpenJPA's event notification framework.
|
org.apache.openjpa.jdbc.kernel |
OpenJPA-JDBC Runtime Kernel
Runtime services for the JDBC OpenJPA implementation.
|
org.apache.openjpa.kernel |
OpenJPA Runtime Kernel
This package provides a common OpenJPA runtime environment that can be
adapted for use with various data store mechanisms.
|
org.apache.openjpa.persistence |
OpenJPA JPA
This package provides an JPA facade to OpenJPA.
|
org.apache.openjpa.slice |
Extended OpenJPA Interfaces for distributed databases.
|
org.apache.openjpa.util |
OpenJPA Utilities
This package provides utilities to facilitate the handling of second
class objects and OpenJPA object ids.
|
Modifier and Type | Method and Description |
---|---|
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.
|
void |
AuditLogger.audit(Broker broker,
Collection<Audited> newObjects,
Collection<Audited> updates,
Collection<Audited> deletes) |
Constructor and Description |
---|
TransactionEvent(Broker broker,
int type,
Collection objs,
Collection addClss,
Collection updateClss,
Collection deleteClss)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
OpenJPASavepoint |
AbstractJDBCSavepointManager.newSavepoint(String name,
Broker broker) |
Map<Integer,Object> |
PreparedQueryImpl.reparametrize(Map user,
Broker broker)
Merge the given user parameters with its own parameter.
|
Constructor and Description |
---|
ConnectionSavepoint(Broker broker,
String name,
boolean copy) |
Modifier and Type | Class and Description |
---|---|
class |
BrokerImpl
Concrete
Broker . |
class |
DelegatingBroker
Delegating broker that can also perform exception translation
for use in facades.
|
class |
FinalizingBrokerImpl
Subtype of
BrokerImpl that automatically closes itself during
finalization. |
Modifier and Type | Method and Description |
---|---|
protected 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.
|
Broker |
Extent.getBroker()
The broker that generated the extent.
|
Broker |
QueryImpl.getBroker() |
Broker |
OpenJPASavepoint.getBroker()
Return the Broker associated with this savepoint.
|
Broker |
StoreContext.getBroker()
Return the broker for this context, if possible.
|
Broker |
Query.getBroker()
The broker that generated this query.
|
Broker |
ExtentImpl.getBroker() |
Broker |
BrokerImpl.getBroker() |
Broker |
DelegatingQuery.getBroker() |
Broker |
DelegatingBroker.getBroker() |
Broker |
DelegatingExtent.getBroker() |
protected Broker |
AuditManager.getBroker(PersistenceCapable pc)
Extracts the broker from the given persistence capable instance.
|
Broker |
DelegatingBroker.getDelegate()
Return the direct delegate.
|
Broker |
DelegatingBroker.getInnermostDelegate()
Return the native delegate.
|
Broker |
BrokerFactory.newBroker()
Return a broker with default settings.
|
Broker |
DelegatingBrokerFactory.newBroker() |
Broker |
AbstractBrokerFactory.newBroker() |
Broker |
AbstractBrokerFactory.newBroker(boolean managed,
int connRetainMode) |
Broker |
AbstractBrokerFactory.newBroker(String user,
String pass) |
Broker |
AbstractBrokerFactory.newBroker(String user,
String pass,
boolean managed,
int connRetainMode) |
Broker |
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.
|
Broker |
DelegatingBrokerFactory.newBroker(String user,
String pass,
boolean managed,
int connRetainMode,
boolean findExisting) |
Broker |
AbstractBrokerFactory.newBroker(String user,
String pass,
boolean managed,
int connRetainMode,
boolean findExisting) |
Broker |
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
connectionFactories
|
Broker |
DelegatingBrokerFactory.newBroker(String user,
String pass,
boolean managed,
int connRetainMode,
boolean findExisting,
String cfName,
String cf2Name) |
Broker |
AbstractBrokerFactory.newBroker(String user,
String pass,
boolean managed,
int connRetainMode,
boolean findExisting,
String cf1Name,
String cf2Name) |
Modifier and Type | Method and Description |
---|---|
Collection<Broker> |
AbstractBrokerFactory.getOpenBrokers()
Returns a set of all the open brokers associated with this factory.
|
Modifier and Type | Method and 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(String name,
Broker broker) |
OpenJPASavepoint |
SavepointManager.newSavepoint(String name,
Broker broker)
Return a new savepoint for the given name, which may be null.
|
Map |
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.
|
Constructor and Description |
---|
DelegatingBroker(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.
|
Modifier and Type | Method and Description |
---|---|
Broker |
EntityManagerImpl.getBroker()
Broker delegate.
|
static Broker |
JPAFacadeHelper.toBroker(javax.persistence.EntityManager em)
Return the underlying broker for the given entity manager facade.
|
static Broker |
OpenJPAPersistence.toBroker(javax.persistence.EntityManager em)
Deprecated.
use
JPAFacadeHelper instead. This method pierces
the published-API boundary, as does the JPAFacadeHelper utilization. |
Modifier and Type | Method and 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.
use
JPAFacadeHelper instead. This method pierces
the published-API boundary, as does the JPAFacadeHelper utilization. |
Constructor and Description |
---|
EntityManagerImpl(EntityManagerFactoryImpl factory,
Broker broker)
Constructor; supply factory and delegate.
|
Modifier and Type | Interface and Description |
---|---|
interface |
DistributedBroker
Extension to Broker to allow access to
virtual data store . |
Modifier and Type | Class and Description |
---|---|
class |
DistributedBrokerImpl
A specialized Broker to associate slice identifiers with the StateManagers as
they are persisted in a cascade.
|
Constructor and Description |
---|
DistributedQueryImpl(Broker broker,
String language,
StoreQuery storeQuery) |
Modifier and Type | Method and Description |
---|---|
Broker |
DelayedTreeSetProxy.getBroker() |
Broker |
DelayedLinkedListProxy.getBroker() |
Broker |
DelayedPriorityQueueProxy.getBroker() |
Broker |
DelayedVectorProxy.getBroker() |
Broker |
DelayedArrayListProxy.getBroker() |
Broker |
DelayedHashSetProxy.getBroker() |
Broker |
DelayedLinkedHashSetProxy.getBroker() |
Broker |
DelayedProxy.getBroker()
Get the broker that is used to service this proxy.
|
Copyright © 2006–2019 Apache Software Foundation. All rights reserved.