Package | Description |
---|---|
org.apache.openjpa.enhance |
OpenJPA Enhancer
This package provides a bytecode enhancer used to
post-process classes for use in a OpenJPA runtime.
|
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.util |
OpenJPA Utilities
This package provides utilities to facilitate the handling of second
class objects and OpenJPA object ids.
|
Modifier and Type | Class and Description |
---|---|
class |
ReflectingPersistenceCapable
Implementation of the
PersistenceCapable interface that can handle
the persistence-capable contract for instances that were not enhanced
before class load time. |
Modifier and Type | Method and Description |
---|---|
static PersistenceCapable |
PCRegistry.newInstance(Class<?> pcClass,
StateManager sm,
boolean clear)
Create a new instance of the class and assign its state manager.
|
static PersistenceCapable |
PCRegistry.newInstance(Class<?> pcClass,
StateManager sm,
Object oid,
boolean clear)
Create a new instance of the class and assign its state manager and oid.
|
PersistenceCapable |
ReflectingPersistenceCapable.pcNewInstance(StateManager sm,
boolean clear) |
PersistenceCapable |
PersistenceCapable.pcNewInstance(StateManager sm,
boolean clear) |
PersistenceCapable |
ReflectingPersistenceCapable.pcNewInstance(StateManager sm,
Object oid,
boolean clear) |
PersistenceCapable |
PersistenceCapable.pcNewInstance(StateManager sm,
Object obj,
boolean clear) |
Modifier and Type | Method and Description |
---|---|
void |
StateManager.providedBooleanField(PersistenceCapable pc,
int idx,
boolean cur)
Provide state callback.
|
void |
StateManager.providedByteField(PersistenceCapable pc,
int idx,
byte cur)
Provide state callback.
|
void |
StateManager.providedCharField(PersistenceCapable pc,
int idx,
char cur)
Provide state callback.
|
void |
StateManager.providedDoubleField(PersistenceCapable pc,
int idx,
double cur)
Provide state callback.
|
void |
StateManager.providedFloatField(PersistenceCapable pc,
int idx,
float cur)
Provide state callback.
|
void |
StateManager.providedIntField(PersistenceCapable pc,
int idx,
int cur)
Provide state callback.
|
void |
StateManager.providedLongField(PersistenceCapable pc,
int idx,
long cur)
Provide state callback.
|
void |
StateManager.providedObjectField(PersistenceCapable pc,
int idx,
Object cur)
Provide state callback.
|
void |
StateManager.providedShortField(PersistenceCapable pc,
int idx,
short cur)
Provide state callback.
|
void |
StateManager.providedStringField(PersistenceCapable pc,
int idx,
String cur)
Provide state callback.
|
static void |
PCRegistry.register(Class<?> pcClass,
String[] fieldNames,
Class<?>[] fieldTypes,
byte[] fieldFlags,
Class<?> sup,
String alias,
PersistenceCapable pc)
Register metadata by class.
|
boolean |
StateManager.replaceBooleanField(PersistenceCapable pc,
int idx)
Replace state callback.
|
byte |
StateManager.replaceByteField(PersistenceCapable pc,
int idx)
Replace state callback.
|
char |
StateManager.replaceCharField(PersistenceCapable pc,
int idx)
Replace state callback.
|
double |
StateManager.replaceDoubleField(PersistenceCapable pc,
int idx)
Replace state callback.
|
float |
StateManager.replaceFloatField(PersistenceCapable pc,
int idx)
Replace state callback.
|
int |
StateManager.replaceIntField(PersistenceCapable pc,
int idx)
Replace state callback.
|
long |
StateManager.replaceLongField(PersistenceCapable pc,
int idx)
Replace state callback.
|
Object |
StateManager.replaceObjectField(PersistenceCapable pc,
int idx)
Replace state callback.
|
short |
StateManager.replaceShortField(PersistenceCapable pc,
int idx)
Replace state callback.
|
String |
StateManager.replaceStringField(PersistenceCapable pc,
int idx)
Replace state callback.
|
void |
StateManager.settingBooleanField(PersistenceCapable pc,
int idx,
boolean cur,
boolean next,
int set)
Setting state callback.
|
void |
StateManager.settingByteField(PersistenceCapable pc,
int idx,
byte cur,
byte next,
int set)
Setting state callback.
|
void |
StateManager.settingCharField(PersistenceCapable pc,
int idx,
char cur,
char next,
int set)
Setting state callback.
|
void |
StateManager.settingDoubleField(PersistenceCapable pc,
int idx,
double cur,
double next,
int set)
Setting state callback.
|
void |
StateManager.settingFloatField(PersistenceCapable pc,
int idx,
float cur,
float next,
int set)
Setting state callback.
|
void |
StateManager.settingIntField(PersistenceCapable pc,
int idx,
int cur,
int next,
int set)
Setting state callback.
|
void |
StateManager.settingLongField(PersistenceCapable pc,
int idx,
long cur,
long next,
int set)
Setting state callback.
|
void |
StateManager.settingObjectField(PersistenceCapable pc,
int idx,
Object cur,
Object next,
int set)
Setting state callback.
|
void |
StateManager.settingShortField(PersistenceCapable pc,
int idx,
short cur,
short next,
int set)
Setting state callback.
|
void |
StateManager.settingStringField(PersistenceCapable pc,
int idx,
String cur,
String next,
int set)
Setting state callback.
|
Modifier and Type | Method and Description |
---|---|
protected PersistenceCapable |
BrokerImpl.assertPersistenceCapable(Object obj)
Return the given instance as a
PersistenceCapable . |
PersistenceCapable |
StateManagerImpl.getPersistenceCapable() |
PersistenceCapable |
OpenJPAStateManager.getPersistenceCapable()
Return the
PersistenceCapable instance that provides access to
the instance managed by this state manager. |
PersistenceCapable |
ObjectIdStateManager.getPersistenceCapable() |
PersistenceCapable |
DetachedValueStateManager.getPersistenceCapable() |
PersistenceCapable |
DetachedStateManager.getPersistenceCapable() |
protected PersistenceCapable |
AuditManager.getPersistenceCapable(LifecycleEvent evt)
Extracts the persistence capable instance from the source of the given event.
|
PersistenceCapable |
SaveFieldManager.getState()
Return the persistence capable copy holding the rollback field values.
|
Modifier and Type | Method and Description |
---|---|
Object |
DetachedStateManager.attach(AttachManager manager,
Object toAttach,
ClassMetaData meta,
PersistenceCapable into,
OpenJPAStateManager owner,
ValueMetaData ownerMeta,
boolean explicit) |
protected Broker |
AuditManager.getBroker(PersistenceCapable pc)
Extracts the broker from the given persistence capable instance.
|
protected void |
StateManagerImpl.initialize(PersistenceCapable pc,
PCState state)
Initialize with the given instance and state.
|
void |
StateManagerImpl.providedBooleanField(PersistenceCapable pc,
int field,
boolean curVal) |
void |
ObjectIdStateManager.providedBooleanField(PersistenceCapable pc,
int idx,
boolean cur) |
void |
DetachedValueStateManager.providedBooleanField(PersistenceCapable pc,
int idx,
boolean cur) |
void |
DetachedStateManager.providedBooleanField(PersistenceCapable pc,
int idx,
boolean cur) |
void |
StateManagerImpl.providedByteField(PersistenceCapable pc,
int field,
byte curVal) |
void |
ObjectIdStateManager.providedByteField(PersistenceCapable pc,
int idx,
byte cur) |
void |
DetachedValueStateManager.providedByteField(PersistenceCapable pc,
int idx,
byte cur) |
void |
DetachedStateManager.providedByteField(PersistenceCapable pc,
int idx,
byte cur) |
void |
StateManagerImpl.providedCharField(PersistenceCapable pc,
int field,
char curVal) |
void |
ObjectIdStateManager.providedCharField(PersistenceCapable pc,
int idx,
char cur) |
void |
DetachedValueStateManager.providedCharField(PersistenceCapable pc,
int idx,
char cur) |
void |
DetachedStateManager.providedCharField(PersistenceCapable pc,
int idx,
char cur) |
void |
StateManagerImpl.providedDoubleField(PersistenceCapable pc,
int field,
double curVal) |
void |
ObjectIdStateManager.providedDoubleField(PersistenceCapable pc,
int idx,
double cur) |
void |
DetachedValueStateManager.providedDoubleField(PersistenceCapable pc,
int idx,
double cur) |
void |
DetachedStateManager.providedDoubleField(PersistenceCapable pc,
int idx,
double cur) |
void |
StateManagerImpl.providedFloatField(PersistenceCapable pc,
int field,
float curVal) |
void |
ObjectIdStateManager.providedFloatField(PersistenceCapable pc,
int idx,
float cur) |
void |
DetachedValueStateManager.providedFloatField(PersistenceCapable pc,
int idx,
float cur) |
void |
DetachedStateManager.providedFloatField(PersistenceCapable pc,
int idx,
float cur) |
void |
StateManagerImpl.providedIntField(PersistenceCapable pc,
int field,
int curVal) |
void |
ObjectIdStateManager.providedIntField(PersistenceCapable pc,
int idx,
int cur) |
void |
DetachedValueStateManager.providedIntField(PersistenceCapable pc,
int idx,
int cur) |
void |
DetachedStateManager.providedIntField(PersistenceCapable pc,
int idx,
int cur) |
void |
StateManagerImpl.providedLongField(PersistenceCapable pc,
int field,
long curVal) |
void |
ObjectIdStateManager.providedLongField(PersistenceCapable pc,
int idx,
long cur) |
void |
DetachedValueStateManager.providedLongField(PersistenceCapable pc,
int idx,
long cur) |
void |
DetachedStateManager.providedLongField(PersistenceCapable pc,
int idx,
long cur) |
void |
StateManagerImpl.providedObjectField(PersistenceCapable pc,
int field,
Object curVal) |
void |
ObjectIdStateManager.providedObjectField(PersistenceCapable pc,
int idx,
Object cur) |
void |
DetachedValueStateManager.providedObjectField(PersistenceCapable pc,
int idx,
Object cur) |
void |
DetachedStateManager.providedObjectField(PersistenceCapable pc,
int idx,
Object cur) |
void |
StateManagerImpl.providedShortField(PersistenceCapable pc,
int field,
short curVal) |
void |
ObjectIdStateManager.providedShortField(PersistenceCapable pc,
int idx,
short cur) |
void |
DetachedValueStateManager.providedShortField(PersistenceCapable pc,
int idx,
short cur) |
void |
DetachedStateManager.providedShortField(PersistenceCapable pc,
int idx,
short cur) |
void |
StateManagerImpl.providedStringField(PersistenceCapable pc,
int field,
String curVal) |
void |
ObjectIdStateManager.providedStringField(PersistenceCapable pc,
int idx,
String cur) |
void |
DetachedValueStateManager.providedStringField(PersistenceCapable pc,
int idx,
String cur) |
void |
DetachedStateManager.providedStringField(PersistenceCapable pc,
int idx,
String cur) |
boolean |
StateManagerImpl.replaceBooleanField(PersistenceCapable pc,
int field) |
boolean |
ObjectIdStateManager.replaceBooleanField(PersistenceCapable pc,
int idx) |
boolean |
DetachedValueStateManager.replaceBooleanField(PersistenceCapable pc,
int idx) |
boolean |
DetachedStateManager.replaceBooleanField(PersistenceCapable pc,
int idx) |
byte |
StateManagerImpl.replaceByteField(PersistenceCapable pc,
int field) |
byte |
ObjectIdStateManager.replaceByteField(PersistenceCapable pc,
int idx) |
byte |
DetachedValueStateManager.replaceByteField(PersistenceCapable pc,
int idx) |
byte |
DetachedStateManager.replaceByteField(PersistenceCapable pc,
int idx) |
char |
StateManagerImpl.replaceCharField(PersistenceCapable pc,
int field) |
char |
ObjectIdStateManager.replaceCharField(PersistenceCapable pc,
int idx) |
char |
DetachedValueStateManager.replaceCharField(PersistenceCapable pc,
int idx) |
char |
DetachedStateManager.replaceCharField(PersistenceCapable pc,
int idx) |
double |
StateManagerImpl.replaceDoubleField(PersistenceCapable pc,
int field) |
double |
ObjectIdStateManager.replaceDoubleField(PersistenceCapable pc,
int idx) |
double |
DetachedValueStateManager.replaceDoubleField(PersistenceCapable pc,
int idx) |
double |
DetachedStateManager.replaceDoubleField(PersistenceCapable pc,
int idx) |
float |
StateManagerImpl.replaceFloatField(PersistenceCapable pc,
int field) |
float |
ObjectIdStateManager.replaceFloatField(PersistenceCapable pc,
int idx) |
float |
DetachedValueStateManager.replaceFloatField(PersistenceCapable pc,
int idx) |
float |
DetachedStateManager.replaceFloatField(PersistenceCapable pc,
int idx) |
int |
StateManagerImpl.replaceIntField(PersistenceCapable pc,
int field) |
int |
ObjectIdStateManager.replaceIntField(PersistenceCapable pc,
int idx) |
int |
DetachedValueStateManager.replaceIntField(PersistenceCapable pc,
int idx) |
int |
DetachedStateManager.replaceIntField(PersistenceCapable pc,
int idx) |
long |
StateManagerImpl.replaceLongField(PersistenceCapable pc,
int field) |
long |
ObjectIdStateManager.replaceLongField(PersistenceCapable pc,
int idx) |
long |
DetachedValueStateManager.replaceLongField(PersistenceCapable pc,
int idx) |
long |
DetachedStateManager.replaceLongField(PersistenceCapable pc,
int idx) |
Object |
StateManagerImpl.replaceObjectField(PersistenceCapable pc,
int field) |
Object |
ObjectIdStateManager.replaceObjectField(PersistenceCapable pc,
int idx) |
Object |
DetachedValueStateManager.replaceObjectField(PersistenceCapable pc,
int idx) |
Object |
DetachedStateManager.replaceObjectField(PersistenceCapable pc,
int idx) |
short |
StateManagerImpl.replaceShortField(PersistenceCapable pc,
int field) |
short |
ObjectIdStateManager.replaceShortField(PersistenceCapable pc,
int idx) |
short |
DetachedValueStateManager.replaceShortField(PersistenceCapable pc,
int idx) |
short |
DetachedStateManager.replaceShortField(PersistenceCapable pc,
int idx) |
String |
StateManagerImpl.replaceStringField(PersistenceCapable pc,
int field) |
String |
ObjectIdStateManager.replaceStringField(PersistenceCapable pc,
int idx) |
String |
DetachedValueStateManager.replaceStringField(PersistenceCapable pc,
int idx) |
String |
DetachedStateManager.replaceStringField(PersistenceCapable pc,
int idx) |
void |
StateManagerImpl.setPc(PersistenceCapable pc) |
void |
StateManagerImpl.settingBooleanField(PersistenceCapable pc,
int field,
boolean curVal,
boolean newVal,
int set) |
void |
ObjectIdStateManager.settingBooleanField(PersistenceCapable pc,
int idx,
boolean cur,
boolean next,
int set) |
void |
DetachedValueStateManager.settingBooleanField(PersistenceCapable pc,
int idx,
boolean cur,
boolean next,
int set) |
void |
DetachedStateManager.settingBooleanField(PersistenceCapable pc,
int idx,
boolean cur,
boolean next,
int set) |
void |
StateManagerImpl.settingByteField(PersistenceCapable pc,
int field,
byte curVal,
byte newVal,
int set) |
void |
ObjectIdStateManager.settingByteField(PersistenceCapable pc,
int idx,
byte cur,
byte next,
int set) |
void |
DetachedValueStateManager.settingByteField(PersistenceCapable pc,
int idx,
byte cur,
byte next,
int set) |
void |
DetachedStateManager.settingByteField(PersistenceCapable pc,
int idx,
byte cur,
byte next,
int set) |
void |
StateManagerImpl.settingCharField(PersistenceCapable pc,
int field,
char curVal,
char newVal,
int set) |
void |
ObjectIdStateManager.settingCharField(PersistenceCapable pc,
int idx,
char cur,
char next,
int set) |
void |
DetachedValueStateManager.settingCharField(PersistenceCapable pc,
int idx,
char cur,
char next,
int set) |
void |
DetachedStateManager.settingCharField(PersistenceCapable pc,
int idx,
char cur,
char next,
int set) |
void |
StateManagerImpl.settingDoubleField(PersistenceCapable pc,
int field,
double curVal,
double newVal,
int set) |
void |
ObjectIdStateManager.settingDoubleField(PersistenceCapable pc,
int idx,
double cur,
double next,
int set) |
void |
DetachedValueStateManager.settingDoubleField(PersistenceCapable pc,
int idx,
double cur,
double next,
int set) |
void |
DetachedStateManager.settingDoubleField(PersistenceCapable pc,
int idx,
double cur,
double next,
int set) |
void |
StateManagerImpl.settingFloatField(PersistenceCapable pc,
int field,
float curVal,
float newVal,
int set) |
void |
ObjectIdStateManager.settingFloatField(PersistenceCapable pc,
int idx,
float cur,
float next,
int set) |
void |
DetachedValueStateManager.settingFloatField(PersistenceCapable pc,
int idx,
float cur,
float next,
int set) |
void |
DetachedStateManager.settingFloatField(PersistenceCapable pc,
int idx,
float cur,
float next,
int set) |
void |
StateManagerImpl.settingIntField(PersistenceCapable pc,
int field,
int curVal,
int newVal,
int set) |
void |
ObjectIdStateManager.settingIntField(PersistenceCapable pc,
int idx,
int cur,
int next,
int set) |
void |
DetachedValueStateManager.settingIntField(PersistenceCapable pc,
int idx,
int cur,
int next,
int set) |
void |
DetachedStateManager.settingIntField(PersistenceCapable pc,
int idx,
int cur,
int next,
int set) |
void |
StateManagerImpl.settingLongField(PersistenceCapable pc,
int field,
long curVal,
long newVal,
int set) |
void |
ObjectIdStateManager.settingLongField(PersistenceCapable pc,
int idx,
long cur,
long next,
int set) |
void |
DetachedValueStateManager.settingLongField(PersistenceCapable pc,
int idx,
long cur,
long next,
int set) |
void |
DetachedStateManager.settingLongField(PersistenceCapable pc,
int idx,
long cur,
long next,
int set) |
void |
StateManagerImpl.settingObjectField(PersistenceCapable pc,
int field,
Object curVal,
Object newVal,
int set) |
void |
ObjectIdStateManager.settingObjectField(PersistenceCapable pc,
int idx,
Object cur,
Object next,
int set) |
void |
DetachedValueStateManager.settingObjectField(PersistenceCapable pc,
int idx,
Object cur,
Object next,
int set) |
void |
DetachedStateManager.settingObjectField(PersistenceCapable pc,
int idx,
Object cur,
Object next,
int set) |
void |
StateManagerImpl.settingShortField(PersistenceCapable pc,
int field,
short curVal,
short newVal,
int set) |
void |
ObjectIdStateManager.settingShortField(PersistenceCapable pc,
int idx,
short cur,
short next,
int set) |
void |
DetachedValueStateManager.settingShortField(PersistenceCapable pc,
int idx,
short cur,
short next,
int set) |
void |
DetachedStateManager.settingShortField(PersistenceCapable pc,
int idx,
short cur,
short next,
int set) |
void |
StateManagerImpl.settingStringField(PersistenceCapable pc,
int field,
String curVal,
String newVal,
int set) |
void |
ObjectIdStateManager.settingStringField(PersistenceCapable pc,
int idx,
String cur,
String next,
int set) |
void |
DetachedValueStateManager.settingStringField(PersistenceCapable pc,
int idx,
String cur,
String next,
int set) |
void |
DetachedStateManager.settingStringField(PersistenceCapable pc,
int idx,
String cur,
String next,
int set) |
Constructor and Description |
---|
DetachedStateManager(PersistenceCapable pc,
OpenJPAStateManager sm,
BitSet load,
boolean access,
boolean multithreaded)
Constructor.
|
DetachedValueStateManager(PersistenceCapable pc,
ClassMetaData meta,
StoreContext ctx) |
Modifier and Type | Method and Description |
---|---|
static PersistenceCapable |
ImplHelper.toPersistenceCapable(Object o,
Object ctx) |
Modifier and Type | Method and Description |
---|---|
static Object |
ApplicationIds.create(PersistenceCapable pc,
ClassMetaData meta)
Generate an application id based on the current primary key field state
of the given instance.
|
Copyright © 2006–2018 Apache Software Foundation. All rights reserved.