wt.container.batch.impl
Class AttributedRoleBatchContainerImpl

java.lang.Object
  extended bywt.container.batch.impl.BatchContainerImpl
      extended bywt.container.batch.impl.RoleBatchContainerImpl
          extended bywt.container.batch.impl.AttributedRoleBatchContainerImpl
All Implemented Interfaces:
AttributedRoleBatchContainer, BatchContainer, RoleBatchContainer, Serializable
Direct Known Subclasses:
PhaseSuccessionContainer

public class AttributedRoleBatchContainerImpl
extends RoleBatchContainerImpl
implements AttributedRoleBatchContainer, Serializable



Supported API: true

Extendable: false

See Also:
Serialized Form

Nested Class Summary
protected static class AttributedRoleBatchContainerImpl.AssertionTargetImpl
           
 
Nested classes inherited from class wt.container.batch.AttributedRoleBatchContainer
AttributedRoleBatchContainer.AssertionTarget
 
Field Summary
private static String CLASSNAME
           
private static String RESOURCE
           
 
Fields inherited from class wt.container.batch.impl.RoleBatchContainerImpl
 
Fields inherited from class wt.container.batch.impl.BatchContainerImpl
 
Fields inherited from interface wt.container.batch.RoleBatchContainer
ASSOCIATION_NAME, FROM_OBJECT, ROLE_NAME
 
Fields inherited from interface wt.container.batch.BatchContainer
ELEMENTS
 
Constructor Summary
AttributedRoleBatchContainerImpl(TransactionContainer txnContainer, String assocName, String roleName, Object fromObject)
          

Supported API: false
 
Method Summary
 boolean add(Object element)
          

Supported API: false
 boolean add(Object element, Object attributeMap)
          Adds the specified object and attribute map pair to this AttributedRoleBatchContainer.
 Enumeration attributeMaps()
          Return an Enumeration over the attribute maps in this AttributedRoleBatchContainer.
 boolean contains(Object element)
          

Supported API: false
 boolean contains(Object element, Object attributeMap)
          Determine if the object and attribute map pair is in this AttributedRoleBatchContainer.
 Enumeration elements()
          

Supported API: false
 boolean populate(Enumeration a_Elements)
          

Supported API: false
 boolean populate(Enumeration a_Elements, Enumeration a_AttributeMaps)
          Operation to allow the pre-population of container elements.
 boolean populate(Object a_Element)
          Operation to allow the pre-population of container elements.
 boolean populate(Object a_Element, Object a_AttributeMap)
          Operation to allow the pre-population of container elements.
 boolean remove(Object element)
          

Supported API: false
 boolean remove(Object element, Object attributeMap)
          Removes the specified object and attribute map pair from this AttributedRoleBatchContainer.
 boolean replace(Object element)
          

Supported API: false
 boolean replace(Object element, Object attributeMap)
          Used to indicate that an object and attribute map pair has changed.
 String toString()
           
private  String toString(Object obj)
           
 
Methods inherited from class wt.container.batch.impl.RoleBatchContainerImpl
getAssociationName, getFromObject, getRoleName
 
Methods inherited from class wt.container.batch.impl.BatchContainerImpl
clearAll, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface wt.container.batch.RoleBatchContainer
getAssociationName, getFromObject, getRoleName
 
Methods inherited from interface wt.container.batch.BatchContainer
size
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME
Constructor Detail

AttributedRoleBatchContainerImpl

public AttributedRoleBatchContainerImpl(TransactionContainer txnContainer,
                                        String assocName,
                                        String roleName,
                                        Object fromObject)


Supported API: false

Parameters:
txnContainer -
assocName -
roleName -
fromObject -
Method Detail

add

public boolean add(Object element)


Supported API: false

Specified by:
add in interface BatchContainer
Overrides:
add in class BatchContainerImpl
Parameters:
element -
Returns:
boolean

remove

public boolean remove(Object element)


Supported API: false

Specified by:
remove in interface BatchContainer
Overrides:
remove in class BatchContainerImpl
Parameters:
element -
Returns:
boolean

replace

public boolean replace(Object element)


Supported API: false

Specified by:
replace in interface BatchContainer
Overrides:
replace in class BatchContainerImpl
Parameters:
element -
Returns:
boolean

elements

public Enumeration elements()


Supported API: false

