|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CollectionConverter
Convert any kind of ManageableCollection
into severals JCR nodes.
Method Summary | |
---|---|
ManageableCollection |
getCollection(javax.jcr.Session session,
javax.jcr.Node parentNode,
CollectionDescriptor collectionDescriptor,
java.lang.Class collectionFieldClass)
Get a ManageableCollection from the JCR repository |
void |
insertCollection(javax.jcr.Session session,
javax.jcr.Node parentNode,
CollectionDescriptor collectionDescriptor,
ManageableCollection collection)
Insert/convert collection elements into some JCR nodes |
boolean |
isNull(javax.jcr.Session session,
javax.jcr.Node parentNode,
CollectionDescriptor collectionDescriptor,
java.lang.Class collectionFieldClass)
Check if the collection is null. |
void |
updateCollection(javax.jcr.Session session,
javax.jcr.Node parentNode,
CollectionDescriptor collectionDescriptor,
ManageableCollection collection)
Update collection elements already present in the JCR repository |
Method Detail |
---|
void insertCollection(javax.jcr.Session session, javax.jcr.Node parentNode, CollectionDescriptor collectionDescriptor, ManageableCollection collection) throws PersistenceException
session
- The JCR sessionparentNode
- the node which will contains the collection elementcollectionDescriptor
- The collection descriptorcollection
- the collection to insert
PersistenceException
- when it is not possible to insert the collectionvoid updateCollection(javax.jcr.Session session, javax.jcr.Node parentNode, CollectionDescriptor collectionDescriptor, ManageableCollection collection) throws PersistenceException
session
- The JCR sessionparentNode
- the node which will contains the collection elementcollectionDescriptor
- The collection descriptorcollection
- the collection to update
PersistenceException
- when it is not possible to update the collectionManageableCollection getCollection(javax.jcr.Session session, javax.jcr.Node parentNode, CollectionDescriptor collectionDescriptor, java.lang.Class collectionFieldClass) throws PersistenceException
ManageableCollection
from the JCR repository
session
- The JCR sessionparentNode
- the node which contains the collection elementcollectionDescriptor
- The collection descriptorcollectionFieldClass
- The collection class to used (ArrayList, Vector, ..)
PersistenceException
- when it is not possible to retrieve the collectionboolean isNull(javax.jcr.Session session, javax.jcr.Node parentNode, CollectionDescriptor collectionDescriptor, java.lang.Class collectionFieldClass) throws PersistenceException
session
- The JCR sessionparentNode
- the node which contains the collection elementcollectionDescriptor
- The collection descriptorcollectionFieldClass
- The collection class to used (ArrayList, Vector, ..)
PersistenceException
- when it is not possible to retrieve the collection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |