|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BeanConverter
Interface describing a custom bean converter.
Method Summary | |
---|---|
java.lang.Object |
getObject(javax.jcr.Session session,
javax.jcr.Node parentNode,
BeanDescriptor descriptor,
java.lang.Class beanClass)
Retrieve a bean from the repository. |
void |
insert(javax.jcr.Session session,
javax.jcr.Node parentNode,
BeanDescriptor descriptor,
java.lang.Object object)
Insert the object. |
void |
remove(javax.jcr.Session session,
javax.jcr.Node parentNode,
BeanDescriptor descriptor)
Remove the bean from the repository. |
void |
update(javax.jcr.Session session,
javax.jcr.Node parentNode,
BeanDescriptor descriptor,
java.lang.Object object)
Update repository from bean values. |
Method Detail |
---|
void insert(javax.jcr.Session session, javax.jcr.Node parentNode, BeanDescriptor descriptor, java.lang.Object object) throws PersistenceException, RepositoryException, JcrMappingException
session
- the JCR sessionparentNode
- The parent nodemapper
- available mappingsbeanName
- bean name to be inserterobject
- bean
PersistenceException
- thrown in case the insert fails; marks a failure due to logic of
the insert (parent node cannot be accessed, the insert fails, etc.)
RepositoryException
- thrown in case the underlying repository has thrown a
javax.jcr.RepositoryException
that is not possible to be handled or
wrapped in PersistenceException; marks a repository failure
JcrMappingException
- throws in case the mapping of the bean is not correctvoid update(javax.jcr.Session session, javax.jcr.Node parentNode, BeanDescriptor descriptor, java.lang.Object object) throws PersistenceException, RepositoryException, JcrMappingException
session
- the JCR sessionparentNode
- The parent nodemapper
- available mappingsbeanName
- bean name to be updatedobject
- bean
PersistenceException
- thrown in case the update fails; marks a failure due to logic
of update (parent node cannot be accessed, the update fails, etc.)
RepositoryException
- thrown in case the underlying repository has thrown a
javax.jcr.RepositoryException
that is not possible to be handled or
wrapped in PersistenceException; marks a repository failure
JcrMappingException
- throws in case the mapping of the bean is not correctjava.lang.Object getObject(javax.jcr.Session session, javax.jcr.Node parentNode, BeanDescriptor descriptor, java.lang.Class beanClass) throws PersistenceException, RepositoryException, JcrMappingException
session
- the JCR sessionparentNode
- The parent nodemapper
- available mappingsbeanName
- bean name to be retrievedbeanClass
- class of the bean to be retrieved
PersistenceException
- thrown in case the bean cannot be retrieved or initialized;
marks a failure due to logic of retrieval
RepositoryException
- thrown in case the underlying repository has thrown a
javax.jcr.RepositoryException
that is not possible to be handled or
wrapped in PersistenceException; marks a repository failure
JcrMappingException
- throws in case the mapping of the bean is not correctvoid remove(javax.jcr.Session session, javax.jcr.Node parentNode, BeanDescriptor descriptor) throws PersistenceException, RepositoryException, JcrMappingException
session
- the JCR sessionparentNode
- The parent nodemapper
- available mappingsbeanName
- bean name to be retrieved
PersistenceException
- thrown in case the bean cannot be removed;
marks a failure due to logic of removal
RepositoryException
- thrown in case the underlying repository has thrown a
javax.jcr.RepositoryException
that is not possible to be handled or
wrapped in PersistenceException; marks a repository failure
JcrMappingException
- throws in case the mapping of the bean is not correct
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |