| java.util.AbstractList hu.netmind.persistence.ListImpl
ListImpl | public class ListImpl extends AbstractList implements Container,LazyListHooks(Code) | | Custom list implementation based on lazy lists. List is not
thread-safe.
author: Brautigam Robert version: Revision: $Revision$ |
Inner Class :public class ObjectWrapper | |
Method Summary | |
public void | add(int index, Object item) | public boolean | addAll(Object c) | public void | clear() Clear all entries from the list. | public boolean | contains(Object item) | public boolean | equals(Object obj) Determine whether list equals another list in content. | public Object | get(int index) | public String | getItemClassName() | public Long | getLastSerial() Get the serial number of last modification. | public boolean | hasChanged() Returns whether the container changes internally since last save(). | public int | indexOf(Object item) | public void | init(StoreContext context, ClassInfo classInfo, Object obj, String attributeName, String itemClassName, Long lastSerial, TimeControl timeControl) Initialize with a default list. | public int | lastIndexOf(Object item) | public boolean | postSelect(Map session, List list, Limits limits) The result list is now unordered, because the result was assembled
from possibly multiple query results. | public int | preIndexing(Map session, int startIndex) | public QueryStatement | preSelect(Map session, QueryStatement stmt, List previousList, Limits limits, Limits pageLimits) This method generates a sub-page select statement which will select
the next items. | public void | reload() | public Object | remove(int index) | public boolean | remove(Object item) | public boolean | retainAll(Object c) | public void | save(Transaction transaction, Long currentSerial, Set waitingObjects, List events) Save the container to database. | public Object | set(int index, Object item) | public int | size() | public String | toString() |
clear | public void clear()(Code) | | Clear all entries from the list.
|
equals | public boolean equals(Object obj)(Code) | | Determine whether list equals another list in content.
|
getLastSerial | public Long getLastSerial()(Code) | | Get the serial number of last modification.
|
hasChanged | public boolean hasChanged()(Code) | | Returns whether the container changes internally since last save().
|
postSelect | public boolean postSelect(Map session, List list, Limits limits)(Code) | | The result list is now unordered, because the result was assembled
from possibly multiple query results. So we need to order by index.
|
preIndexing | public int preIndexing(Map session, int startIndex)(Code) | | |
preSelect | public QueryStatement preSelect(Map session, QueryStatement stmt, List previousList, Limits limits, Limits pageLimits)(Code) | | This method generates a sub-page select statement which will select
the next items. If this is a linear iteration, then we already
know the previous index to select from, if not, we have to
select the list 'index' just before the page start.
|
reload | public void reload()(Code) | | |
Fields inherited from java.util.AbstractList | protected transient int modCount(Code)(Java Doc)
|
|
|