EclipseLink 1.1.4, build 'v20100812-r7860' API Reference

org.eclipse.persistence.sdo.helper.jaxb
Class JAXBListWrapper

java.lang.Object
  extended by org.eclipse.persistence.sdo.helper.ListWrapper
      extended by org.eclipse.persistence.sdo.helper.jaxb.JAXBListWrapper
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.List

public class JAXBListWrapper
extends ListWrapper

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.eclipse.persistence.sdo.helper.ListWrapper
currentElements, dataObject, property
 
Constructor Summary
JAXBListWrapper(JAXBValueStore theJAXBValueStore, SDOProperty theProperty)
           
JAXBListWrapper(JAXBValueStore theJAXBValueStore, SDOProperty theProperty, java.util.List list)
           
 
Method Summary
 void add(int index, java.lang.Object item, boolean updateSequence)
          INTERNAL:
 boolean add(java.lang.Object item, boolean updateSequence)
          INTERNAL:
 boolean addAll(java.util.Collection items, boolean updateSequence)
          INTERNAL: Appends all of the currentElements in the specified Collection to the end of this list, in the order that they are returned by the specified Collection's Iterator.
 boolean addAll(int position, java.util.Collection items, boolean updateSequence)
           
 boolean contains(java.lang.Object item)
           
 boolean containsAll(java.util.Collection items)
           
protected  void copyElements()
          INTERNAL: Shallow copy elements
 java.lang.Object get(int index)
           
 java.util.List getCurrentElements()
          INTERNAL:
 int indexOf(java.lang.Object item)
           
 boolean isEmpty()
           
 java.util.Iterator iterator()
           
 int lastIndexOf(java.lang.Object item)
           
 java.util.ListIterator listIterator()
           
 java.util.ListIterator listIterator(int position)
           
 java.lang.Object remove(int index, boolean updateSequence)
          INTERNAL: Removes the element at the specified position in this list.
 boolean remove(java.lang.Object item, boolean fromDelete, boolean updateSequence)
          INTERNAL: Remove the item or first occurrence of the item.
 void setCurrentElements(java.util.List newElements)
          INTERNAL: bypass containment and changesummary copy of element list on modifications
 int size()
           
 void undoChanges(SDOChangeSummary cs)
          INTERNAL: Undo any changes and return the original List
protected  void updateContainment(java.lang.Object item, boolean updateSequence)
          INTERNAL:
 java.lang.Object writeReplace()
          INTERNAL: Defined in SDO 2.01 spec on page 65 Externalizable function is called by ObjectStream.writeObject() A replacement object for serialization can be called here.
 
Methods inherited from class org.eclipse.persistence.sdo.helper.ListWrapper
add, add, addAll, addAll, clear, clear, clone, remove, remove, removeAll, removeAll, removeContainment, removeContainment, retainAll, set, subList, toArray, toArray, updateContainment, updateSequence
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.List
equals, hashCode
 

Constructor Detail

JAXBListWrapper

public JAXBListWrapper(JAXBValueStore theJAXBValueStore,
                       SDOProperty theProperty)

JAXBListWrapper

public JAXBListWrapper(JAXBValueStore theJAXBValueStore,
                       SDOProperty theProperty,
                       java.util.List list)
Method Detail

add

public boolean add(java.lang.Object item,
                   boolean updateSequence)
Description copied from class: ListWrapper
INTERNAL:

Overrides:
add in class ListWrapper
Returns:

add

public void add(int index,
                java.lang.Object item,
                boolean updateSequence)
Description copied from class: ListWrapper
INTERNAL:

Overrides:
add in class ListWrapper

copyElements

protected void copyElements()
Description copied from class: ListWrapper
INTERNAL: Shallow copy elements

Overrides:
copyElements in class ListWrapper

getCurrentElements

public java.util.List getCurrentElements()
Description copied from class: ListWrapper
INTERNAL:

Overrides:
getCurrentElements in class ListWrapper
Returns:

setCurrentElements

