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
Fields inherited from interface org.xorm.I15d |
I18N |
ListProxy
public ListProxy(org.xorm.InterfaceManager mgr,
RelationshipMapping mapping,
InterfaceInvocationHandler owner,
ClassMapping classMapping,
Object[] args)
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 $