public class CorrespondentColumnsMapper extends Object
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.
Modifier and Type | Field and Description |
---|---|
protected static org.datanucleus.util.Localiser |
LOCALISER
Localiser for messages.
|
Constructor and Description |
---|
CorrespondentColumnsMapper(org.datanucleus.metadata.ColumnMetaDataContainer columnContainer,
org.datanucleus.metadata.ColumnMetaData[] colmds,
JavaTypeMapping mappingSideB,
boolean updateContainer)
Constructor.
|
CorrespondentColumnsMapper(org.datanucleus.metadata.ColumnMetaDataContainer columnContainer,
JavaTypeMapping mappingSideB,
boolean updateContainer)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
org.datanucleus.metadata.ColumnMetaData |
getColumnMetaDataByIdentifier(DatastoreIdentifier name)
Accessor for the column MetaData in side A that maps to the side B identifier.
|
protected static final org.datanucleus.util.Localiser LOCALISER
public CorrespondentColumnsMapper(org.datanucleus.metadata.ColumnMetaDataContainer columnContainer, org.datanucleus.metadata.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 CorrespondentColumnsMapper(org.datanucleus.metadata.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 containerpublic org.datanucleus.metadata.ColumnMetaData getColumnMetaDataByIdentifier(DatastoreIdentifier name)
name
- The side B identifierCopyright © 2023. All rights reserved.