public void setCurrentElements(java.util.List newElements)
Description copied from class: ListWrapper
INTERNAL: bypass containment and changesummary copy of element list on modifications

Overrides:
setCurrentElements in class ListWrapper

undoChanges

public void undoChanges(SDOChangeSummary cs)
Description copied from class: ListWrapper
INTERNAL: Undo any changes and return the original List

Overrides:
undoChanges in class ListWrapper

remove

public boolean remove(java.lang.Object item,
                      boolean fromDelete,
                      boolean updateSequence)
Description copied from class: ListWrapper
INTERNAL: Remove the item or first occurrence of the item.

Overrides:
remove in class ListWrapper
Returns:

addAll

public boolean addAll(java.util.Collection items,
                      boolean updateSequence)
Description copied from class: ListWrapper
INTERNAL: Appends all of the currentElements in the specified Collection to the end of this list, in the order that they are returned by the specified Collection's Iterator. This function calls the public addAll(Collection) with a sequence state flag.

Overrides:
addAll in class ListWrapper
Returns:

addAll

public boolean addAll(int position,
                      java.util.Collection items,
                      boolean updateSequence)
Overrides:
addAll in class ListWrapper

size

public int size()
Specified by:
size in interface java.util.Collection
Specified by:
size in interface java.util.List
Overrides:
size in class ListWrapper

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface java.util.Collection
Specified by:
isEmpty in interface java.util.List
Overrides:
isEmpty in class ListWrapper

contains

public boolean contains(java.lang.Object item)
Specified by:
contains in interface java.util.Collection
Specified by:
contains in interface java.util.List
Overrides:
contains in class ListWrapper

containsAll

public boolean containsAll(java.util.Collection items)
Specified by:
containsAll in interface java.util.Collection
Specified by:
containsAll in interface java.util.List
Overrides:
containsAll in class ListWrapper

remove

public java.lang.Object remove(int index,
                               boolean updateSequence)
Description copied from class: ListWrapper
INTERNAL: Removes the element at the specified position in this list.
Position index starts at 0.

Overrides:
remove in class ListWrapper
Returns:
Object (the element previously at the specified position)

get

public java.lang.Object get(int index)
Specified by:
get in interface java.util.List
Overrides:
get in class ListWrapper

listIterator

public java.util.ListIterator listIterator()
Specified by:
listIterator in interface java.util.List
Overrides:
listIterator in class ListWrapper

listIterator

public java.util.ListIterator listIterator(int position)
Specified by:
listIterator in interface java.util.List
Overrides:
listIterator in class ListWrapper

indexOf

public int indexOf(java.lang.Object item)
Specified by:
indexOf in interface java.util.List
Overrides:
indexOf in class ListWrapper

lastIndexOf

public int lastIndexOf(java.lang.Object item)
Specified by:
lastIndexOf in interface java.util.List
Overrides:
lastIndexOf in class ListWrapper

writeReplace

public java.lang.Object writeReplace()
Description copied from class: ListWrapper
INTERNAL: Defined in SDO 2.01 spec on page 65 Externalizable function is called by ObjectStream.writeObject() A replacement object for serialization can be called here.

Security Note: This public function exposes a data replacement vulnerability where an outside client can gain access and modify their non-final constants. We may need to wrap the GZIP streams in some sort of encryption when we are not using HTTPS or SSL/TLS on the wire.

Overrides:
writeReplace in class ListWrapper
See Also:
SDOResolvable

iterator

public java.util.Iterator iterator()
Specified by:
iterator in interface java.lang.Iterable
Specified by:
iterator in interface java.util.Collection
Specified by:
iterator in interface java.util.List
Overrides:
iterator in class ListWrapper

updateContainment

protected void updateContainment(java.lang.Object item,
                                 boolean updateSequence)
Description copied from class: ListWrapper
INTERNAL:

Overrides:
updateContainment in class ListWrapper

EclipseLink 1.1.4, build 'v20100812-r7860' API Reference