|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.ks.common.jcr.JCRListAccess<E>
public abstract class JCRListAccess<E>
Basis for JCR-based list access. Acquires and releases system sessions on default workspace.
| Constructor Summary | |
|---|---|
JCRListAccess()
|
|
| Method Summary | |
|---|---|
int |
getSize()
Returns the list size. |
protected abstract int |
getSize(javax.jcr.Session session)
|
E[] |
load(int index,
int length)
Retrieves an array of object from the list. |
protected abstract E[] |
load(javax.jcr.Session session,
int index,
int length)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JCRListAccess()
| Method Detail |
|---|
public E[] load(int index,
int length)
throws java.lang.Exception,
java.lang.IllegalArgumentException
ListAccessRetrieves an array of object from the list. The returned array size is expected to be equals to the length argument.
The index value and the lenght value cannot be negative, and the sum of the index and the length cannot be greater than the list size. Those values are considered as non correct.
load in interface ListAccess<E>index - the indexlength - the limit
java.lang.Exception - any exception that would prevent access to the list
java.lang.IllegalArgumentException - if the index value or the length value are not correct
public int getSize()
throws java.lang.Exception
ListAccess
getSize in interface ListAccess<E>java.lang.Exception - any exception that would prevent access to the list
protected abstract E[] load(javax.jcr.Session session,
int index,
int length)
throws java.lang.Exception,
java.lang.IllegalArgumentException
java.lang.Exception
java.lang.IllegalArgumentException
protected abstract int getSize(javax.jcr.Session session)
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||