Package | Description |
---|---|
org.apache.openjpa.jdbc.kernel |
OpenJPA-JDBC Runtime Kernel
|
org.apache.openjpa.jdbc.meta |
OpenJPA-JDBC ORM Metadata
|
org.apache.openjpa.jdbc.meta.strats |
OpenJPA-JDBC ORM Strategies
|
org.apache.openjpa.persistence.jdbc |
OpenJPA JPA-JDBC
|
Modifier and Type | Method and Description |
---|---|
Object |
JDBCStoreManager.find(Object oid,
ValueMapping vm,
JDBCFetchConfiguration fetch)
Find the object with the given oid.
|
Object |
JDBCStore.find(Object oid,
ValueMapping vm,
JDBCFetchConfiguration fetch)
Find the object with the given oid.
|
Modifier and Type | Class and Description |
---|---|
class |
FieldMapping
Specialization of metadata for relational databases.
|
class |
ValueMappingImpl
Standalone
ValueMapping implementation. |
Modifier and Type | Method and Description |
---|---|
ValueMapping |
FieldMapping.getElementMapping()
Convenience method to perform cast from
FieldMetaData.getElement() |
ValueMapping |
ClassMapping.getEmbeddingMapping()
Convenience method to perform cast from
ClassMetaData.getEmbeddingMetaData() |
ValueMapping |
FieldMapping.getKeyMapping()
Convenience method to perform cast from
FieldMetaData.getKey() |
ValueMapping |
FieldMapping.getValueMapping()
Convenience method to perform cast from
FieldMetaData.getValue() |
Modifier and Type | Method and Description |
---|---|
void |
ReverseMappingTool.addConstraints(ValueMapping vm)
Add existing unique constraints and indexes to the given value.
|
void |
ValueMappingImpl.copyMappingInfo(ValueMapping vm) |
void |
ValueMapping.copyMappingInfo(ValueMapping vm)
Copy mapping info from the given instance to this one.
|
void |
FieldMapping.copyMappingInfo(ValueMapping vm) |
protected ValueHandler |
MappingRepository.defaultHandler(ValueMapping val)
Determine the default handler to use for the given value.
|
protected ValueHandler |
MappingRepository.defaultHandler(ValueMapping val,
boolean adapting)
Determine the default handler to use for the given value.
|
Column[] |
ValueMappingInfo.getColumns(ValueMapping val,
DBIdentifier name,
Column[] tmplates,
Table table,
boolean adapt) |
Column[] |
ValueMappingInfo.getColumns(ValueMapping val,
String name,
Column[] tmplates,
Table table,
boolean adapt)
Deprecated.
|
ForeignKey |
NoneMappingDefaults.getForeignKey(ValueMapping vm,
DBIdentifier name,
Table local,
Table foreign,
boolean inverse) |
ForeignKey |
MappingDefaultsImpl.getForeignKey(ValueMapping vm,
DBIdentifier name,
Table local,
Table foreign,
boolean inverse) |
ForeignKey |
MappingDefaults.getForeignKey(ValueMapping vm,
DBIdentifier name,
Table local,
Table foreign,
boolean inverse)
Return a default foreign key for the join from this value to its
related type, or null for a logical foreign key only.
|
ForeignKey |
NoneMappingDefaults.getForeignKey(ValueMapping vm,
String name,
Table local,
Table foreign,
boolean inverse)
Deprecated.
|
ForeignKey |
MappingDefaultsImpl.getForeignKey(ValueMapping vm,
String name,
Table local,
Table foreign,
boolean inverse)
Deprecated.
|
ForeignKey |
MappingDefaults.getForeignKey(ValueMapping vm,
String name,
Table local,
Table foreign,
boolean inverse)
Deprecated.
|
Index |
ValueMappingInfo.getIndex(ValueMapping val,
DBIdentifier name,
boolean adapt) |
Index |
NoneMappingDefaults.getIndex(ValueMapping vm,
DBIdentifier name,
Table table,
Column[] cols) |
Index |
MappingDefaultsImpl.getIndex(ValueMapping vm,
DBIdentifier name,
Table table,
Column[] cols) |
Index |
MappingDefaults.getIndex(ValueMapping vm,
DBIdentifier name,
Table table,
Column[] cols)
Return a default index for the value, or null if the value columns
should not be indexed by default.
|
Index |
ValueMappingInfo.getIndex(ValueMapping val,
String name,
boolean adapt)
Deprecated.
|
Index |
NoneMappingDefaults.getIndex(ValueMapping vm,
String name,
Table table,
Column[] cols) |
Index |
MappingDefaultsImpl.getIndex(ValueMapping vm,
String name,
Table table,
Column[] cols)
Deprecated.
|
Index |
MappingDefaults.getIndex(ValueMapping vm,
String name,
Table table,
Column[] cols)
Deprecated.
|
ForeignKey |
ValueMappingInfo.getInverseTypeJoin(ValueMapping val,
DBIdentifier name,
boolean adapt) |
ForeignKey |
ValueMappingInfo.getInverseTypeJoin(ValueMapping val,
String name,
boolean adapt)
Deprecated.
|
Column |
ValueMappingInfo.getNullIndicatorColumn(ValueMapping val,
DBIdentifier name,
Table table,
boolean adapt) |
Column |
ValueMappingInfo.getNullIndicatorColumn(ValueMapping val,
String name,
Table table,
boolean adapt)
Deprecated.
|
Object |
ValueHandler.getResultArgument(ValueMapping vm)
Return the argument to pass to the result set when loading data
via
Result.getObject(java.lang.Object, int, java.lang.Object) , or null if none. |
Object |
NoneMappingDefaults.getStrategy(ValueMapping vm,
Class<?> type,
boolean adapt) |
Object |
MappingDefaultsImpl.getStrategy(ValueMapping vm,
Class<?> type,
boolean adapt) |
Object |
MappingDefaults.getStrategy(ValueMapping vm,
Class<?> type,
boolean adapt)
Custom handler or strategy for the given field, or null if none
has been registered.
|
Table |
ValueMappingInfo.getTable(ValueMapping val) |
ForeignKey |
ValueMappingInfo.getTypeJoin(ValueMapping val,
DBIdentifier name,
boolean inversable,
boolean adapt) |
ForeignKey |
ValueMappingInfo.getTypeJoin(ValueMapping val,
String name,
boolean inversable,
boolean adapt)
Deprecated.
|
Unique |
ValueMappingInfo.getUnique(ValueMapping val,
DBIdentifier name,
boolean adapt) |
Unique |
NoneMappingDefaults.getUnique(ValueMapping vm,
DBIdentifier name,
Table table,
Column[] cols) |
Unique |
MappingDefaultsImpl.getUnique(ValueMapping vm,
DBIdentifier name,
Table table,
Column[] cols) |
Unique |
MappingDefaults.getUnique(ValueMapping vm,
DBIdentifier name,
Table table,
Column[] cols)
Return a default constraint for the value, or null if the value columns
should not be constrained by default.
|
Unique |
ValueMappingInfo.getUnique(ValueMapping val,
String name,
boolean adapt)
Deprecated.
|
Unique |
NoneMappingDefaults.getUnique(ValueMapping vm,
String name,
Table table,
Column[] cols) |
Unique |
MappingDefaultsImpl.getUnique(ValueMapping vm,
String name,
Table table,
Column[] cols)
Deprecated.
|
Unique |
MappingDefaults.getUnique(ValueMapping vm,
String name,
Table table,
Column[] cols)
Deprecated.
|
boolean |
ValueHandler.isVersionable(ValueMapping vm)
Return whether the values managed by this handler can be used in
state image versioning.
|
Column[] |
ValueHandler.map(ValueMapping vm,
String name,
ColumnIO io,
boolean adapt)
Map the given value and return all mapped columns, or simply return an
array of unmapped default columns.
|
protected ValueHandler |
MappingRepository.namedHandler(ValueMapping val)
Instantiate the given value's named handler, or return null if no
named handler.
|
protected ValueMappingInfo |
MappingRepository.newMappingInfo(ValueMapping vm)
Create raw mapping info for the given instance.
|
boolean |
ValueHandler.objectValueRequiresLoad(ValueMapping vm)
Return whether this handler potentially must load extra data to extract
the object value from its datastore representation.
|
void |
NoneMappingDefaults.populateColumns(ValueMapping vm,
DBIdentifier name,
Table table,
Column[] cols) |
void |
MappingDefaultsImpl.populateColumns(ValueMapping vm,
DBIdentifier name,
Table table,
Column[] cols) |
void |
MappingDefaults.populateColumns(ValueMapping vm,
DBIdentifier name,
Table table,
Column[] cols)
Fill in default information for the given value columns.
|
void |
NoneMappingDefaults.populateColumns(ValueMapping vm,
String name,
Table table,
Column[] cols)
Deprecated.
|
void |
MappingDefaultsImpl.populateColumns(ValueMapping vm,
String name,
Table table,
Column[] cols) |
void |
MappingDefaults.populateColumns(ValueMapping vm,
String name,
Table table,
Column[] cols)
Deprecated.
|
void |
NoneMappingDefaults.populateForeignKeyColumn(ValueMapping vm,
DBIdentifier name,
Table local,
Table foreign,
Column col,
Object target,
boolean inverse,
int pos,
int cols) |
void |
MappingDefaultsImpl.populateForeignKeyColumn(ValueMapping vm,
DBIdentifier name,
Table local,
Table foreign,
Column col,
Object target,
boolean inverse,
int pos,
int cols) |
void |
MappingDefaults.populateForeignKeyColumn(ValueMapping vm,
DBIdentifier name,
Table local,
Table foreign,
Column col,
Object target,
boolean inverse,
int pos,
int cols)
Fill in default information for the given column used to join a value
to its related type.
|
void |
NoneMappingDefaults.populateForeignKeyColumn(ValueMapping vm,
String name,
Table local,
Table foreign,
Column col,
Object target,
boolean inverse,
int pos,
int cols)
Deprecated.
|
void |
MappingDefaultsImpl.populateForeignKeyColumn(ValueMapping vm,
String name,
Table local,
Table foreign,
Column col,
Object target,
boolean inverse,
int pos,
int cols)
Deprecated.
|
void |
MappingDefaults.populateForeignKeyColumn(ValueMapping vm,
String name,
Table local,
Table foreign,
Column col,
Object target,
boolean inverse,
int pos,
int cols)
Deprecated.
|
boolean |
NoneMappingDefaults.populateNullIndicatorColumns(ValueMapping vm,
DBIdentifier name,
Table table,
Column[] cols) |
boolean |
MappingDefaultsImpl.populateNullIndicatorColumns(ValueMapping vm,
DBIdentifier name,
Table table,
Column[] cols) |
boolean |
MappingDefaults.populateNullIndicatorColumns(ValueMapping vm,
DBIdentifier name,
Table table,
Column[] cols)
Fill in default information for the given null indicator columns.
|
boolean |
NoneMappingDefaults.populateNullIndicatorColumns(ValueMapping vm,
String name,
Table table,
Column[] cols)
Deprecated.
|
boolean |
MappingDefaultsImpl.populateNullIndicatorColumns(ValueMapping vm,
String name,
Table table,
Column[] cols)
Deprecated.
|
boolean |
MappingDefaults.populateNullIndicatorColumns(ValueMapping vm,
String name,
Table table,
Column[] cols)
Deprecated.
|
void |
ValueMappingInfo.syncWith(ValueMapping val)
Synchronize internal information with the mapping data for the given
value.
|
Object |
ValueHandler.toDataStoreValue(ValueMapping vm,
Object val,
JDBCStore store)
Translate the given value to its datastore equivalent.
|
Object |
ValueHandler.toObjectValue(ValueMapping vm,
Object val)
Translate the given datastore value into its Java equivalent.
|
Object |
ValueHandler.toObjectValue(ValueMapping vm,
Object val,
OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch)
Translate the given datastore value into its Java equivalent.
|
Modifier and Type | Method and Description |
---|---|
static void |
HandlerStrategies.assertJoinable(ValueMapping vm)
Throw the proper exception if the given handler-controlled value
represents an unjoinable relation.
|
Object |
ObjectIdValueHandler.getResultArgument(ValueMapping vm) |
Object |
ElementEmbedValueHandler.getResultArgument(ValueMapping vm) |
Object |
AbstractValueHandler.getResultArgument(ValueMapping vm) |
protected boolean |
MapTableFieldStrategy.isTypeUnjoinedSubclass(ValueMapping mapped) |
boolean |
UntypedPCValueHandler.isVersionable(ValueMapping vm) |
boolean |
ImmutableValueHandler.isVersionable(ValueMapping vm) |
boolean |
AbstractValueHandler.isVersionable(ValueMapping vm) |
static Object |
HandlerStrategies.loadDataStore(ValueMapping vm,
Result res,
Joins joins,
Column[] cols)
Load the datastore value from the given result.
|
static Object |
HandlerStrategies.loadObject(ValueMapping vm,
OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch,
Result res,
Joins joins,
Column[] cols,
boolean objectValueRequiresLoad)
Load the Object value from the given result.
|
Column[] |
XMLValueHandler.map(ValueMapping vm,
DBIdentifier name,
ColumnIO io,
boolean adapt) |
Column[] |
UntypedPCValueHandler.map(ValueMapping vm,
DBIdentifier name,
ColumnIO io,
boolean adapt) |
Column[] |
ObjectIdValueHandler.map(ValueMapping vm,
DBIdentifier name,
ColumnIO io,
boolean adapt) |
Column[] |
ImmutableValueHandler.map(ValueMapping vm,
DBIdentifier name,
ColumnIO io,
boolean adapt) |
Column[] |
EnumValueHandler.map(ValueMapping vm,
DBIdentifier name,
ColumnIO io,
boolean adapt) |
Column[] |
ElementEmbedValueHandler.map(ValueMapping vm,
DBIdentifier name,
ColumnIO io,
boolean adapt) |
Column[] |
ClobValueHandler.map(ValueMapping vm,
DBIdentifier name,
ColumnIO io,
boolean adapt) |
Column[] |
CharArrayValueHandler.map(ValueMapping vm,
DBIdentifier name,
ColumnIO io,
boolean adapt) |
Column[] |
CharArrayStreamValueHandler.map(ValueMapping vm,
DBIdentifier name,
ColumnIO io,
boolean adapt) |
Column[] |
ByteArrayValueHandler.map(ValueMapping vm,
DBIdentifier name,
ColumnIO io,
boolean adapt) |
Column[] |
BlobValueHandler.map(ValueMapping vm,
DBIdentifier name,
ColumnIO io,
boolean adapt) |
protected void |
EmbedValueHandler.map(ValueMapping vm,
DBIdentifier name,
ColumnIO io,
boolean adapt,
List cols,
List args)
Maps embedded value and gathers columns and arguments into given lists.
|
Column[] |
XMLValueHandler.map(ValueMapping vm,
String name,
ColumnIO io,
boolean adapt)
Deprecated.
|
Column[] |
UntypedPCValueHandler.map(ValueMapping vm,
String name,
ColumnIO io,
boolean adapt)
Deprecated.
|
Column[] |
ObjectIdValueHandler.map(ValueMapping vm,
String name,
ColumnIO io,
boolean adapt)
Deprecated.
|
Column[] |
ImmutableValueHandler.map(ValueMapping vm,
String name,
ColumnIO io,
boolean adapt)
Deprecated.
|
static Column[] |
HandlerStrategies.map(ValueMapping vm,
String name,
ColumnIO io,
boolean adapt)
Map the given value.
|
Column[] |
EnumValueHandler.map(ValueMapping vm,
String name,
ColumnIO io,
boolean adapt)
Deprecated.
|
Column[] |
ElementEmbedValueHandler.map(ValueMapping vm,
String name,
ColumnIO io,
boolean adapt)
Deprecated.
|
Column[] |
ClobValueHandler.map(ValueMapping vm,
String name,
ColumnIO io,
boolean adapt)
Deprecated.
|
Column[] |
CharArrayValueHandler.map(ValueMapping vm,
String name,
ColumnIO io,
boolean adapt)
Deprecated.
|
Column[] |
CharArrayStreamValueHandler.map(ValueMapping vm,
String name,
ColumnIO io,
boolean adapt)
Deprecated.
|
Column[] |
ByteArrayValueHandler.map(ValueMapping vm,
String name,
ColumnIO io,
boolean adapt)
Deprecated.
|
Column[] |
BlobValueHandler.map(ValueMapping vm,
String name,
ColumnIO io,
boolean adapt)
Deprecated.
|
protected void |
EmbedValueHandler.map(ValueMapping vm,
String name,
ColumnIO io,
boolean adapt,
List cols,
List args)
Deprecated.
|
static void |
RelationStrategies.mapRelationToUnmappedPC(ValueMapping vm,
DBIdentifier name,
boolean adapt) |
static void |
RelationStrategies.mapRelationToUnmappedPC(ValueMapping vm,
String name,
boolean adapt)
Map a logical foreign key to an unmapped base class relation.
|
boolean |
UntypedPCValueHandler.objectValueRequiresLoad(ValueMapping vm) |
boolean |
ElementEmbedValueHandler.objectValueRequiresLoad(ValueMapping vm) |
boolean |
AbstractValueHandler.objectValueRequiresLoad(ValueMapping vm) |
static boolean |
HandlerStrategies.set(ValueMapping vm,
Object val,
JDBCStore store,
Row row,
Column[] cols,
ColumnIO io,
boolean nullNone)
Set the given value into the given row.
|
protected Object |
EmbedValueHandler.toDataStoreValue(OpenJPAStateManager em,
ValueMapping vm,
JDBCStore store,
Column[] cols,
Object rval,
int idx)
Helper to convert an object value to its datastore equivalent.
|
static Object |
HandlerStrategies.toDataStoreValue(ValueMapping vm,
Object val,
Column[] cols,
JDBCStore store)
Convert the given object to its datastore value(s).
|
Object |
XMLValueHandler.toDataStoreValue(ValueMapping vm,
Object val,
JDBCStore store) |
Object |
UntypedPCValueHandler.toDataStoreValue(ValueMapping vm,
Object val,
JDBCStore store) |
static Object |
RelationStrategies.toDataStoreValue(ValueMapping vm,
Object val,
JDBCStore store)
Return the given object as its foreign key values.
|
Object |
ObjectIdValueHandler.toDataStoreValue(ValueMapping vm,
Object val,
JDBCStore store) |
Object |
ImmutableValueHandler.toDataStoreValue(ValueMapping vm,
Object val,
JDBCStore store) |
Object |
EnumValueHandler.toDataStoreValue(ValueMapping vm,
Object val,
JDBCStore store) |
Object |
ElementEmbedValueHandler.toDataStoreValue(ValueMapping vm,
Object val,
JDBCStore store) |
Object |
CharArrayValueHandler.toDataStoreValue(ValueMapping vm,
Object val,
JDBCStore store) |
Object |
CharArrayStreamValueHandler.toDataStoreValue(ValueMapping vm,
Object val,
JDBCStore store) |
Object |
ByteArrayValueHandler.toDataStoreValue(ValueMapping vm,
Object val,
JDBCStore store) |
Object |
AbstractValueHandler.toDataStoreValue(ValueMapping vm,
Object val,
JDBCStore store) |
protected int |
EmbedValueHandler.toDataStoreValue1(OpenJPAStateManager em,
ValueMapping vm,
JDBCStore store,
Column[] cols,
List rvals,
int idx) |
protected void |
EmbedValueHandler.toObjectValue(OpenJPAStateManager em,
ValueMapping vm,
Object val,
JDBCStore store,
JDBCFetchConfiguration fetch,
Column[] cols,
int idx)
Helper to convert a datastore value to its object equivalent.
|
Object |
XMLValueHandler.toObjectValue(ValueMapping vm,
Object val) |
Object |
ObjectIdValueHandler.toObjectValue(ValueMapping vm,
Object val) |
Object |
EnumValueHandler.toObjectValue(ValueMapping vm,
Object val) |
Object |
CharArrayValueHandler.toObjectValue(ValueMapping vm,
Object val) |
Object |
CharArrayStreamValueHandler.toObjectValue(ValueMapping vm,
Object val) |
Object |
ByteArrayValueHandler.toObjectValue(ValueMapping vm,
Object val) |
Object |
AbstractValueHandler.toObjectValue(ValueMapping vm,
Object val) |
Object |
UntypedPCValueHandler.toObjectValue(ValueMapping vm,
Object val,
OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch) |
Object |
ElementEmbedValueHandler.toObjectValue(ValueMapping vm,
Object val,
OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch) |
Object |
AbstractValueHandler.toObjectValue(ValueMapping vm,
Object val,
OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch) |
protected int |
EmbedValueHandler.toObjectValue1(OpenJPAStateManager em,
ValueMapping vm,
Object val,
JDBCStore store,
JDBCFetchConfiguration fetch,
Column[] cols,
int idx) |
static MetaDataException |
RelationStrategies.uninversable(ValueMapping vm)
Return an exception indicating that the relation is invalid
because it has is based on an inverse foreign key and has independent
subclasses.
|
static MetaDataException |
RelationStrategies.unjoinable(ValueMapping vm)
Return an exception indicating that we cannot join to the given relation.
|
static MetaDataException |
RelationStrategies.unloadable(ValueMapping vm)
Return an exception indicating that the relation cannot be loaded
because it has independent subclasses and does not represent a full oid.
|
static void |
HandlerStrategies.where(ValueMapping vm,
Object val,
JDBCStore store,
Row row,
Column[] cols)
Add where conditions to the given row.
|
Modifier and Type | Method and Description |
---|---|
static ClassMapping |
AnnotationPersistenceMappingParser.getEmbeddedMapping(ValueMapping val) |
static ClassMapping |
AnnotationPersistenceMappingParser.getEmbeddedMapping(ValueMapping val,
boolean createNew) |
void |
PersistenceMappingDefaults.populateForeignKeyColumn(ValueMapping vm,
DBIdentifier sName,
Table local,
Table foreign,
Column col,
Object target,
boolean inverse,
int pos,
int cols) |
void |
PersistenceMappingDefaults.populateForeignKeyColumn(ValueMapping vm,
String name,
Table local,
Table foreign,
Column col,
Object target,
boolean inverse,
int pos,
int cols) |
Copyright © 2006–2017 Apache Software Foundation. All rights reserved.