|
||||||||||
| 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 | |
|---|---|
Object |
getObject(javax.jcr.Session session,
javax.jcr.Node parentNode,
BeanDescriptor beanDescriptor,
ClassDescriptor beanClassDescriptor,
Class beanClass,
Object parent)
Retrieve a bean from the repository. |
String |
getPath(javax.jcr.Session session,
BeanDescriptor beanDescriptor,
javax.jcr.Node parentNode)
Get the bean path. |
void |
insert(javax.jcr.Session session,
javax.jcr.Node parentNode,
BeanDescriptor beanDescriptor,
ClassDescriptor beanClassDescriptor,
Object bean,
ClassDescriptor parentClassDescriptor,
Object parent)
Insert the object. |
void |
remove(javax.jcr.Session session,
javax.jcr.Node parentNode,
BeanDescriptor beanDescriptor,
ClassDescriptor beanClassDescriptor,
Object bean,
ClassDescriptor parentClassDescriptor,
Object parent)
Remove the bean from the repository. |
void |
update(javax.jcr.Session session,
javax.jcr.Node parentNode,
BeanDescriptor beanDescriptor,
ClassDescriptor beanClassDescriptor,
Object bean,
ClassDescriptor parentClassDescriptor,
Object parent)
Update repository from bean values. |
| Method Detail |
|---|
void insert(javax.jcr.Session session,
javax.jcr.Node parentNode,
BeanDescriptor beanDescriptor,
ClassDescriptor beanClassDescriptor,
Object bean,
ClassDescriptor parentClassDescriptor,
Object parent)
throws ObjectContentManagerException,
RepositoryException,
JcrMappingException
session - the JCR sessionparentNode - The node which will contain the converter beanbeanDescriptor - The bean descriptorbeanClassDescriptor - the Class Descriptor associated to the bean to insertbean - the bean to convert( insert into the JCR structure)parentClassDescriptor - The Class Descriptor associated to the parent objectparent - the object which will contain the bean to convert
ObjectContentManagerException - 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 ObjectContentManagerException; marks a repository failure
JcrMappingException - throws in case the mapping of the bean is not correct
void update(javax.jcr.Session session,
javax.jcr.Node parentNode,
BeanDescriptor beanDescriptor,
ClassDescriptor beanClassDescriptor,
Object bean,
ClassDescriptor parentClassDescriptor,
Object parent)
throws ObjectContentManagerException,
RepositoryException,
JcrMappingException
session - the JCR sessionparentNode - The node which will contain the converter beanbeanDescriptor - The bean descriptorbeanClassDescriptor - the Class Descriptor associated to the bean to updatebean - the bean to convert( insert into the JCR structure)parentClassDescriptor - The Class Descriptor associated to the parent objectparent - the object which will contain the bean to convert
ObjectContentManagerException - 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 ObjectContentManagerException; marks a repository failure
JcrMappingException - throws in case the mapping of the bean is not correct
Object getObject(javax.jcr.Session session,
javax.jcr.Node parentNode,
BeanDescriptor beanDescriptor,
ClassDescriptor beanClassDescriptor,
Class beanClass,
Object parent)
throws ObjectContentManagerException,
RepositoryException,
JcrMappingException
session - the JCR sessionparentNode - The parent nodebeanDescriptor - The bean descriptorbeanClassDescriptor - the Class Descriptor associated to the bean to insertbeanClass - The bean Classparent - The parent which contain the bean to retrieve
ObjectContentManagerException - 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 ObjectContentManagerException; marks a repository failure
JcrMappingException - throws in case the mapping of the bean is not correct
void remove(javax.jcr.Session session,
javax.jcr.Node parentNode,
BeanDescriptor beanDescriptor,
ClassDescriptor beanClassDescriptor,
Object bean,
ClassDescriptor parentClassDescriptor,
Object parent)
throws ObjectContentManagerException,
RepositoryException,
JcrMappingException
session - the JCR sessionparentNode - The node which will contain the converter beanbeanDescriptor - The bean descriptorbeanClassDescriptor - the Class Descriptor associated to the bean to updatebean - the bean to convert( insert into the JCR structure)parentClassDescriptor - The Class Descriptor associated to the parent objectparent - the object which contains the bean to convert
ObjectContentManagerException - 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 ObjectContentManagerException; marks a repository failure
JcrMappingException - throws in case the mapping of the bean is not correct
String getPath(javax.jcr.Session session,
BeanDescriptor beanDescriptor,
javax.jcr.Node parentNode)
throws ObjectContentManagerException
ParentBeanConverterImpl is a good example.
session - the JCR sessionbeanDescriptor - The descriptor of the bean to convertparentNode - the node which contain this bean (its corresponfing subnode)
RepositoryException - thrown in case the underlying repository has thrown a
javax.jcr.RepositoryException that is not possible to be handled or
wrapped in ObjectContentManagerException; marks a repository failure
ObjectContentManagerException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||