Class BatchRatingGroupIdentifier

java.lang.Object
com.highdeal.batchgroup.BatchRatingGroupIdentifier

public class BatchRatingGroupIdentifier extends Object
This Java class represents the identifiers of batch rating groups configured in the connected SAP CC system.

Implementation in Your Client Application

You use this class when developing a customized assignment policy of a batch rating group identifiers to provider contracts. Refer to the com.highdeal.batchgroup.contract package.
  • Field Details

    • DEFAULT_BATCH_RATING_GROUP_ID

      public static final short DEFAULT_BATCH_RATING_GROUP_ID
      The default identifier: 0
      See Also:
  • Constructor Details

    • BatchRatingGroupIdentifier

      public BatchRatingGroupIdentifier(String batchRatingGroupCode) throws com.highdeal.util.NullArgumentException
      Creates an identifier of batch rating group according to a batch rating group code.
      Parameters:
      batchRatingGroupCode - The code of the batch rating group ID to create
      Throws:
      com.highdeal.util.NullArgumentException - if the specified group code is null or empty
    • BatchRatingGroupIdentifier

      public BatchRatingGroupIdentifier(Short batchRatingGroupId) throws com.highdeal.util.NullArgumentException
      Creates a batch rating group identifier according to a numerical identifier.
      Parameters:
      batchRatingGroupId - The numerical identifier of the batch rating group to create
      Throws:
      com.highdeal.util.NullArgumentException - if the specified group ID is null or empty
  • Method Details

    • getBatchRatingGroupCode

      public String getBatchRatingGroupCode()
      Gets the code of the batch rating group.
      Returns:
      The batch rating group code, which is null when the batch rating group has a defined identifier
    • getBatchRatingGroupId

      public Short getBatchRatingGroupId()
      Gets the numerical identifier of the batch rating group.
      Returns:
      The batch rating group identifier, which is null when the batch rating group has a defined code