|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CollectionConverter
Convert any kind of ManageableObjects
into severals JCR nodes.
Method Summary | |
---|---|
ManageableObjects |
getCollection(Session session,
Node parentNode,
CollectionDescriptor collectionDescriptor,
Class collectionFieldClass)
Get a ManageableObjects from the JCR repository |
void |
insertCollection(Session session,
Node parentNode,
CollectionDescriptor collectionDescriptor,
ManageableObjects objects)
Insert/convert collection elements (a Collection or a Map) 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,
ManageableObjects objects)
Update collection elements (a Collection or a Map) already present in the JCR repository |
Method Detail |
---|
void insertCollection(Session session, Node parentNode, CollectionDescriptor collectionDescriptor, ManageableObjects objects) throws ObjectContentManagerException
session
- The JCR sessionparentNode
- the node which will contains the collection elementcollectionDescriptor
- The collection descriptorobjects
- The objects to insert
ObjectContentManagerException
- when it is not possible to insert the collectionvoid updateCollection(Session session, Node parentNode, CollectionDescriptor collectionDescriptor, ManageableObjects objects) throws ObjectContentManagerException
session
- The JCR sessionparentNode
- the node which will contains the collection elementcollectionDescriptor
- The collection descriptorobjects
- The objects to update
ObjectContentManagerException
- when it is not possible to update the collectionManageableObjects getCollection(Session session, Node parentNode, CollectionDescriptor collectionDescriptor, Class collectionFieldClass) throws ObjectContentManagerException
ManageableObjects
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 |