Uses of Interface
org.apache.openjpa.jdbc.meta.ValueMapping
Package
Description
OpenJPA-JDBC Runtime Kernel
OpenJPA-JDBC ORM Metadata
OpenJPA-JDBC ORM Strategies
OpenJPA JPA-JDBC
-
Uses of ValueMapping in org.apache.openjpa.jdbc.kernel
Modifier and TypeMethodDescriptionJDBCStore.find
(Object oid, ValueMapping vm, JDBCFetchConfiguration fetch) Find the object with the given oid.JDBCStoreManager.find
(Object oid, ValueMapping vm, JDBCFetchConfiguration fetch) Find the object with the given oid. -
Uses of ValueMapping in org.apache.openjpa.jdbc.meta
Modifier and TypeClassDescriptionclass
Specialization of metadata for relational databases.class
StandaloneValueMapping
implementation.Modifier and TypeMethodDescriptionFieldMapping.getElementMapping()
Convenience method to perform cast fromFieldMetaData.getElement()
ClassMapping.getEmbeddingMapping()
Convenience method to perform cast fromClassMetaData.getEmbeddingMetaData()
FieldMapping.getKeyMapping()
Convenience method to perform cast fromFieldMetaData.getKey()
FieldMapping.getValueMapping()
Convenience method to perform cast fromFieldMetaData.getValue()
Modifier and TypeMethodDescriptionvoid
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, String name, Column[] tmplates, Table table, boolean adapt) Deprecated.Column[]
ValueMappingInfo.getColumns
(ValueMapping val, DBIdentifier name, Column[] tmplates, Table table, boolean adapt) MappingDefaults.getForeignKey
(ValueMapping vm, String name, Table local, Table foreign, boolean inverse) Deprecated.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.MappingDefaultsImpl.getForeignKey
(ValueMapping vm, String name, Table local, Table foreign, boolean inverse) Deprecated.MappingDefaultsImpl.getForeignKey
(ValueMapping vm, DBIdentifier name, Table local, Table foreign, boolean inverse) NoneMappingDefaults.getForeignKey
(ValueMapping vm, String name, Table local, Table foreign, boolean inverse) Deprecated.NoneMappingDefaults.getForeignKey
(ValueMapping vm, DBIdentifier name, Table local, Table foreign, boolean inverse) MappingDefaults.getIndex
(ValueMapping vm, String name, Table table, Column[] cols) Deprecated.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.MappingDefaultsImpl.getIndex
(ValueMapping vm, String name, Table table, Column[] cols) Deprecated.MappingDefaultsImpl.getIndex
(ValueMapping vm, DBIdentifier name, Table table, Column[] cols) NoneMappingDefaults.getIndex
(ValueMapping vm, String name, Table table, Column[] cols) NoneMappingDefaults.getIndex
(ValueMapping vm, DBIdentifier name, Table table, Column[] cols) ValueMappingInfo.getIndex
(ValueMapping val, String name, boolean adapt) Deprecated.ValueMappingInfo.getIndex
(ValueMapping val, DBIdentifier name, boolean adapt) ValueMappingInfo.getInverseTypeJoin
(ValueMapping val, String name, boolean adapt) Deprecated.ValueMappingInfo.getInverseTypeJoin
(ValueMapping val, DBIdentifier name, boolean adapt) ValueMappingInfo.getNullIndicatorColumn
(ValueMapping val, String name, Table table, boolean adapt) Deprecated.ValueMappingInfo.getNullIndicatorColumn
(ValueMapping val, DBIdentifier name, Table table, boolean adapt) 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.MappingDefaults.getStrategy
(ValueMapping vm, Class<?> type, boolean adapt) Custom handler or strategy for the given field, or null if none has been registered.MappingDefaultsImpl.getStrategy
(ValueMapping vm, Class<?> type, boolean adapt) NoneMappingDefaults.getStrategy
(ValueMapping vm, Class<?> type, boolean adapt) ValueMappingInfo.getTable
(ValueMapping val) ValueMappingInfo.getTypeJoin
(ValueMapping val, String name, boolean inversable, boolean adapt) Deprecated.ValueMappingInfo.getTypeJoin
(ValueMapping val, DBIdentifier name, boolean inversable, boolean adapt) MappingDefaults.getUnique
(ValueMapping vm, String name, Table table, Column[] cols) Deprecated.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.MappingDefaultsImpl.getUnique
(ValueMapping vm, String name, Table table, Column[] cols) Deprecated.MappingDefaultsImpl.getUnique
(ValueMapping vm, DBIdentifier name, Table table, Column[] cols) NoneMappingDefaults.getUnique
(ValueMapping vm, String name, Table table, Column[] cols) NoneMappingDefaults.getUnique
(ValueMapping vm, DBIdentifier name, Table table, Column[] cols) ValueMappingInfo.getUnique
(ValueMapping val, String name, boolean adapt) Deprecated.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, 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, 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, String name, Table table, Column[] cols) void
MappingDefaultsImpl.populateColumns
(ValueMapping vm, DBIdentifier name, Table table, Column[] cols) void
NoneMappingDefaults.populateColumns
(ValueMapping vm, String name, Table table, Column[] cols) Deprecated.void
NoneMappingDefaults.populateColumns
(ValueMapping vm, DBIdentifier name, Table table, Column[] cols) void
MappingDefaults.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, 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
MappingDefaultsImpl.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, DBIdentifier name, Table local, Table foreign, Column col, Object target, boolean inverse, int pos, int cols) void
NoneMappingDefaults.populateForeignKeyColumn
(ValueMapping vm, String name, Table local, Table foreign, Column col, Object target, boolean inverse, int pos, int cols) Deprecated.void
NoneMappingDefaults.populateForeignKeyColumn
(ValueMapping vm, DBIdentifier name, Table local, Table foreign, Column col, Object target, boolean inverse, int pos, int cols) boolean
MappingDefaults.populateNullIndicatorColumns
(ValueMapping vm, 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, String name, Table table, Column[] cols) Deprecated.boolean
MappingDefaultsImpl.populateNullIndicatorColumns
(ValueMapping vm, DBIdentifier name, Table table, Column[] cols) boolean
NoneMappingDefaults.populateNullIndicatorColumns
(ValueMapping vm, 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.ValueHandler.toDataStoreValue
(ValueMapping vm, Object val, JDBCStore store) Translate the given value to its datastore equivalent.ValueHandler.toObjectValue
(ValueMapping vm, Object val) Translate the given datastore value into its Java equivalent.ValueHandler.toObjectValue
(ValueMapping vm, 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
Modifier and TypeMethodDescriptionstatic void
HandlerStrategies.assertJoinable
(ValueMapping vm) Throw the proper exception if the given handler-controlled value represents an unjoinable relation.AbstractValueHandler.getResultArgument
(ValueMapping vm) ElementEmbedValueHandler.getResultArgument
(ValueMapping vm) 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 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[]
BlobValueHandler.map
(ValueMapping vm, String name, ColumnIO io, boolean adapt) Column[]
BlobValueHandler.map
(ValueMapping vm, DBIdentifier name, ColumnIO io, boolean adapt) Column[]
ByteArrayValueHandler.map
(ValueMapping vm, String name, ColumnIO io, boolean adapt) Deprecated.Column[]
ByteArrayValueHandler.map
(ValueMapping vm, DBIdentifier name, ColumnIO io, boolean adapt) Column[]
CharArrayStreamValueHandler.map
(ValueMapping vm, String name, ColumnIO io, boolean adapt) Deprecated.Column[]
CharArrayStreamValueHandler.map
(ValueMapping vm, DBIdentifier name, ColumnIO io, boolean adapt) Column[]
CharArrayValueHandler.map
(ValueMapping vm, String name, ColumnIO io, boolean adapt) Deprecated.Column[]
CharArrayValueHandler.map
(ValueMapping vm, DBIdentifier name, ColumnIO io, boolean adapt) Column[]
ClobValueHandler.map
(ValueMapping vm, String name, ColumnIO io, boolean adapt) Deprecated.Column[]
ClobValueHandler.map
(ValueMapping vm, DBIdentifier name, ColumnIO io, boolean adapt) Column[]
ElementEmbedValueHandler.map
(ValueMapping vm, String name, ColumnIO io, boolean adapt) Deprecated.Column[]
ElementEmbedValueHandler.map
(ValueMapping vm, DBIdentifier name, ColumnIO io, boolean adapt) protected void
EmbedValueHandler.map
(ValueMapping vm, String name, ColumnIO io, boolean adapt, List cols, List args) Deprecated.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[]
EnumValueHandler.map
(ValueMapping vm, String name, ColumnIO io, boolean adapt) Deprecated.Column[]
EnumValueHandler.map
(ValueMapping vm, DBIdentifier name, ColumnIO io, boolean adapt) static Column[]
HandlerStrategies.map
(ValueMapping vm, String name, ColumnIO io, boolean adapt) Map the given value.Column[]
ImmutableValueHandler.map
(ValueMapping vm, String name, ColumnIO io, boolean adapt) Deprecated.Column[]
ImmutableValueHandler.map
(ValueMapping vm, DBIdentifier name, ColumnIO io, boolean adapt) Column[]
ObjectIdValueHandler.map
(ValueMapping vm, String name, ColumnIO io, boolean adapt) Deprecated.Column[]
ObjectIdValueHandler.map
(ValueMapping vm, DBIdentifier name, ColumnIO io, boolean adapt) Column[]
UntypedPCValueHandler.map
(ValueMapping vm, String name, ColumnIO io, boolean adapt) Deprecated.Column[]
UntypedPCValueHandler.map
(ValueMapping vm, DBIdentifier name, ColumnIO io, boolean adapt) Column[]
XMLValueHandler.map
(ValueMapping vm, String name, ColumnIO io, boolean adapt) Deprecated.Column[]
XMLValueHandler.map
(ValueMapping vm, DBIdentifier name, ColumnIO io, boolean adapt) static void
RelationStrategies.mapRelationToUnmappedPC
(ValueMapping vm, 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, Object val, JDBCStore store, Row row, Column[] cols, ColumnIO io, boolean nullNone) Set the given value into the given row.AbstractValueHandler.toDataStoreValue
(ValueMapping vm, Object val, JDBCStore store) ByteArrayValueHandler.toDataStoreValue
(ValueMapping vm, Object val, JDBCStore store) CharArrayStreamValueHandler.toDataStoreValue
(ValueMapping vm, Object val, JDBCStore store) CharArrayValueHandler.toDataStoreValue
(ValueMapping vm, Object val, JDBCStore store) ElementEmbedValueHandler.toDataStoreValue
(ValueMapping vm, Object val, JDBCStore store) 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.EnumValueHandler.toDataStoreValue
(ValueMapping vm, Object val, JDBCStore store) static Object
HandlerStrategies.toDataStoreValue
(ValueMapping vm, Object val, Column[] cols, JDBCStore store) Convert the given object to its datastore value(s).ImmutableValueHandler.toDataStoreValue
(ValueMapping vm, Object val, JDBCStore store) ObjectIdValueHandler.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.UntypedPCValueHandler.toDataStoreValue
(ValueMapping vm, Object val, JDBCStore store) XMLValueHandler.toDataStoreValue
(ValueMapping vm, Object val, JDBCStore store) protected int
EmbedValueHandler.toDataStoreValue1
(OpenJPAStateManager em, ValueMapping vm, JDBCStore store, Column[] cols, List rvals, int idx) AbstractValueHandler.toObjectValue
(ValueMapping vm, Object val) AbstractValueHandler.toObjectValue
(ValueMapping vm, Object val, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch) ByteArrayValueHandler.toObjectValue
(ValueMapping vm, Object val) CharArrayStreamValueHandler.toObjectValue
(ValueMapping vm, Object val) CharArrayValueHandler.toObjectValue
(ValueMapping vm, Object val) ElementEmbedValueHandler.toObjectValue
(ValueMapping vm, Object val, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch) 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.EnumValueHandler.toObjectValue
(ValueMapping vm, Object val) ObjectIdValueHandler.toObjectValue
(ValueMapping vm, Object val) UntypedPCValueHandler.toObjectValue
(ValueMapping vm, Object val, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch) XMLValueHandler.toObjectValue
(ValueMapping vm, Object val) 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
Add where conditions to the given row. -
Uses of ValueMapping in org.apache.openjpa.persistence.jdbc
Modifier and TypeMethodDescriptionstatic ClassMapping
AnnotationPersistenceMappingParser.getEmbeddedMapping
(ValueMapping val) static ClassMapping
AnnotationPersistenceMappingParser.getEmbeddedMapping
(ValueMapping val, boolean createNew) void
PersistenceMappingDefaults.populateForeignKeyColumn
(ValueMapping vm, String name, Table local, Table foreign, Column col, Object target, boolean inverse, int pos, int cols) void
PersistenceMappingDefaults.populateForeignKeyColumn
(ValueMapping vm, DBIdentifier sName, Table local, Table foreign, Column col, Object target, boolean inverse, int pos, int cols)