org.siebengeisslein.indexedlist
Class IndexedList<EntryType>

java.lang.Object
  extended by org.siebengeisslein.client.Persistent
      extended by org.siebengeisslein.indexedlist.IndexedList<EntryType>
All Implemented Interfaces:
java.lang.Cloneable, CloneAndMergeAware, CloneAware, Instrumented, MergeAware

public class IndexedList<EntryType>
extends Persistent
implements CloneAndMergeAware


Constructor Summary
IndexedList(int componentId)
           
IndexedList(java.lang.String indexedFieldName, int nodeSize, int depth, int comonentId)
           
 
Method Summary
 void add(EntryType entry)
           
 void addIndex(java.lang.String indexedFieldName, IndexType type)
           
 void addIndex(java.lang.String indexedFieldName, IndexType type, boolean unique)
           
 void addIndex(java.lang.String indexedFieldName, int nodeSize, int depth, IndexType type)
           
 void addIndex(java.lang.String indexedFieldName, int nodeSize, int depth, IndexType type, boolean unique)
           
 CloneAware clone(CloneHelper helper)
           
 QueryResult<EntryType> execute(QueryCondition query)
           
 int getComponentId()
           
 java.util.List<IndexInfo> getIndexInfo()
           
 boolean hasIndex(java.lang.String name, IndexType type)
           
 void merge(java.lang.Object newObject, MergeContext helper)
           
 void optimize()
           
 void remove(EntryType entry)
           
 void removeIndex(int index)
           
 void removeIndex(java.lang.String indexedFieldName)
           
 void replaceMerged(MergeContext helper)
           
 
Methods inherited from class org.siebengeisslein.client.Persistent
abort, clearUserLocals, clone, commit, disposeTransient, getGroup, getRef, getTransientValue, hashCode, initTransient, isWriteTransaction, joinWriteTransaction, readLock, setGroup, setTransientValue, toPersistent, toRef, writeExternal, writeLock
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexedList

public IndexedList(java.lang.String indexedFieldName,
                   int nodeSize,
                   int depth,
                   int comonentId)

IndexedList

public IndexedList(int componentId)
Method Detail

addIndex

public void addIndex(java.lang.String indexedFieldName,
                     IndexType type,
                     boolean unique)

addIndex

public void addIndex(java.lang.String indexedFieldName,
                     IndexType type)

addIndex

public void addIndex(java.lang.String indexedFieldName,
                     int nodeSize,
                     int depth,
                     IndexType type)

addIndex

public void addIndex(java.lang.String indexedFieldName,
                     int nodeSize,
                     int depth,
                     IndexType type,
                     boolean unique)

getIndexInfo

public java.util.List<IndexInfo> getIndexInfo()

removeIndex

public void removeIndex(java.lang.String indexedFieldName)

removeIndex

public void removeIndex(int index)

execute

public QueryResult<EntryType> execute(QueryCondition query)
                               throws QueryException
Throws:
QueryException

add

public void add(EntryType entry)

remove

public void remove(EntryType entry)
            throws KeyNotFoundException
Throws:
KeyNotFoundException

clone

public CloneAware clone(CloneHelper helper)
                 throws java.lang.CloneNotSupportedException
Specified by:
clone in interface CloneAware
Throws:
java.lang.CloneNotSupportedException

merge

public void merge(java.lang.Object newObject,
                  MergeContext helper)
Specified by:
merge in interface MergeAware

getComponentId

public int getComponentId()
                   throws java.lang.UnsupportedOperationException
Specified by:
getComponentId in interface MergeAware
Throws:
java.lang.UnsupportedOperationException

replaceMerged

public void replaceMerged(MergeContext helper)
Specified by:
replaceMerged in interface MergeAware

optimize

public void optimize()

hasIndex

public boolean hasIndex(java.lang.String name,
                        IndexType type)