|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jpox.store.rdbms.table.CorrespondentColumnsMapping
Class to make correspondence between columns in one side of an
association to the mapping at the other side. The 2 sides of the association are
referred to as "sideA" and "sideB". The JDO 2 metadata allows definition
of the correspondence using the
This means that the column specified on sideA will be mapped to the specified "target" column on sideB. If no target is provided then the first available sideB column is used for the mapping. Where no columns are defined on sideA, then they will be created to match those on sideB. Checks are made for consistency of the sideA data. When there is insufficient ColumnMetaData on sideA then a new ColumnMetaData is added to the column container.
Field Summary | |
protected static Localiser |
LOCALISER
Localiser for messages. |
Constructor Summary | |
CorrespondentColumnsMapping(ColumnMetaDataContainer columnContainer,
ColumnMetaData[] colmds,
JavaTypeMapping mappingSideB,
boolean updateContainer)
Constructor. |
|
CorrespondentColumnsMapping(ColumnMetaDataContainer columnContainer,
JavaTypeMapping mappingSideB,
boolean updateContainer)
Constructor. |
Method Summary | |
ColumnMetaData |
getColumnMetaDataByIdentifier(DatastoreIdentifier name)
Accessor for the column MetaData in side A that maps to the side B identifier. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final Localiser LOCALISER
Constructor Detail |
public CorrespondentColumnsMapping(ColumnMetaDataContainer columnContainer, ColumnMetaData[] colmds, JavaTypeMapping mappingSideB, boolean updateContainer)
columnContainer
- Container of the columns for side Acolmds
- MetaData for the columns to be usedmappingSideB
- the mapping in the side BupdateContainer
- Whether to add any missing ColumnMetaData objects to the containerpublic CorrespondentColumnsMapping(ColumnMetaDataContainer columnContainer, JavaTypeMapping mappingSideB, boolean updateContainer)
columnContainer
- Container of the columns for side AmappingSideB
- the mapping in the side BupdateContainer
- Whether to add any missing ColumnMetaData objects to the containerMethod Detail |
public ColumnMetaData getColumnMetaDataByIdentifier(DatastoreIdentifier name)
name
- The side B identifier
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |