|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mydm.core.EDocResSetImpl
Simple Implementation of the EDocResSet interface. This is a basic implementation by using ArrayList. This can be a performace issue.
Constructor Summary | |
EDocResSetImpl()
Constructor |
|
EDocResSetImpl(EDocument[] edocs)
Constructor to construct from an array of EDocument objects. |
Method Summary | |
void |
addEDoc(EDocument edoc)
Adds an EDocument to the container |
void |
addEDocs(EDocResSet edocresset)
Adds the EDocuments from the EDocResSet to the current set. |
void |
addEDocs(EDocument[] edocr)
Adds an array of EDocument Objects. |
void |
clear()
Clears the Current set |
EDocument |
getEDoc(long index)
Gets the EDocument at particular index. |
EDocResSet |
getEDocs(long from,
long to)
Returns the EDocResSet of certain range. |
EDocument[] |
getEDocsAsArray(long from,
long to)
Returns an array of EDocument Object. |
EDocResIterator |
getIterator()
Gets an iterator for the container |
long |
getSize()
Gets the size of the set |
void |
removeEDoc(long index)
Removes an EDocument at a given index. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public EDocResSetImpl()
public EDocResSetImpl(EDocument[] edocs)
edocs
- Method Detail |
public void clear()
EDocResSet
clear
in interface EDocResSet
public void addEDoc(EDocument edoc)
EDocResSet
addEDoc
in interface EDocResSet
edoc
- public EDocResIterator getIterator()
EDocResSet
getIterator
in interface EDocResSet
public EDocument getEDoc(long index) throws MyDMException
EDocResSet
getEDoc
in interface EDocResSet
index
- the index of the EDocument to retrieve
MyDMException
public long getSize()
EDocResSet
getSize
in interface EDocResSet
public void removeEDoc(long index) throws MyDMException
EDocResSet
removeEDoc
in interface EDocResSet
index
-
MyDMException
public EDocResSet getEDocs(long from, long to) throws MyDMException
EDocResSet
getEDocs
in interface EDocResSet
from
- start indexto
- stop index
MyDMException
public void addEDocs(EDocResSet edocresset)
EDocResSet
addEDocs
in interface EDocResSet
edocresset
- edocresource setpublic void addEDocs(EDocument[] edocr)
EDocResSet
addEDocs
in interface EDocResSet
edocr
- array of EDocument Objects.public EDocument[] getEDocsAsArray(long from, long to) throws MyDMException
EDocResSet
getEDocsAsArray
in interface EDocResSet
from
- start indexto
- until index
MyDMException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |