com.highdeal.batchgroup
Class BatchRatingGroupIdentifier

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

public class BatchRatingGroupIdentifier
extends java.lang.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 Summary
static short DEFAULT_BATCH_RATING_GROUP_ID
          The default identifier: 0
 
Constructor Summary
BatchRatingGroupIdentifier(java.lang.Short batchRatingGroupId)
          Creates a batch rating group identifier according to a numerical identifier.
BatchRatingGroupIdentifier(java.lang.String batchRatingGroupCode)
          Creates an identifier of batch rating group according to a batch rating group code.
 
Method Summary
 java.lang.String getBatchRatingGroupCode()
          Gets the code of the batch rating group.
 java.lang.Short getBatchRatingGroupId()
          Gets the numerical identifier of the batch rating group.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_BATCH_RATING_GROUP_ID

public static final short DEFAULT_BATCH_RATING_GROUP_ID
The default identifier: 0

See Also:
Constant Field Values
Constructor Detail

BatchRatingGroupIdentifier

public BatchRatingGroupIdentifier(java.lang.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(java.lang.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 Detail

getBatchRatingGroupCode

public java.lang.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 java.lang.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

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