|
||||||||||
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(Session session,
Node parentNode,
CollectionDescriptor collectionDescriptor,
Class collectionFieldClass)
Get a ManageableCollection from the JCR repository |
void |
insertCollection(Session session,
Node parentNode,
CollectionDescriptor collectionDescriptor,
ManageableCollection collection)
Insert/convert collection elements into some JCR nodes |
boolean |
isNull(Session session,
Node parentNode,
CollectionDescriptor collectionDescriptor,
Class collectionFieldClass)
Check if the collection is null. |
void |
updateCollection(Session session,
Node parentNode,
CollectionDescriptor collectionDescriptor,
ManageableCollection collection)
Update collection elements already present in the JCR repository |
Method Detail |
---|
void insertCollection(Session session, Node parentNode, CollectionDescriptor collectionDescriptor, ManageableCollection collection) throws ObjectContentManagerException
session
- The JCR sessionparentNode
- the node which will contains the collection elementcollectionDescriptor
- The collection descriptorcollection
- the collection to insert
ObjectContentManagerException
- when it is not possible to insert the collectionvoid updateCollection(Session session, Node parentNode, CollectionDescriptor collectionDescriptor, ManageableCollection collection) throws ObjectContentManagerException
session
- The JCR sessionparentNode
- the node which will contains the collection elementcollectionDescriptor
- The collection descriptorcollection
- the collection to update
ObjectContentManagerException
- when it is not possible to update the collectionManageableCollection getCollection(Session session, Node parentNode, CollectionDescriptor collectionDescriptor, Class collectionFieldClass) throws ObjectContentManagerException
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, ..)
ObjectContentManagerException
- when it is not possible to retrieve the collectionboolean isNull(Session session, Node parentNode, CollectionDescriptor collectionDescriptor, Class collectionFieldClass) throws ObjectContentManagerException
session
- The JCR sessionparentNode
- the node which contains the collection elementcollectionDescriptor
- The collection descriptorcollectionFieldClass
- The collection class to used (ArrayList, Vector, ..)
ObjectContentManagerException
- 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 |