Uses of Interface
org.apache.openjpa.jdbc.meta.ValueMapping
-
Packages that use ValueMapping Package Description org.apache.openjpa.jdbc.kernel OpenJPA-JDBC Runtime Kernelorg.apache.openjpa.jdbc.meta OpenJPA-JDBC ORM Metadataorg.apache.openjpa.jdbc.meta.strats OpenJPA-JDBC ORM Strategiesorg.apache.openjpa.persistence.jdbc OpenJPA JPA-JDBC -
-
Uses of ValueMapping in org.apache.openjpa.jdbc.kernel
Methods in org.apache.openjpa.jdbc.kernel with parameters of type ValueMapping Modifier and Type Method Description java.lang.Object
JDBCStore. find(java.lang.Object oid, ValueMapping vm, JDBCFetchConfiguration fetch)
Find the object with the given oid.java.lang.Object
JDBCStoreManager. find(java.lang.Object oid, ValueMapping vm, JDBCFetchConfiguration fetch)
Find the object with the given oid. -
Uses of ValueMapping in org.apache.openjpa.jdbc.meta
Classes in org.apache.openjpa.jdbc.meta that implement ValueMapping Modifier and Type Class Description class
FieldMapping
Specialization of metadata for relational databases.class
ValueMappingImpl
StandaloneValueMapping
implementation.Methods in org.apache.openjpa.jdbc.meta that return ValueMapping Modifier and Type Method Description ValueMapping
FieldMapping. getElementMapping()
Convenience method to perform cast fromFieldMetaData.getElement()
ValueMapping
ClassMapping. getEmbeddingMapping()
Convenience method to perform cast fromClassMetaData.getEmbeddingMetaData()
ValueMapping
FieldMapping. getKeyMapping()
Convenience method to perform cast fromFieldMetaData.getKey()
ValueMapping
FieldMapping. getValueMapping()
Convenience method to perform cast fromFieldMetaData.getValue()
Methods in org.apache.openjpa.jdbc.meta with parameters of type ValueMapping Modifier and Type Method Description void
ReverseMappingTool. addConstraints(ValueMapping vm)
Add existing unique constraints and indexes to the given value.void
FieldMapping. copyMappingInfo(ValueMapping vm)
void
ValueMapping. copyMappingInfo(ValueMapping vm)
Copy mapping info from the given instance to this one.void
ValueMappingImpl. 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, java.lang.String name, Column[] tmplates, Table table, boolean adapt)
Deprecated.Column[]
ValueMappingInfo. getColumns(ValueMapping val, DBIdentifier name, Column[] tmplates, Table table, boolean adapt)
ForeignKey
MappingDefaults. getForeignKey(ValueMapping vm, java.lang.String name, Table local, Table foreign, boolean inverse)
Deprecated.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
MappingDefaultsImpl. getForeignKey(ValueMapping vm, java.lang.String name, Table local, Table foreign, boolean inverse)
Deprecated.ForeignKey
MappingDefaultsImpl. getForeignKey(ValueMapping vm, DBIdentifier name, Table local, Table foreign, boolean inverse)
ForeignKey
NoneMappingDefaults. getForeignKey(ValueMapping vm, java.lang.String name, Table local, Table foreign, boolean inverse)
Deprecated.ForeignKey
NoneMappingDefaults. getForeignKey(ValueMapping vm, DBIdentifier name, Table local, Table foreign, boolean inverse)
Index
MappingDefaults. getIndex(ValueMapping vm, java.lang.String name, Table table, Column[] cols)
Deprecated.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
MappingDefaultsImpl. getIndex(ValueMapping vm, java.lang.String name, Table table, Column[] cols)
Deprecated.Index
MappingDefaultsImpl. getIndex(ValueMapping vm, DBIdentifier name, Table table, Column[] cols)
Index
NoneMappingDefaults. getIndex(ValueMapping vm, java.lang.String name, Table table, Column[] cols)
Index
NoneMappingDefaults. getIndex(ValueMapping vm, DBIdentifier name, Table table, Column[] cols)
Index
ValueMappingInfo. getIndex(ValueMapping val, java.lang.String name, boolean adapt)
Deprecated.Index
ValueMappingInfo. getIndex(ValueMapping val, DBIdentifier name, boolean adapt)
ForeignKey
ValueMappingInfo. getInverseTypeJoin(ValueMapping val, java.lang.String name, boolean adapt)
Deprecated.ForeignKey
ValueMappingInfo. getInverseTypeJoin(ValueMapping val, DBIdentifier name, boolean adapt)
Column
ValueMappingInfo. getNullIndicatorColumn(ValueMapping val, java.lang.String name, Table table, boolean adapt)
Deprecated.Column
ValueMappingInfo. getNullIndicatorColumn(ValueMapping val, DBIdentifier name, Table table, boolean adapt)
java.lang.Object
ValueHandler. getResultArgument(ValueMapping vm)
Return the argument to pass to the result set when loading data viaResult.getObject(java.lang.Object, int, java.lang.Object)
, or null if none.java.lang.Object
MappingDefaults. getStrategy(ValueMapping vm, java.lang.Class<?> type, boolean adapt)
Custom handler or strategy for the given field, or null if none has been registered.java.lang.Object
MappingDefaultsImpl. getStrategy(ValueMapping vm, java.lang.Class<?> type, boolean adapt)
java.lang.Object
NoneMappingDefaults. getStrategy(ValueMapping vm, java.lang.Class<?> type, boolean adapt)
Table
ValueMappingInfo. getTable(ValueMapping val)
ForeignKey
ValueMappingInfo. getTypeJoin(ValueMapping val, java.lang.String name, boolean inversable, boolean adapt)
Deprecated.ForeignKey
ValueMappingInfo. getTypeJoin(ValueMapping val, DBIdentifier name, boolean inversable, boolean adapt)
Unique
MappingDefaults. getUnique(ValueMapping vm, java.lang.String name, Table table, Column[] cols)
Deprecated.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
MappingDefaultsImpl. getUnique(ValueMapping vm, java.lang.String name, Table table, Column[] cols)
Deprecated.Unique
MappingDefaultsImpl. getUnique(ValueMapping vm, DBIdentifier name, Table table, Column[] cols)
Unique
NoneMappingDefaults. getUnique(ValueMapping vm, java.lang.String name, Table table, Column[] cols)
Unique
NoneMappingDefaults. getUnique(ValueMapping vm, DBIdentifier name, Table table, Column[] cols)
Unique
ValueMappingInfo. getUnique(ValueMapping val, java.lang.String name, boolean adapt)
Deprecated.Unique
ValueMappingInfo. getUnique(ValueMapping val, DBIdentifier name, boolean adapt)
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, java.lang.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
MappingDefaults. populateColumns(ValueMapping vm, java.lang.String name, Table table, Column[] cols)
Deprecated.void
MappingDefaults. populateColumns(ValueMapping vm, DBIdentifier name, Table table, Column[] cols)
Fill in default information for the given value columns.void
MappingDefaultsImpl. populateColumns(ValueMapping vm, java.lang.String name, Table table, Column[] cols)
void
MappingDefaultsImpl. populateColumns(ValueMapping vm, DBIdentifier name, Table table, Column[] cols)
void
NoneMappingDefaults. populateColumns(ValueMapping vm, java.lang.String name, Table table, Column[] cols)
Deprecated.void
NoneMappingDefaults. populateColumns(ValueMapping vm, DBIdentifier name, Table table, Column[] cols)
void
MappingDefaults. populateForeignKeyColumn(ValueMapping vm, java.lang.String name, Table local, Table foreign, Column col, java.lang.Object target, boolean inverse, int pos, int cols)
Deprecated.void
MappingDefaults. populateForeignKeyColumn(ValueMapping vm, DBIdentifier name, Table local, Table foreign, Column col, java.lang.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
MappingDefaultsImpl. populateForeignKeyColumn(ValueMapping vm, java.lang.String name, Table local, Table foreign, Column col, java.lang.Object target, boolean inverse, int pos, int cols)
Deprecated.void
MappingDefaultsImpl. populateForeignKeyColumn(ValueMapping vm, DBIdentifier name, Table local, Table foreign, Column col, java.lang.Object target, boolean inverse, int pos, int cols)
void
NoneMappingDefaults. populateForeignKeyColumn(ValueMapping vm, java.lang.String name, Table local, Table foreign, Column col, java.lang.Object target, boolean inverse, int pos, int cols)
Deprecated.void
NoneMappingDefaults. populateForeignKeyColumn(ValueMapping vm, DBIdentifier name, Table local, Table foreign, Column col, java.lang.Object target, boolean inverse, int pos, int cols)
boolean
MappingDefaults. populateNullIndicatorColumns(ValueMapping vm, java.lang.String name, Table table, Column[] cols)
Deprecated.boolean
MappingDefaults. populateNullIndicatorColumns(ValueMapping vm, DBIdentifier name, Table table, Column[] cols)
Fill in default information for the given null indicator columns.boolean
MappingDefaultsImpl. populateNullIndicatorColumns(ValueMapping vm, java.lang.String name, Table table, Column[] cols)
Deprecated.boolean
MappingDefaultsImpl. populateNullIndicatorColumns(ValueMapping vm, DBIdentifier name, Table table, Column[] cols)
boolean
NoneMappingDefaults. populateNullIndicatorColumns(ValueMapping vm, java.lang.String name, Table table, Column[] cols)
Deprecated.boolean
NoneMappingDefaults. populateNullIndicatorColumns(ValueMapping vm, DBIdentifier name, Table table, Column[] cols)
void
ValueMappingInfo. syncWith(ValueMapping val)
Synchronize internal information with the mapping data for the given value.java.lang.Object
ValueHandler. toDataStoreValue(ValueMapping vm, java.lang.Object val, JDBCStore store)
Translate the given value to its datastore equivalent.java.lang.Object
ValueHandler. toObjectValue(ValueMapping vm, java.lang.Object val)
Translate the given datastore value into its Java equivalent.java.lang.Object
ValueHandler. toObjectValue(ValueMapping vm, java.lang.Object val, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch)
Translate the given datastore value into its Java equivalent. -
Uses of ValueMapping in org.apache.openjpa.jdbc.meta.strats
Methods in org.apache.openjpa.jdbc.meta.strats with parameters of type ValueMapping Modifier and Type Method Description static void
HandlerStrategies. assertJoinable(ValueMapping vm)
Throw the proper exception if the given handler-controlled value represents an unjoinable relation.java.lang.Object
AbstractValueHandler. getResultArgument(ValueMapping vm)
java.lang.Object
ElementEmbedValueHandler. getResultArgument(ValueMapping vm)
java.lang.Object
ObjectIdValueHandler. getResultArgument(ValueMapping vm)
protected boolean
MapTableFieldStrategy. isTypeUnjoinedSubclass(ValueMapping mapped)
boolean
AbstractValueHandler. isVersionable(ValueMapping vm)
boolean
EnumValueHandler. isVersionable(ValueMapping vm)
boolean
ImmutableValueHandler. isVersionable(ValueMapping vm)
boolean
UntypedPCValueHandler. isVersionable(ValueMapping vm)
static java.lang.Object
HandlerStrategies. loadDataStore(ValueMapping vm, Result res, Joins joins, Column[] cols)
Load the datastore value from the given result.static java.lang.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[]
BlobValueHandler. map(ValueMapping vm, java.lang.String name, ColumnIO io, boolean adapt)
Column[]
BlobValueHandler. map(ValueMapping vm, DBIdentifier name, ColumnIO io, boolean adapt)
Column[]
ByteArrayValueHandler. map(ValueMapping vm, java.lang.String name, ColumnIO io, boolean adapt)
Deprecated.Column[]
ByteArrayValueHandler. map(ValueMapping vm, DBIdentifier name, ColumnIO io, boolean adapt)
Column[]
CharArrayStreamValueHandler. map(ValueMapping vm, java.lang.String name, ColumnIO io, boolean adapt)
Deprecated.Column[]
CharArrayStreamValueHandler. map(ValueMapping vm, DBIdentifier name, ColumnIO io, boolean adapt)
Column[]
CharArrayValueHandler. map(ValueMapping vm, java.lang.String name, ColumnIO io, boolean adapt)
Deprecated.Column[]
CharArrayValueHandler. map(ValueMapping vm, DBIdentifier name, ColumnIO io, boolean adapt)
Column[]
ClobValueHandler. map(ValueMapping vm, java.lang.String name, ColumnIO io, boolean adapt)
Deprecated.Column[]
ClobValueHandler. map(ValueMapping vm, DBIdentifier name, ColumnIO io, boolean adapt)
Column[]
ElementEmbedValueHandler. map(ValueMapping vm, java.lang.String name, ColumnIO io, boolean adapt)
Deprecated.Column[]
ElementEmbedValueHandler. map(ValueMapping vm, DBIdentifier name, ColumnIO io, boolean adapt)
protected void
EmbedValueHandler. map(ValueMapping vm, java.lang.String name, ColumnIO io, boolean adapt, java.util.List cols, java.util.List args)
Deprecated.protected void
EmbedValueHandler. map(ValueMapping vm, DBIdentifier name, ColumnIO io, boolean adapt, java.util.List cols, java.util.List args)
Maps embedded value and gathers columns and arguments into given lists.Column[]
EnumValueHandler. map(ValueMapping vm, java.lang.String name, ColumnIO io, boolean adapt)
Deprecated.Column[]
EnumValueHandler. map(ValueMapping vm, DBIdentifier name, ColumnIO io, boolean adapt)
static Column[]
HandlerStrategies. map(ValueMapping vm, java.lang.String name, ColumnIO io, boolean adapt)
Map the given value.Column[]
ImmutableValueHandler. map(ValueMapping vm, java.lang.String name, ColumnIO io, boolean adapt)
Deprecated.Column[]
ImmutableValueHandler. map(ValueMapping vm, DBIdentifier name, ColumnIO io, boolean adapt)
Column[]
ObjectIdValueHandler. map(ValueMapping vm, java.lang.String name, ColumnIO io, boolean adapt)
Deprecated.Column[]
ObjectIdValueHandler. map(ValueMapping vm, DBIdentifier name, ColumnIO io, boolean adapt)
Column[]
UntypedPCValueHandler. map(ValueMapping vm, java.lang.String name, ColumnIO io, boolean adapt)
Deprecated.Column[]
UntypedPCValueHandler. map(ValueMapping vm, DBIdentifier name, ColumnIO io, boolean adapt)
Column[]
XMLValueHandler. map(ValueMapping vm, java.lang.String name, ColumnIO io, boolean adapt)
Deprecated.Column[]
XMLValueHandler. map(ValueMapping vm, DBIdentifier name, ColumnIO io, boolean adapt)
static void
RelationStrategies. mapRelationToUnmappedPC(ValueMapping vm, java.lang.String name, boolean adapt)
Map a logical foreign key to an unmapped base class relation.static void
RelationStrategies. mapRelationToUnmappedPC(ValueMapping vm, DBIdentifier name, boolean adapt)
boolean
AbstractValueHandler. objectValueRequiresLoad(ValueMapping vm)
boolean
ElementEmbedValueHandler. objectValueRequiresLoad(ValueMapping vm)
boolean
UntypedPCValueHandler. objectValueRequiresLoad(ValueMapping vm)
static boolean
HandlerStrategies. set(ValueMapping vm, java.lang.Object val, JDBCStore store, Row row, Column[] cols, ColumnIO io, boolean nullNone)
Set the given value into the given row.java.lang.Object
AbstractValueHandler. toDataStoreValue(ValueMapping vm, java.lang.Object val, JDBCStore store)
java.lang.Object
ByteArrayValueHandler. toDataStoreValue(ValueMapping vm, java.lang.Object val, JDBCStore store)
java.lang.Object
CharArrayStreamValueHandler. toDataStoreValue(ValueMapping vm, java.lang.Object val, JDBCStore store)
java.lang.Object
CharArrayValueHandler. toDataStoreValue(ValueMapping vm, java.lang.Object val, JDBCStore store)
java.lang.Object
ElementEmbedValueHandler. toDataStoreValue(ValueMapping vm, java.lang.Object val, JDBCStore store)
protected java.lang.Object
EmbedValueHandler. toDataStoreValue(OpenJPAStateManager em, ValueMapping vm, JDBCStore store, Column[] cols, java.lang.Object rval, int idx)
Helper to convert an object value to its datastore equivalent.java.lang.Object
EnumValueHandler. toDataStoreValue(ValueMapping vm, java.lang.Object val, JDBCStore store)
static java.lang.Object
HandlerStrategies. toDataStoreValue(ValueMapping vm, java.lang.Object val, Column[] cols, JDBCStore store)
Convert the given object to its datastore value(s).java.lang.Object
ImmutableValueHandler. toDataStoreValue(ValueMapping vm, java.lang.Object val, JDBCStore store)
java.lang.Object
ObjectIdValueHandler. toDataStoreValue(ValueMapping vm, java.lang.Object val, JDBCStore store)
static java.lang.Object
RelationStrategies. toDataStoreValue(ValueMapping vm, java.lang.Object val, JDBCStore store)
Return the given object as its foreign key values.java.lang.Object
UntypedPCValueHandler. toDataStoreValue(ValueMapping vm, java.lang.Object val, JDBCStore store)
java.lang.Object
XMLValueHandler. toDataStoreValue(ValueMapping vm, java.lang.Object val, JDBCStore store)
protected int
EmbedValueHandler. toDataStoreValue1(OpenJPAStateManager em, ValueMapping vm, JDBCStore store, Column[] cols, java.util.List rvals, int idx)
java.lang.Object
AbstractValueHandler. toObjectValue(ValueMapping vm, java.lang.Object val)
java.lang.Object
AbstractValueHandler. toObjectValue(ValueMapping vm, java.lang.Object val, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch)
java.lang.Object
ByteArrayValueHandler. toObjectValue(ValueMapping vm, java.lang.Object val)
java.lang.Object
CharArrayStreamValueHandler. toObjectValue(ValueMapping vm, java.lang.Object val)
java.lang.Object
CharArrayValueHandler. toObjectValue(ValueMapping vm, java.lang.Object val)
java.lang.Object
ElementEmbedValueHandler. toObjectValue(ValueMapping vm, java.lang.Object val, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch)
protected void
EmbedValueHandler. toObjectValue(OpenJPAStateManager em, ValueMapping vm, java.lang.Object val, JDBCStore store, JDBCFetchConfiguration fetch, Column[] cols, int idx)
Helper to convert a datastore value to its object equivalent.java.lang.Object
EnumValueHandler. toObjectValue(ValueMapping vm, java.lang.Object val)
java.lang.Object
ObjectIdValueHandler. toObjectValue(ValueMapping vm, java.lang.Object val)
java.lang.Object
UntypedPCValueHandler. toObjectValue(ValueMapping vm, java.lang.Object val, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch)
java.lang.Object
XMLValueHandler. toObjectValue(ValueMapping vm, java.lang.Object val)
protected int
EmbedValueHandler. toObjectValue1(OpenJPAStateManager em, ValueMapping vm, java.lang.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, java.lang.Object val, JDBCStore store, Row row, Column[] cols)
Add where conditions to the given row. -
Uses of ValueMapping in org.apache.openjpa.persistence.jdbc
Methods in org.apache.openjpa.persistence.jdbc with parameters of type ValueMapping Modifier and Type Method Description static ClassMapping
AnnotationPersistenceMappingParser. getEmbeddedMapping(ValueMapping val)
static ClassMapping
AnnotationPersistenceMappingParser. getEmbeddedMapping(ValueMapping val, boolean createNew)
void
PersistenceMappingDefaults. populateForeignKeyColumn(ValueMapping vm, java.lang.String name, Table local, Table foreign, Column col, java.lang.Object target, boolean inverse, int pos, int cols)
void
PersistenceMappingDefaults. populateForeignKeyColumn(ValueMapping vm, DBIdentifier sName, Table local, Table foreign, Column col, java.lang.Object target, boolean inverse, int pos, int cols)
-