org.openrdf.elmo.sesame.behaviours
Class SesameList

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.AbstractSequentialList<Object>
              extended by org.openrdf.elmo.sesame.behaviours.SesameList
All Implemented Interfaces:
Iterable<Object>, Collection<Object>, List<Object>, Mergeable, Refreshable

public class SesameList
extends AbstractSequentialList<Object>
implements List<Object>, Refreshable, Mergeable

Java instance for rdf:List as a familiar interface to manipulate this List. This implemention can only be modified when in autoCommit (autoFlush), or when read uncommitted is supported.

Author:
James Leigh

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
SesameList(Entity bean)
           
 
Method Summary
 ListIterator<Object> listIterator(int index)
           
 void merge(Object source)
          Copies the non-null values from the source Object into this instance.
 void refresh()
          Flushes the local state of the entity forcing it to refresh.
 int size()
           
 String toString()
           
 
Methods inherited from class java.util.AbstractSequentialList
add, addAll, get, iterator, remove, set
 
Methods inherited from class java.util.AbstractList
add, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, removeRange, subList
 
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, remove, remove, removeAll, retainAll, set, subList, toArray, toArray
 

Constructor Detail

SesameList

public SesameList(Entity bean)
Method Detail

refresh

public void refresh()
Description copied from interface: Refreshable
Flushes the local state of the entity forcing it to refresh.

Specified by:
refresh in interface Refreshable

merge

public void merge(Object source)
Description copied from interface: Mergeable
Copies the non-null values from the source Object into this instance.

Specified by:
merge in interface Mergeable

size

public int size()
Specified by:
size in interface Collection<Object>
Specified by:
size in interface List<Object>
Specified by:
size in class AbstractCollection<Object>

listIterator

public ListIterator<Object> listIterator(int index)
Specified by:
listIterator in interface List<Object>
Specified by:
listIterator in class AbstractSequentialList<Object>

toString

public String toString()
Overrides:
toString in class AbstractCollection<Object>


Copyright © 2004-2008 Aduna. All Rights Reserved.