org.xorm
Class ListProxy

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--org.xorm.CollectionProxy
              |
              +--org.xorm.RelationshipProxy
                    |
                    +--org.xorm.ListProxy
All Implemented Interfaces:
Collection, I15d, List

public class ListProxy
extends RelationshipProxy
implements List


Nested Class Summary
 
Nested classes inherited from class org.xorm.RelationshipProxy
RelationshipProxy.RelationshipProxyIterator
 
Nested classes inherited from class org.xorm.CollectionProxy
CollectionProxy.ProxyIterator
 
Field Summary
 
Fields inherited from class org.xorm.RelationshipProxy
args, deletedRows, logger, mapping, newRows, owner, txnManaged
 
Fields inherited from class org.xorm.CollectionProxy
classMapping, closed, iterator, mgr, rows, rowToProxy, selector, sizeHint
 
Fields inherited from interface org.xorm.I15d
I18N
 
Constructor Summary
ListProxy(org.xorm.InterfaceManager mgr, RelationshipMapping mapping, InterfaceInvocationHandler owner, ClassMapping classMapping, Object[] args)
           
 
Method Summary
 void add(int index, Object o)
           
 boolean add(Object o)
          Adds the given object (proxy object) to the collection.
 boolean addAll(int index, Collection c)
           
 boolean equals(Object o)
           
 Object get(int index)
           
 Collection getRows()
          Lazy resolve on rows.
protected  Selector getSelector()
           
 int indexOf(Object o)
           
 int lastIndexOf(Object o)
           
 ListIterator listIterator()
           
 ListIterator listIterator(int index)
           
protected  void reindex(int start, int offset)
           
 Object remove(int index)
           
 boolean remove(Object o)
          Removes the given object (proxy object) from the collection.
 Object set(int index, Object o)
           
 List subList(int fromIndex, int toIndex)
           
 Object[] toArray()
           
 Object[] toArray(Object[] a)
           
 
Methods inherited from class org.xorm.RelationshipProxy
clear, dependsOn, forceTransaction, getElementType, getKeyColumn, getOwner, getRelationshipMapping, iterator, notifyIDChanged
 
Methods inherited from class org.xorm.CollectionProxy
close, getInterfaceManager, size
 
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
addAll, clear, contains, containsAll, hashCode, isEmpty, iterator, removeAll, retainAll, size
 

Constructor Detail

ListProxy

public ListProxy(org.xorm.InterfaceManager mgr,
                 RelationshipMapping mapping,
                 InterfaceInvocationHandler owner,
                 ClassMapping classMapping,
                 Object[] args)
Method Detail

getSelector

protected Selector getSelector()
Overrides:
getSelector in class RelationshipProxy

getRows

public Collection getRows()
Lazy resolve on rows. Overrides the method in CollectionProxy to ensure that rows is always an instance of List. There is a slight performance impact to this if the datastore driver is not returning a List as the items must be copied.

Overrides:
getRows in class CollectionProxy

add

public boolean add(Object o)
Description copied from class: RelationshipProxy
Adds the given object (proxy object) to the collection.

Specified by:
add in interface List
Overrides:
add in class RelationshipProxy

add

public void add(int index,
                Object o)
Specified by:
add in interface List

reindex

protected void reindex(int start,
                       int offset)

addAll

public boolean addAll(int index,
                      Collection c)
Specified by:
addAll in interface List

get

public Object get(int index)
Specified by:
get in interface List

indexOf

public int indexOf(Object o)
Specified by:
indexOf in interface List

lastIndexOf

public int lastIndexOf(Object o)
Specified by:
lastIndexOf in interface List

listIterator

public ListIterator listIterator()
Specified by:
listIterator in interface List

listIterator

public ListIterator listIterator(int index)
Specified by:
listIterator in interface List

remove

public boolean remove(Object o)
Description copied from class: RelationshipProxy
Removes the given object (proxy object) from the collection.

Specified by:
remove in interface List
Overrides:
remove in class RelationshipProxy

remove

public Object remove(int index)
Specified by:
remove in interface List

set

public Object set(int index,
                  Object o)
Specified by:
set in interface List

subList

public List subList(int fromIndex,
                    int toIndex)
Specified by:
subList in interface List

toArray

public Object[] toArray()
Specified by:
toArray in interface List
Overrides:
toArray in class AbstractCollection

toArray

public Object[] toArray(Object[] a)
Specified by:
toArray in interface List
Overrides:
toArray in class AbstractCollection

equals

public boolean equals(Object o)
Specified by:
equals in interface List
Overrides:
equals in class Object


$Header: /cvsroot/xorm/xorm/docs/api/org/xorm/ListProxy.html,v 1.3 2004/05/30 08:55:03 wbiggs Exp $