Specified by:
elements in interface BatchContainer
Overrides:
elements in class BatchContainerImpl
Returns:
Enumeration

contains

public boolean contains(Object element)


Supported API: false

Specified by:
contains in interface BatchContainer
Overrides:
contains in class BatchContainerImpl
Parameters:
element -
Returns:
boolean

populate

public boolean populate(Enumeration a_Elements)


Supported API: false

Specified by:
populate in interface BatchContainer
Overrides:
populate in class BatchContainerImpl
Parameters:
a_Elements -
Returns:
boolean

populate

public boolean populate(Object a_Element)
Operation to allow the pre-population of container elements. This allows objects to be added to the container without creating a corresponding Assertion. Returns true if this AttributedRoleBatchContainer changed due to this operation.

Supported API: true

Specified by:
populate in interface BatchContainer
Overrides:
populate in class BatchContainerImpl
Parameters:
a_Element -
Returns:
boolean

add

public boolean add(Object element,
                   Object attributeMap)
Adds the specified object and attribute map pair to this AttributedRoleBatchContainer. Returns false if the container did not change based on the add (i.e., the pair was already in this container). If the pair is not already in this container, an AddAssertion is also added to the associated TransactionContainer.

Supported API: true

Specified by:
add in interface AttributedRoleBatchContainer
Parameters:
element - the "other side" object in the association
attributeMap - a map of the association attribute names to their respective values
Returns:
boolean

remove

public boolean remove(Object element,
                      Object attributeMap)
Removes the specified object and attribute map pair from this AttributedRoleBatchContainer. Returns false if the container is not changed by this operation (i.e., the pair is not in this container). Regardless of whether the pair is already in this container, a RemoveAssertion is created and added to the associated TransactionContainer.

Supported API: true

Specified by:
remove in interface AttributedRoleBatchContainer
Parameters:
element - the "other side" object in the association
attributeMap - a map of the association attribute names to their respective values
Returns:
boolean

replace

public boolean replace(Object element,
                       Object attributeMap)
Used to indicate that an object and attribute map pair has changed. Returns true if the specified object and attribute map pair is in the container. Regardless of whether the pair is already in this container, a ReplaceAsssertion will be created and added to the associated TransactionContainer.

Supported API: true

Specified by:
replace in interface AttributedRoleBatchContainer
Parameters:
element - the "other side" object in the association
attributeMap - a map of the association attribute names to their respective values
Returns:
boolean

attributeMaps

public Enumeration attributeMaps()
Return an Enumeration over the attribute maps in this AttributedRoleBatchContainer. The returned enumeration contains the same number and ordering of elements as that returned by elements() (i.e., the nth map returned by the enumeration corresponds to the nth object returned by the enumeration returned by elements()).

Supported API: true

Specified by:
attributeMaps in interface AttributedRoleBatchContainer
Returns:
Enumeration

contains

public boolean contains(Object element,
                        Object attributeMap)
Determine if the object and attribute map pair is in this AttributedRoleBatchContainer. Pairs for which a remove assertion has been applied will not be returned.

Supported API: true

Specified by:
contains in interface AttributedRoleBatchContainer
Parameters:
element - the "other side" object in the association
attributeMap - a map of the association attribute names to their respective values
Returns:
boolean

populate

public boolean populate(Object a_Element,
                        Object a_AttributeMap)
Operation to allow the pre-population of container elements. This allows object and attribute map pairs to be added to the container without creating a corresponding Assertion. Returns true if this AttributeRoleBatchContainer changed due to this operation.

Supported API: true

Specified by:
populate in interface AttributedRoleBatchContainer
Parameters:
a_Element - the "other side" object in the association
a_AttributeMap - a map of the association attribute names to their respective values
Returns:
boolean

populate

public boolean populate(Enumeration a_Elements,
                        Enumeration a_AttributeMaps)
Operation to allow the pre-population of container elements. The container must be empty when populate is called. The argument enumerations must correspond in both size and ordering (i.e., the nth object of the first argument enumeration must correspond to the nth map of the second argument enumeration). Returns true if the AttributedRoleBatchContainer changed due to this operation.

Supported API: true

Specified by:
populate in interface AttributedRoleBatchContainer
Parameters:
a_Elements - the "other side" objects in the association
a_AttributeMaps - maps of the association attribute names (Strings) to their respective values
Returns:
boolean

toString

public String toString()

toString

private String toString(Object obj)