|
||||||||||
| 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(javax.jcr.Session session,
javax.jcr.Node parentNode,
CollectionDescriptor collectionDescriptor,
Class collectionFieldClass)
Get a ManageableObjects from the JCR repository |
void |
insertCollection(javax.jcr.Session session,
javax.jcr.Node parentNode,
CollectionDescriptor collectionDescriptor,
ManageableObjects objects)
Insert/convert collection elements (a Collection or a Map) into some JCR nodes |
boolean |
isNull(javax.jcr.Session session,
javax.jcr.Node parentNode,
CollectionDescriptor collectionDescriptor,
Class collectionFieldClass)
Check if the collection is null. |
void |
updateCollection(javax.jcr.Session session,
javax.jcr.Node parentNode,
CollectionDescriptor collectionDescriptor,
ManageableObjects objects)
Update collection elements (a Collection or a Map) already present in the JCR repository |
| Method Detail |
|---|
void insertCollection(javax.jcr.Session session,
javax.jcr.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 collection
void updateCollection(javax.jcr.Session session,
javax.jcr.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 collection
ManageableObjects getCollection(javax.jcr.Session session,
javax.jcr.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 collection
boolean isNull(javax.jcr.Session session,
javax.jcr.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 | |||||||||