com.highdeal.pnr.hci
Class ParameterAdditionalInfoHelper

java.lang.Object
  extended by com.highdeal.pnr.hci.ParameterAdditionalInfoHelper

public class ParameterAdditionalInfoHelper
extends java.lang.Object


Nested Class Summary
static class ParameterAdditionalInfoHelper.ParameterAdditionalInfoDataType
           
 
Field Summary
static java.lang.String ADD_INFO_NAME_DATA_TYPE
          The data-type additional information name
static java.lang.String ADD_INFO_NAME_MAPPING_TABLE_CLASS
          The mapping-table-class additional information name
static java.lang.String ADD_INFO_NAME_RANGE_TABLE_CLASS
          The range-table-class additional information name
 
Method Summary
 boolean entityIsMappingTableId(java.util.List<com.highdeal.pnr.domain.AdditionalInfoEntity> additionalInfo)
          Tells whether the given additional information indicates a mapping table ID (i.e.
 boolean entityIsRangeTableId(java.util.List<com.highdeal.pnr.domain.AdditionalInfoEntity> additionalInfo)
          Tells whether the given additional information indicates a range table ID (i.e.
 ParameterAdditionalInfoHelper.ParameterAdditionalInfoDataType getDataType(java.util.List<? extends AdditionalInfo> parameterAdditionalInfos)
           
static ParameterAdditionalInfoHelper getInstance()
           
 java.lang.String getMappingTableClassName(java.util.List<? extends AdditionalInfo> additionalInfos)
           
 java.lang.String getRangeTableClassName(java.util.List<? extends AdditionalInfo> additionalInfos)
           
 java.lang.String getRawDataType(java.util.List<AdditionalInfoModel> additionalInfos)
           
 AdditionalInfo getStringTypedAdditionalInfo(java.util.List<? extends AdditionalInfo> parameterAdditionalInfos, java.lang.String addInfoName)
           
 java.lang.String getStringTypedAdditionalInfoValue(java.util.List<? extends AdditionalInfo> additionalInfos, java.lang.String addInfoName)
           
 java.util.List<AdditionalInfoModel> getUnmanagedAdditionInfo(java.util.List<AdditionalInfoModel> additionalInfo)
           
 boolean isMappingTableId(java.util.List<AdditionalInfoModel> additionalInfo)
          Tells whether the given additional information indicates a mapping table ID (i.e.
 boolean isMappingTableId(ParameterModel parameter)
           
 boolean isMappingTableKey(java.util.List<AdditionalInfoModel> additionalInfo)
          Tells whether the given additional information indicates a mapping table key (i.e.
 boolean isMappingTableKey(ParameterModel parameter)
           
 boolean isRangeTableId(java.util.List<AdditionalInfoModel> additionalInfo)
          Tells whether the given additional information indicates a range table ID (i.e.
 boolean isRangeTableId(ParameterModel parameter)
           
 void setDataType(java.util.List<AdditionalInfoModel> additionalInfo, ParameterAdditionalInfoHelper.ParameterAdditionalInfoDataType dataType)
           
 void updateMappingTableIdAdditionalInfos(java.util.List<AdditionalInfoModel> additionalInfo, java.lang.String mappingTableClass)
           
 void updateMappingTableIdParameter(ParameterModel parameter, java.lang.String mappingTableClass)
          Updates a parameter model with the mapping table ID type.
 void updateMappingTableKeyAdditionalInfos(java.util.List<AdditionalInfoModel> additionalInfo, boolean isMappingTableKey)
           
 void updateRangeTableIdAdditionalInfos(java.util.List<AdditionalInfoModel> additionalInfo, java.lang.String rangeTableClass)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ADD_INFO_NAME_MAPPING_TABLE_CLASS

public static final java.lang.String ADD_INFO_NAME_MAPPING_TABLE_CLASS
The mapping-table-class additional information name

See Also:
Constant Field Values

ADD_INFO_NAME_RANGE_TABLE_CLASS

public static final java.lang.String ADD_INFO_NAME_RANGE_TABLE_CLASS
The range-table-class additional information name

See Also:
Constant Field Values

ADD_INFO_NAME_DATA_TYPE

public static final java.lang.String ADD_INFO_NAME_DATA_TYPE
The data-type additional information name

See Also:
Constant Field Values
Method Detail

getInstance

public static ParameterAdditionalInfoHelper getInstance()

isMappingTableKey

public boolean isMappingTableKey(ParameterModel parameter)

isMappingTableId

public boolean isMappingTableId(ParameterModel parameter)

isRangeTableId

public boolean isRangeTableId(ParameterModel parameter)

isMappingTableKey

public boolean isMappingTableKey(java.util.List<AdditionalInfoModel> additionalInfo)
Tells whether the given additional information indicates a mapping table key (i.e. whether it contains the "mapping table key" data type).

Parameters:
additionalInfo - list of additional information fields to analyze
Returns:
whether the additional information list belongs to a mapping table ID

isMappingTableId

public boolean isMappingTableId(java.util.List<AdditionalInfoModel> additionalInfo)
Tells whether the given additional information indicates a mapping table ID (i.e. whether it contains the "mapping table ID" data type).

Parameters:
additionalInfo - list of additional information fields to analyze
Returns:
whether the additional information list belongs to a mapping table ID

entityIsMappingTableId

public boolean entityIsMappingTableId(java.util.List<com.highdeal.pnr.domain.AdditionalInfoEntity> additionalInfo)
Tells whether the given additional information indicates a mapping table ID (i.e. whether it contains the "mapping table ID" data type).

Parameters:
additionalInfo - list of additional information fields to analyze
Returns:
whether the additional information list belongs to a mapping table ID

isRangeTableId

public boolean isRangeTableId(java.util.List<AdditionalInfoModel> additionalInfo)
Tells whether the given additional information indicates a range table ID (i.e. whether it contains the "range table ID" data type).

Parameters:
additionalInfo - list of additional information fields to analyze
Returns:
whether the additional information list belongs to a range table ID

entityIsRangeTableId

public boolean entityIsRangeTableId(java.util.List<com.highdeal.pnr.domain.AdditionalInfoEntity> additionalInfo)
Tells whether the given additional information indicates a range table ID (i.e. whether it contains the "range table ID" data type).

Parameters:
additionalInfo - list of additional information fields to analyze
Returns:
whether the additional information list belongs to a range table ID

updateMappingTableIdParameter

public void updateMappingTableIdParameter(ParameterModel parameter,
                                          java.lang.String mappingTableClass)
Updates a parameter model with the mapping table ID type.

Parameters:
parameter - parameter model to update
mappingTableClass - name of the mapping table class the parameter is using (may be null to remove the fields instead of setting them)

updateMappingTableIdAdditionalInfos

public void updateMappingTableIdAdditionalInfos(java.util.List<AdditionalInfoModel> additionalInfo,
                                                java.lang.String mappingTableClass)

updateMappingTableKeyAdditionalInfos

public void updateMappingTableKeyAdditionalInfos(java.util.List<AdditionalInfoModel> additionalInfo,
                                                 boolean isMappingTableKey)

updateRangeTableIdAdditionalInfos

public void updateRangeTableIdAdditionalInfos(java.util.List<AdditionalInfoModel> additionalInfo,
                                              java.lang.String rangeTableClass)

getMappingTableClassName

public java.lang.String getMappingTableClassName(java.util.List<? extends AdditionalInfo> additionalInfos)

getRangeTableClassName

public java.lang.String getRangeTableClassName(java.util.List<? extends AdditionalInfo> additionalInfos)

getStringTypedAdditionalInfoValue

public java.lang.String getStringTypedAdditionalInfoValue(java.util.List<? extends AdditionalInfo> additionalInfos,
                                                          java.lang.String addInfoName)

getRawDataType

public java.lang.String getRawDataType(java.util.List<AdditionalInfoModel> additionalInfos)

getDataType

public ParameterAdditionalInfoHelper.ParameterAdditionalInfoDataType getDataType(java.util.List<? extends AdditionalInfo> parameterAdditionalInfos)

getStringTypedAdditionalInfo

public AdditionalInfo getStringTypedAdditionalInfo(java.util.List<? extends AdditionalInfo> parameterAdditionalInfos,
                                                   java.lang.String addInfoName)

getUnmanagedAdditionInfo

public java.util.List<AdditionalInfoModel> getUnmanagedAdditionInfo(java.util.List<AdditionalInfoModel> additionalInfo)

setDataType

public final void setDataType(java.util.List<AdditionalInfoModel> additionalInfo,
                              ParameterAdditionalInfoHelper.ParameterAdditionalInfoDataType dataType)

Document Published: October 2015 (SAP CC 4.0 SP10 and Later)