Package org.apache.openjpa.jdbc.meta
Class ValueMappingInfo
- java.lang.Object
 - 
- org.apache.openjpa.jdbc.meta.MappingInfo
 - 
- org.apache.openjpa.jdbc.meta.ValueMappingInfo
 
 
 
- 
- All Implemented Interfaces:
 Serializable
public class ValueMappingInfo extends MappingInfo
Information about the mapping from a field value to the schema, in raw form. The columns and tables used in mapping info will not be part of theSchemaGroupused at runtime. Rather, they will be structs with the relevant pieces of information filled in.- Author:
 - Abe White
 - See Also:
 - Serialized Form
 
 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from class org.apache.openjpa.jdbc.meta.MappingInfo
MappingInfo.ForeignKeyDefaults, MappingInfo.TableDefaults 
 - 
 
- 
Field Summary
- 
Fields inherited from class org.apache.openjpa.jdbc.meta.MappingInfo
JOIN_FORWARD, JOIN_INVERSE, JOIN_NONE 
 - 
 
- 
Constructor Summary
Constructors Constructor Description ValueMappingInfo() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancanIndicateNull()Whether user has explicitly turned null indicator column off.protected voidclear(boolean canFlags)Clear mapping information.voidcopy(MappingInfo info)Copy missing info from the instance to this one.intfindTargetField(Column[] tmplates, String target)Return the position of the template column with the given target field.Column[]getColumns(ValueMapping val, String name, Column[] tmplates, Table table, boolean adapt)Deprecated.Column[]getColumns(ValueMapping val, DBIdentifier name, Column[] tmplates, Table table, boolean adapt)IndexgetIndex(ValueMapping val, String name, boolean adapt)Deprecated.IndexgetIndex(ValueMapping val, DBIdentifier name, boolean adapt)ForeignKeygetInverseTypeJoin(ValueMapping val, String name, boolean adapt)Deprecated.ForeignKeygetInverseTypeJoin(ValueMapping val, DBIdentifier name, boolean adapt)List<Column>getMapsIdColumns()Raw column data.ColumngetNullIndicatorColumn(ValueMapping val, String name, Table table, boolean adapt)Deprecated.ColumngetNullIndicatorColumn(ValueMapping val, DBIdentifier name, Table table, boolean adapt)TablegetTable(ValueMapping val)ForeignKeygetTypeJoin(ValueMapping val, String name, boolean inversable, boolean adapt)Deprecated.ForeignKeygetTypeJoin(ValueMapping val, DBIdentifier name, boolean inversable, boolean adapt)UniquegetUnique(ValueMapping val, String name, boolean adapt)Deprecated.UniquegetUnique(ValueMapping val, DBIdentifier name, boolean adapt)booleangetUseClassCriteria()Whether to use class criteria when joining to related type.voidsetCanIndicateNull(boolean ind)Whether user has explicitly turned null indicator column off.voidsetMapsIdColumns(List<Column> cols)Raw column data.voidsetUseClassCriteria(boolean criteria)Whether to use class criteria when joining to related type.voidsyncWith(ValueMapping val)Synchronize internal information with the mapping data for the given value.- 
Methods inherited from class org.apache.openjpa.jdbc.meta.MappingInfo
assertNoForeignKey, assertNoIndex, assertNoJoin, assertNoSchemaComponents, assertNoUnique, assertStrategy, canForeignKey, canIndex, canUnique, clear, createColumns, createForeignKey, createIndex, createTable, createTable, createUnique, getColumnIO, getColumns, getColumns, getColumns, getForeignKey, getIndex, getJoinDirection, getStrategy, getUnique, hasSchemaComponents, isImplicitRelation, mergeColumn, setCanForeignKey, setCanIndex, setCanUnique, setColumnIO, setColumns, setForeignKey, setImplicitRelation, setIndex, setJoinDirection, setStrategy, setUnique, syncColumn, syncColumns, syncForeignKey, syncIndex, syncUnique 
 - 
 
 - 
 
- 
- 
Method Detail
- 
getUseClassCriteria
public boolean getUseClassCriteria()
Whether to use class criteria when joining to related type. 
- 
setUseClassCriteria
public void setUseClassCriteria(boolean criteria)
Whether to use class criteria when joining to related type. 
- 
canIndicateNull
public boolean canIndicateNull()
Whether user has explicitly turned null indicator column off. 
- 
setCanIndicateNull
public void setCanIndicateNull(boolean ind)
Whether user has explicitly turned null indicator column off. 
- 
getTypeJoin
@Deprecated public ForeignKey getTypeJoin(ValueMapping val, String name, boolean inversable, boolean adapt)
Deprecated.Return the join from this value to its related type.- Parameters:
 name- base name for value mappinginversable- whether an inverse join is allowed
 
- 
getTypeJoin
public ForeignKey getTypeJoin(ValueMapping val, DBIdentifier name, boolean inversable, boolean adapt)
 
- 
getTable
public Table getTable(ValueMapping val)
 
- 
getInverseTypeJoin
@Deprecated public ForeignKey getInverseTypeJoin(ValueMapping val, String name, boolean adapt)
Deprecated.Return the join from the related type to this value. 
- 
getInverseTypeJoin
public ForeignKey getInverseTypeJoin(ValueMapping val, DBIdentifier name, boolean adapt)
 
- 
getColumns
@Deprecated public Column[] getColumns(ValueMapping val, String name, Column[] tmplates, Table table, boolean adapt)
Deprecated.Return the columns for this value, based on the given templates. 
- 
getColumns
public Column[] getColumns(ValueMapping val, DBIdentifier name, Column[] tmplates, Table table, boolean adapt)
 
- 
findTargetField
public int findTargetField(Column[] tmplates, String target)
Return the position of the template column with the given target field. 
- 
getUnique
@Deprecated public Unique getUnique(ValueMapping val, String name, boolean adapt)
Deprecated.Return a unique constraint for the given columns, or null if none. 
- 
getUnique
public Unique getUnique(ValueMapping val, DBIdentifier name, boolean adapt)
 
- 
getIndex
@Deprecated public Index getIndex(ValueMapping val, String name, boolean adapt)
Deprecated.Return an index for the given columns, or null if none. 
- 
getIndex
public Index getIndex(ValueMapping val, DBIdentifier name, boolean adapt)
 
- 
getNullIndicatorColumn
@Deprecated public Column getNullIndicatorColumn(ValueMapping val, String name, Table table, boolean adapt)
Deprecated.Return the null indicator column for this value, or null if none. 
- 
getNullIndicatorColumn
public Column getNullIndicatorColumn(ValueMapping val, DBIdentifier name, Table table, boolean adapt)
 
- 
syncWith
public void syncWith(ValueMapping val)
Synchronize internal information with the mapping data for the given value. 
- 
clear
protected void clear(boolean canFlags)
Description copied from class:MappingInfoClear mapping information.- Overrides:
 clearin classMappingInfo- Parameters:
 canFlags- whether to clear information about whether we can place indexed, foreign keys, etc on this mapping
 
- 
copy
public void copy(MappingInfo info)
Description copied from class:MappingInfoCopy missing info from the instance to this one.- Overrides:
 copyin classMappingInfo
 
 - 
 
 -