org.apache.ojb.broker.core.proxy
Class ListProxyDefaultImpl

java.lang.Object
  extended by org.apache.ojb.broker.core.proxy.CollectionProxyDefaultImpl
      extended by org.apache.ojb.broker.core.proxy.ListProxyDefaultImpl
All Implemented Interfaces:
java.io.Serializable, java.lang.Iterable, java.util.Collection, java.util.List, CollectionProxy, ManageableCollection

public class ListProxyDefaultImpl
extends CollectionProxyDefaultImpl
implements java.util.List

A placeHolder for a whole list to support deferred loading of relationships. The complete relationship is loaded on request.

Version:
$Id: ListProxyDefaultImpl.java 365232 2005-12-21 22:36:07Z tomdz $
Author:
Jakob Braeuchi
See Also:
Serialized Form

Constructor Summary
ListProxyDefaultImpl(PBKey aKey, java.lang.Class aCollClass, Query aQuery)
          Constructor for ListProxy.
ListProxyDefaultImpl(PBKey aKey, Query aQuery)
          Constructor for ListProxy.
 
Method Summary
 void add(int index, java.lang.Object element)
           
 boolean addAll(int index, java.util.Collection c)
           
 java.lang.Object get(int index)
           
 int indexOf(java.lang.Object o)
           
 int lastIndexOf(java.lang.Object o)
           
 java.util.ListIterator listIterator()
           
 java.util.ListIterator listIterator(int index)
           
 java.lang.Object remove(int index)
           
 java.lang.Object set(int index, java.lang.Object element)
           
 java.util.List subList(int fromIndex, int toIndex)
           
 
Methods inherited from class org.apache.ojb.broker.core.proxy.CollectionProxyDefaultImpl
add, addAll, addListener, afterStore, clear, contains, containsAll, getBrokerKey, getCollectionClass, getData, getQuery, isEmpty, isLoaded, iterator, ojbAdd, ojbAddAll, ojbIterator, remove, removeAll, removeListener, retainAll, setData, setProfileKey, size, toArray, toArray
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.List
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 

Constructor Detail

ListProxyDefaultImpl

public ListProxyDefaultImpl(PBKey aKey,
                            Query aQuery)
Constructor for ListProxy.

Parameters:
aKey -
aQuery -

ListProxyDefaultImpl

public ListProxyDefaultImpl(PBKey aKey,
                            java.lang.Class aCollClass,
                            Query aQuery)
Constructor for ListProxy.

Parameters:
aKey -
aCollClass -
aQuery -
Method Detail

addAll

public boolean addAll(int index,
                      java.util.Collection c)
Specified by:
addAll in interface java.util.List
See Also:
List.addAll(int, java.util.Collection)

get

public java.lang.Object get(int index)
Specified by:
get in interface java.util.List
See Also:
List.get(int)

set

public java.lang.Object set(int index,
                            java.lang.Object element)
Specified by:
set in interface java.util.List
See Also:
List.set(int, java.lang.Object)

add

public void add(int index,
                java.lang.Object element)
Specified by:
add in interface java.util.List
See Also:
List.add(int, java.lang.Object)

remove

public java.lang.Object remove(int index)
Specified by:
remove in interface java.util.List
See Also:
List.remove(int)

indexOf

public int indexOf(java.lang.Object o)
Specified by:
indexOf in interface java.util.List
See Also:
List.indexOf(java.lang.Object)

lastIndexOf

public int lastIndexOf(java.lang.Object o)
Specified by:
lastIndexOf in interface java.util.List
See Also:
List.lastIndexOf(java.lang.Object)

listIterator

public java.util.ListIterator listIterator()
Specified by:
listIterator in interface java.util.List
See Also:
List.listIterator()

listIterator

public java.util.ListIterator listIterator(int index)
Specified by:
listIterator in interface java.util.List
See Also:
List.listIterator(int)

subList

public java.util.List subList(int fromIndex,
                              int toIndex)
Specified by:
subList in interface java.util.List
See Also:
List.subList(int, int)


(C) 2002 - 2006 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.4, 2005-12-30