Package org.apache.openjpa.jdbc.meta
Class DiscriminatorMappingInfo
- java.lang.Object
 - 
- org.apache.openjpa.jdbc.meta.MappingInfo
 - 
- org.apache.openjpa.jdbc.meta.DiscriminatorMappingInfo
 
 
 
- 
- All Implemented Interfaces:
 Serializable
public class DiscriminatorMappingInfo extends MappingInfo
Information about the mapping from a discriminator 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 DiscriminatorMappingInfo() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidclear(boolean canFlags)Clear mapping information.voidcopy(MappingInfo info)Copy missing info from the instance to this one.Column[]getColumns(Discriminator discrim, Column[] tmplates, boolean adapt)Return the columns set for this discriminator, based on the given templates.IndexgetIndex(Discriminator discrim, Column[] cols, boolean adapt)Return the index to set on the discriminator columns, or null if none.StringgetValue()Raw discriminator value string.ObjectgetValue(Discriminator discrim, boolean adapt)Return the discriminator value as an object of the right type.voidsetValue(String value)Raw discriminator value string.voidsyncWith(Discriminator disc)Synchronize internal information with the mapping data for the given discriminator.- 
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
- 
getValue
public String getValue()
Raw discriminator value string. 
- 
setValue
public void setValue(String value)
Raw discriminator value string. 
- 
getValue
public Object getValue(Discriminator discrim, boolean adapt)
Return the discriminator value as an object of the right type. 
- 
getColumns
public Column[] getColumns(Discriminator discrim, Column[] tmplates, boolean adapt)
Return the columns set for this discriminator, based on the given templates. 
- 
getIndex
public Index getIndex(Discriminator discrim, Column[] cols, boolean adapt)
Return the index to set on the discriminator columns, or null if none. 
- 
syncWith
public void syncWith(Discriminator disc)
Synchronize internal information with the mapping data for the given discriminator. 
- 
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
 
 - 
 
 -