org.apache.ojb.broker.core.proxy
Class ListProxyDefaultImpl
java.lang.Object
org.apache.ojb.broker.core.proxy.CollectionProxyDefaultImpl
org.apache.ojb.broker.core.proxy.ListProxyDefaultImpl
- All Implemented Interfaces:
- Serializable, Iterable, Collection, List, CollectionProxy, ManageableCollection
public class ListProxyDefaultImpl
- extends CollectionProxyDefaultImpl
- implements List
A placeHolder for a whole list to support deferred loading of
relationships. The complete relationship is loaded on request.
- Version:
- $Id: ListProxyDefaultImpl.java,v 1.1 2007-08-24 22:17:32 ewestfal Exp $
- Author:
- Jakob Braeuchi
- See Also:
- Serialized Form
| Methods inherited from class org.apache.ojb.broker.core.proxy.CollectionProxyDefaultImpl |
add, addAll, addListener, afterLoading, afterStore, beforeLoading, clear, contains, containsAll, getBroker, getBrokerKey, getCollectionClass, getData, getProfileKey, getQuery, isEmpty, isLoaded, iterator, loadProfileIfNeeded, loadSize, ojbAdd, ojbAddAll, ojbIterator, releaseBroker, remove, removeAll, removeListener, retainAll, setBrokerKey, setCollectionClass, setData, setProfileKey, setQuery, setSize, size, toArray, toArray |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, 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 |
ListProxyDefaultImpl
public ListProxyDefaultImpl(PBKey aKey,
Query aQuery)
- Constructor for ListProxy.
- Parameters:
aKey - aQuery -
ListProxyDefaultImpl
public ListProxyDefaultImpl(PBKey aKey,
Class aCollClass,
Query aQuery)
- Constructor for ListProxy.
- Parameters:
aKey - aCollClass - aQuery -
addAll
public boolean addAll(int index,
Collection c)
- Specified by:
addAll in interface List
- See Also:
List.addAll(int, java.util.Collection)
get
public Object get(int index)
- Specified by:
get in interface List
- See Also:
List.get(int)
set
public Object set(int index,
Object element)
- Specified by:
set in interface List
- See Also:
List.set(int, java.lang.Object)
add
public void add(int index,
Object element)
- Specified by:
add in interface List
- See Also:
List.add(int, java.lang.Object)
remove
public Object remove(int index)
- Specified by:
remove in interface List
- See Also:
List.remove(int)
indexOf
public int indexOf(Object o)
- Specified by:
indexOf in interface List
- See Also:
List.indexOf(java.lang.Object)
lastIndexOf
public int lastIndexOf(Object o)
- Specified by:
lastIndexOf in interface List
- See Also:
List.lastIndexOf(java.lang.Object)
listIterator
public ListIterator listIterator()
- Specified by:
listIterator in interface List
- See Also:
List.listIterator()
listIterator
public ListIterator listIterator(int index)
- Specified by:
listIterator in interface List
- See Also:
List.listIterator(int)
subList
public List subList(int fromIndex,
int toIndex)
- Specified by:
subList in interface List
- See Also:
List.subList(int, int)
getListData
protected List getListData()
loadData
protected Collection loadData()
throws PersistenceBrokerException
- Description copied from class:
CollectionProxyDefaultImpl
- Loads the data from the database. Override this method if the objects
shall be loaded in a specific way.
- Overrides:
loadData in class CollectionProxyDefaultImpl
- Returns:
- The loaded data
- Throws:
PersistenceBrokerException- See Also:
CollectionProxyDefaultImpl.loadData()
Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.