| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectatg.commerce.order.RelationshipContainerImpl
public class RelationshipContainerImpl
A class which manages the containment of Relationship objects.
| Field Summary | |
|---|---|
| static java.lang.String | CLASS_VERSIONClass version string | 
| protected static java.lang.String | RELATIONSHIPS | 
| Constructor Summary | |
|---|---|
| RelationshipContainerImpl(MutableRepositoryItem pRepositoryItem)Constructs a RelationshipContainerImpl object. | |
| Method Summary | |
|---|---|
|  void | addRelationship(Relationship pRelationship)Add the Relationship to the container. | 
|  void | addRelationship(Relationship pRelationship,
                int pIndex)Add the Relationship to the container at the given index. | 
|  Relationship | getRelationship(java.lang.String pRelationshipId)Returns the Relationship whose id is pRelationshipId. | 
|  int | getRelationshipCount()Returns the number of Relationships in the container. | 
|  java.util.List | getRelationships()Returns a List of Relationships. | 
| protected  java.util.List | getRepositoryItemList() | 
|  void | removeAllRelationships()Removes all the Relationships | 
|  Relationship | removeRelationship(java.lang.String pRelationshipId)Removes a Relationship whose id is passed in. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static java.lang.String CLASS_VERSION
protected static java.lang.String RELATIONSHIPS
| Constructor Detail | 
|---|
public RelationshipContainerImpl(MutableRepositoryItem pRepositoryItem)
| Method Detail | 
|---|
protected java.util.List getRepositoryItemList()
public java.util.List getRelationships()
getRelationships in interface RelationshipContainer
public void addRelationship(Relationship pRelationship)
                     throws DuplicateRelationshipException,
                            InvalidParameterException
addRelationship in interface RelationshipContainerDuplicateRelationshipException
InvalidParameterException
public void addRelationship(Relationship pRelationship,
                            int pIndex)
                     throws DuplicateRelationshipException,
                            InvalidParameterException
addRelationship in interface RelationshipContainerDuplicateRelationshipException
InvalidParameterException
public Relationship removeRelationship(java.lang.String pRelationshipId)
                                throws RelationshipNotFoundException,
                                       InvalidParameterException
removeRelationship in interface RelationshipContainerRelationshipNotFoundException
InvalidParameterExceptionpublic void removeAllRelationships()
removeAllRelationships in interface RelationshipContainer
public Relationship getRelationship(java.lang.String pRelationshipId)
                             throws RelationshipNotFoundException,
                                    InvalidParameterException
getRelationship in interface RelationshipContainerRelationshipNotFoundException
InvalidParameterExceptionpublic int getRelationshipCount()
getRelationshipCount in interface RelationshipContainer| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||