atg.b2bcommerce.order
Class B2BOrderRelationshipContainerImpl

java.lang.Object
  extended by atg.b2bcommerce.order.B2BOrderRelationshipContainerImpl
All Implemented Interfaces:
B2BOrderRelationshipContainer, java.io.Serializable

public class B2BOrderRelationshipContainerImpl
extends java.lang.Object
implements B2BOrderRelationshipContainer

A class which manages the containment of B2BOrderRelationship objects.

See Also:
Serialized Form

Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
Constructor Summary
B2BOrderRelationshipContainerImpl()
          Constructs a OrderRelationshipContainerImpl object.
 
Method Summary
 void addOrderRelationship(B2BOrderRelationship pOrderRelationship)
          Add the OrderRelationship to the container.
 B2BOrderRelationship getOrderRelationship()
          Returns the OrderRelationship.
 int getOrderRelationshipCount()
          Returns the number of OrderRelationships in the container.
 B2BOrderRelationship removeOrderRelationship()
          Removes a OrderRelationship.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string

Constructor Detail

B2BOrderRelationshipContainerImpl

public B2BOrderRelationshipContainerImpl()
Constructs a OrderRelationshipContainerImpl object.

Method Detail

addOrderRelationship

public void addOrderRelationship(B2BOrderRelationship pOrderRelationship)
                          throws DuplicateRelationshipException,
                                 InvalidParameterException
Add the OrderRelationship to the container. If the OrderRelationship was already in the container a DuplicateRelationshipException is thrown.

Specified by:
addOrderRelationship in interface B2BOrderRelationshipContainer
Throws:
DuplicateRelationshipException
InvalidParameterException

removeOrderRelationship

public B2BOrderRelationship removeOrderRelationship()
                                             throws RelationshipNotFoundException,
                                                    InvalidParameterException
Removes a OrderRelationship. If the OrderRelationship is not in the container then a RelationshipNotFoundException is thrown. Otherwise a reference to the removed OrderRelationship is returned.

Specified by:
removeOrderRelationship in interface B2BOrderRelationshipContainer
Throws:
RelationshipNotFoundException
InvalidParameterException

getOrderRelationship

public B2BOrderRelationship getOrderRelationship()
                                          throws RelationshipNotFoundException,
                                                 InvalidParameterException
Returns the OrderRelationship. If the OrderRelationship with the corresponding id is not in the container then a RelationshipNotFoundException is thrown.

Specified by:
getOrderRelationship in interface B2BOrderRelationshipContainer
Throws:
RelationshipNotFoundException
InvalidParameterException

getOrderRelationshipCount

public int getOrderRelationshipCount()
Returns the number of OrderRelationships in the container. The returned value will be either 0 or 1.

Specified by:
getOrderRelationshipCount in interface B2BOrderRelationshipContainer