|
||||||||||
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 | |
---|---|
java.lang.Object |
getObject(javax.jcr.Session session,
java.lang.Class clazz,
java.lang.String path)
Retrieve an object from the JCR repo |
java.lang.Object |
getObject(javax.jcr.Session session,
java.lang.String path)
Retrieve an object from the JCR repo |
java.lang.String |
getPath(javax.jcr.Session session,
java.lang.Object object)
Get the object JCR path |
void |
insert(javax.jcr.Session session,
javax.jcr.Node parentNode,
java.lang.String nodeName,
java.lang.Object object)
Insert the object |
void |
insert(javax.jcr.Session session,
java.lang.Object object)
Insert the object |
void |
retrieveAllMappedAttributes(javax.jcr.Session session,
java.lang.Object object)
Retrieve all mapped attributes for the given persistent object. |
void |
retrieveMappedAttribute(javax.jcr.Session session,
java.lang.Object object,
java.lang.String attributeName)
Retrieve the specified attribute for the given persistent object. |
void |
update(javax.jcr.Session session,
javax.jcr.Node parentNode,
java.lang.String nodeName,
java.lang.Object object)
Update the object |
void |
update(javax.jcr.Session session,
java.lang.Object object)
Update the object |
Method Detail |
---|
void insert(javax.jcr.Session session, java.lang.Object object) throws PersistenceException
session
- the JCR sessionobject
- the object to insert
PersistenceException
- when it is not possible to insert the objectvoid update(javax.jcr.Session session, java.lang.Object object) throws PersistenceException
session
- the JCR sessionobject
- the object to update
PersistenceException
- when it is not possible to update the objectjava.lang.Object getObject(javax.jcr.Session session, java.lang.String path) throws PersistenceException
session
- The JCR sessionclazz
- The class assigned to the object to retrievepath
- the JCR path
PersistenceException
- when it is not possible to retrieve the objectjava.lang.Object getObject(javax.jcr.Session session, java.lang.Class clazz, java.lang.String path) throws PersistenceException
session
- The JCR sessionclazz
- The class assigned to the object to retrievepath
- the JCR path
PersistenceException
- when it is not possible to retrieve the objectvoid retrieveMappedAttribute(javax.jcr.Session session, java.lang.Object object, java.lang.String attributeName)
session
- The JCR sessionobject
- The persistent objectattributeName
- The name of the attribute to retrievevoid retrieveAllMappedAttributes(javax.jcr.Session session, java.lang.Object object)
session
- The JCR sessionobject
- The persistent objectvoid insert(javax.jcr.Session session, javax.jcr.Node parentNode, java.lang.String nodeName, java.lang.Object object) throws PersistenceException
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
PersistenceException
- when it is not possible to insert the objectvoid update(javax.jcr.Session session, javax.jcr.Node parentNode, java.lang.String nodeName, java.lang.Object object) throws PersistenceException
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
PersistenceException
- when it is not possible to update the objectjava.lang.String getPath(javax.jcr.Session session, java.lang.Object object) throws PersistenceException
session
- the JCR sessionobject
- the object for which the path has to be retrieve
PersistenceException
- when it is not possible to retrieve the object path
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |