public class CostCenterRelationshipContainerImpl extends java.lang.Object implements CostCenterRelationshipContainer
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
| Constructor and Description |
|---|
CostCenterRelationshipContainerImpl()
Constructs a CostCenterRelationshipContainerImpl object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCostCenterRelationship(CostCenterRelationship pCostCenterRelationship)
Add the CostCenterRelationship to the container.
|
void |
addCostCenterRelationship(CostCenterRelationship pCostCenterRelationship,
int pIndex)
Add the CostCenterRelationship to the container at the given index.
|
CostCenterRelationship |
getCostCenterRelationship(java.lang.String pCostCenterRelationshipId)
Returns the CostCenterRelationship whose id is pCostCenterRelationshipId.
|
int |
getCostCenterRelationshipCount()
Returns the number of CostCenterRelationships in the container.
|
java.util.List |
getCostCenterRelationships()
Returns a List of CostCenterRelationships.
|
void |
removeAllCostCenterRelationships()
Removes all the CostCenterRelationships
|
CostCenterRelationship |
removeCostCenterRelationship(java.lang.String pCostCenterRelationshipId)
Removes a CostCenterRelationship whose id is passed in.
|
public CostCenterRelationshipContainerImpl()
public java.util.List getCostCenterRelationships()
getCostCenterRelationships in interface CostCenterRelationshipContainerpublic void addCostCenterRelationship(CostCenterRelationship pCostCenterRelationship) throws DuplicateRelationshipException, InvalidParameterException
addCostCenterRelationship in interface CostCenterRelationshipContainerDuplicateRelationshipExceptionInvalidParameterExceptionpublic void addCostCenterRelationship(CostCenterRelationship pCostCenterRelationship, int pIndex) throws DuplicateRelationshipException, InvalidParameterException
addCostCenterRelationship in interface CostCenterRelationshipContainerDuplicateRelationshipExceptionInvalidParameterExceptionpublic CostCenterRelationship removeCostCenterRelationship(java.lang.String pCostCenterRelationshipId) throws RelationshipNotFoundException, InvalidParameterException
removeCostCenterRelationship in interface CostCenterRelationshipContainerRelationshipNotFoundExceptionInvalidParameterExceptionpublic void removeAllCostCenterRelationships()
removeAllCostCenterRelationships in interface CostCenterRelationshipContainerpublic CostCenterRelationship getCostCenterRelationship(java.lang.String pCostCenterRelationshipId) throws RelationshipNotFoundException, InvalidParameterException
getCostCenterRelationship in interface CostCenterRelationshipContainerRelationshipNotFoundExceptionInvalidParameterExceptionpublic int getCostCenterRelationshipCount()
getCostCenterRelationshipCount in interface CostCenterRelationshipContainer