|
||||||||||
| 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 EDocResSetpublic void addEDoc(EDocument edoc)
EDocResSet
addEDoc in interface EDocResSetedoc - public EDocResIterator getIterator()
EDocResSet
getIterator in interface EDocResSet
public EDocument getEDoc(long index)
throws MyDMException
EDocResSet
getEDoc in interface EDocResSetindex - the index of the EDocument to retrieve
MyDMExceptionpublic long getSize()
EDocResSet
getSize in interface EDocResSet
public void removeEDoc(long index)
throws MyDMException
EDocResSet
removeEDoc in interface EDocResSetindex -
MyDMException
public EDocResSet getEDocs(long from,
long to)
throws MyDMException
EDocResSet
getEDocs in interface EDocResSetfrom - start indexto - stop index
MyDMExceptionpublic void addEDocs(EDocResSet edocresset)
EDocResSet
addEDocs in interface EDocResSetedocresset - edocresource setpublic void addEDocs(EDocument[] edocr)
EDocResSet
addEDocs in interface EDocResSetedocr - array of EDocument Objects.
public EDocument[] getEDocsAsArray(long from,
long to)
throws MyDMException
EDocResSet
getEDocsAsArray in interface EDocResSetfrom - start indexto - until index
MyDMException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||