Package org.apache.openjpa.jdbc.meta
Class VersionMappingInfo
- java.lang.Object
- 
- org.apache.openjpa.jdbc.meta.MappingInfo
- 
- org.apache.openjpa.jdbc.meta.VersionMappingInfo
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable
 
 public class VersionMappingInfo extends MappingInfo Information about the mapping from a version indicator 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.MappingInfoMappingInfo.ForeignKeyDefaults, MappingInfo.TableDefaults
 
- 
 - 
Field Summary- 
Fields inherited from class org.apache.openjpa.jdbc.meta.MappingInfoJOIN_FORWARD, JOIN_INVERSE, JOIN_NONE
 
- 
 - 
Constructor SummaryConstructors Constructor Description VersionMappingInfo()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Column[]getColumns(Version version, Column[] templates, boolean adapt)Return the columns set for this version, based on the given templates.IndexgetIndex(Version version, Column[] cols, boolean adapt)Return the index to set on the version columns, or null if none.Column[]getMultiTableColumns(Version vers, Column[] templates, boolean adapt)Return the columns set for this version when the columns are spread across multiple tables.voidsyncWith(Version version)Synchronize internal information with the mapping data for the given version.- 
Methods inherited from class org.apache.openjpa.jdbc.meta.MappingInfoassertNoForeignKey, assertNoIndex, assertNoJoin, assertNoSchemaComponents, assertNoUnique, assertStrategy, canForeignKey, canIndex, canUnique, clear, clear, copy, 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- 
getColumnspublic Column[] getColumns(Version version, Column[] templates, boolean adapt) Return the columns set for this version, based on the given templates.
 - 
getMultiTableColumnspublic Column[] getMultiTableColumns(Version vers, Column[] templates, boolean adapt) Return the columns set for this version when the columns are spread across multiple tables.
 - 
getIndexpublic Index getIndex(Version version, Column[] cols, boolean adapt) Return the index to set on the version columns, or null if none.
 - 
syncWithpublic void syncWith(Version version) Synchronize internal information with the mapping data for the given version.
 
- 
 
-