Interface FieldMergeContext
public interface FieldMergeContext
Provides a context to handle the creation of a golden record based on the field value of other records.
-
Method Summary
Modifier and TypeMethodDescriptioncreateMergedValue
(com.onwbp.adaptation.PrimaryKey aPrimaryKey) Provides a way to set a value for an EBX field by specifying a record based on a primary key.createMergedValue
(Object aValue) Provides a way to set a value for an EBX field by specifying a record based on a value.com.orchestranetworks.schema.SchemaNode
getField()
com.onwbp.adaptation.Adaptation
List<com.onwbp.adaptation.Adaptation>
-
Method Details
-
getField
com.orchestranetworks.schema.SchemaNode getField()- Returns:
- Returns an EBX field
-
getRecords
List<com.onwbp.adaptation.Adaptation> getRecords()- Returns:
- Returns a list of records
-
getGoldenRecord
com.onwbp.adaptation.Adaptation getGoldenRecord()- Returns:
- Returns a golden record
-
getLocale
Locale getLocale()- Returns:
- Returns localization information
-
createMergedValue
Provides a way to set a value for an EBX field by specifying a record based on a value.- Parameters:
aValue
- The field value for the golden record- Returns:
- MergedFieldValue Returns the merged value for a field in a golden record
-
createMergedValue
Provides a way to set a value for an EBX field by specifying a record based on a primary key.- Parameters:
aPrimaryKey
- The primary key of an EBX record- Returns:
- MergedFieldValue Returns the merged value for a field in a golden record
- Throws:
IllegalArgumentException
- When the given primary key is not in the list of merged records.
-