|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ObjectConverter
Convert any kind of beans into JCR nodes & properties
| Method Summary | |
|---|---|
CollectionConverter |
getCollectionConverter(javax.jcr.Session session,
CollectionDescriptor collectionDescriptor)
|
Object |
getObject(javax.jcr.Session session,
Class clazz,
String path)
Retrieve an object from the JCR repo |
Object |
getObject(javax.jcr.Session session,
String path)
Retrieve an object from the JCR repo |
String |
getPath(javax.jcr.Session session,
Object object)
Get the object JCR path |
void |
insert(javax.jcr.Session session,
javax.jcr.Node parentNode,
String nodeName,
Object object)
Insert the object |
void |
insert(javax.jcr.Session session,
Object object)
Insert the object |
void |
retrieveAllMappedAttributes(javax.jcr.Session session,
Object object)
Retrieve all mapped attributes for the given persistent object. |
void |
retrieveMappedAttribute(javax.jcr.Session session,
Object object,
String attributeName)
Retrieve the specified attribute for the given persistent object. |
void |
update(javax.jcr.Session session,
javax.jcr.Node objectNode,
Object object)
Update the object |
void |
update(javax.jcr.Session session,
javax.jcr.Node parentNode,
String nodeName,
Object object)
Update the object |
void |
update(javax.jcr.Session session,
Object object)
Update the object |
void |
update(javax.jcr.Session session,
String uuId,
Object object)
Update the object |
| Method Detail |
|---|
void insert(javax.jcr.Session session,
Object object)
throws ObjectContentManagerException
session - the JCR sessionobject - the object to insert
ObjectContentManagerException - when it is not possible to insert the object
void update(javax.jcr.Session session,
Object object)
throws ObjectContentManagerException
session - the JCR sessionobject - the object to update
ObjectContentManagerException - when it is not possible to update the object
Object getObject(javax.jcr.Session session,
String path)
throws ObjectContentManagerException
session - The JCR sessionpath - the JCR path
null when it does not exist at path
ObjectContentManagerException - when it is not possible to retrieve the object
Object getObject(javax.jcr.Session session,
Class clazz,
String path)
throws ObjectContentManagerException
session - The JCR sessionclazz - The class assigned to the object to retrievepath - the JCR path
null when it does not exist at path
ObjectContentManagerException - when it is not possible to retrieve the object
void retrieveMappedAttribute(javax.jcr.Session session,
Object object,
String attributeName)
session - The JCR sessionobject - The persistent objectattributeName - The name of the attribute to retrieve
void retrieveAllMappedAttributes(javax.jcr.Session session,
Object object)
session - The JCR sessionobject - The persistent object
void insert(javax.jcr.Session session,
javax.jcr.Node parentNode,
String nodeName,
Object object)
throws ObjectContentManagerException
session - the JCR sessionparentNode - The parent node used to store the new JCR element (object)nodeName - The node name used to store the objectobject - the object to insert
ObjectContentManagerException - when it is not possible to insert the object
void update(javax.jcr.Session session,
javax.jcr.Node objectNode,
Object object)
throws ObjectContentManagerException
session - the JCR sessionobjectNode - The node to store the objectobject - the object to update
ObjectContentManagerException - when it is not possible to update the object
void update(javax.jcr.Session session,
javax.jcr.Node parentNode,
String nodeName,
Object object)
throws ObjectContentManagerException
session - the JCR sessionparentNode - The parent node used to store the new JCR element (object)nodeName - The node name used to store the objectobject - the object to update
ObjectContentManagerException - when it is not possible to update the object
void update(javax.jcr.Session session,
String uuId,
Object object)
session - the JCR sessionuuId - The UUID of the node to get updated.object - the object to update
ObjectContentManagerException - when it is not possible to update the object
String getPath(javax.jcr.Session session,
Object object)
throws ObjectContentManagerException
session - the JCR sessionobject - the object for which the path has to be retrieve
ObjectContentManagerException - when it is not possible to retrieve the object path
CollectionConverter getCollectionConverter(javax.jcr.Session session,
CollectionDescriptor collectionDescriptor)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||