| java.lang.Object org.jpox.store.mapping.CorrespondentColumnsMapper
CorrespondentColumnsMapper | public class CorrespondentColumnsMapper (Code) | | 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
syntax.
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.
version: $Revision: 1.1 $ |
LOCALISER | final protected static Localiser LOCALISER(Code) | | Localiser for messages.
|
CorrespondentColumnsMapper | public CorrespondentColumnsMapper(ColumnMetaDataContainer columnContainer, ColumnMetaData[] colmds, JavaTypeMapping mappingSideB, boolean updateContainer)(Code) | | Constructor.
Takes the sideB mapping and the side A definition of column metadata and matches them up as
defined by the user, and if not defined by the user matches them as best it can. This constructor
allows specification of the column metadata array directly, rather than taking what the container has
- is used by ColumnCreator where the user has specified multiple columns but only some of them are for
this field being mapped.
Parameters: columnContainer - Container of the columns for side A Parameters: colmds - MetaData for the columns to be used Parameters: mappingSideB - the mapping in the side B Parameters: updateContainer - Whether to add any missing ColumnMetaData objects to the container |
CorrespondentColumnsMapper | public CorrespondentColumnsMapper(ColumnMetaDataContainer columnContainer, JavaTypeMapping mappingSideB, boolean updateContainer)(Code) | | Constructor.
Takes the sideB mapping and the side A definition of column metadata and matches them up as
defined by the user, and if not defined by the user matches them as best it can.
Parameters: columnContainer - Container of the columns for side A Parameters: mappingSideB - the mapping in the side B Parameters: updateContainer - Whether to add any missing ColumnMetaData objects to the container |
getColumnMetaDataByIdentifier | public ColumnMetaData getColumnMetaDataByIdentifier(DatastoreIdentifier name)(Code) | | Accessor for the column MetaData in side A that maps to the side B identifier.
Parameters: name - The side B identifier ColumnMetaData in side A that equates to the side B column |
|
|