Package com.highdeal.batchgroup
Class BatchRatingGroupIdentifier
java.lang.Object
com.highdeal.batchgroup.BatchRatingGroupIdentifier
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.contractpackage.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final shortThe default identifier: 0 -
Constructor Summary
ConstructorsConstructorDescriptionBatchRatingGroupIdentifier(Short batchRatingGroupId) Creates a batch rating group identifier according to a numerical identifier.BatchRatingGroupIdentifier(String batchRatingGroupCode) Creates an identifier of batch rating group according to a batch rating group code. -
Method Summary
Modifier and TypeMethodDescriptionGets the code of the batch rating group.Gets the numerical identifier of the batch rating group.
-
Field Details
-
DEFAULT_BATCH_RATING_GROUP_ID
public static final short DEFAULT_BATCH_RATING_GROUP_IDThe 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 isnullor 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 isnullor empty
-
-
Method Details
-
getBatchRatingGroupCode
Gets the code of the batch rating group.- Returns:
- The batch rating group code, which is
nullwhen the batch rating group has a defined identifier
-
getBatchRatingGroupId
Gets the numerical identifier of the batch rating group.- Returns:
- The batch rating group identifier, which is
nullwhen the batch rating group has a defined code
-