@Named @ApplicationScoped public class NodeConverterService extends Object
| Constructor and Description |
|---|
NodeConverterService() |
| Modifier and Type | Method and Description |
|---|---|
javax.jcr.Value |
createValue(Object object,
javax.jcr.ValueFactory valueFactory)
Wrapper arround valueFactory createValue.
|
<E> void |
entityToNode(E entity,
javax.jcr.Node node) |
<E> javax.jcr.Node |
getOrCreateNode(E entity,
javax.jcr.Node parent) |
<E> E |
nodeToEntity(javax.jcr.Node n,
Class<E> clazz) |
public <E> E nodeToEntity(javax.jcr.Node n,
Class<E> clazz)
throws NodeConverterException
NodeConverterExceptionpublic javax.jcr.Value createValue(Object object, javax.jcr.ValueFactory valueFactory) throws javax.jcr.RepositoryException, NodeConverterException
object - valueFactory - javax.jcr.RepositoryExceptionNodeConverterExceptionpublic <E> javax.jcr.Node getOrCreateNode(@NotNull
E entity,
javax.jcr.Node parent)
throws NodeConverterException
NodeConverterExceptionpublic <E> void entityToNode(@NotNull
E entity,
@NotNull
javax.jcr.Node node)
throws NodeConverterException
NodeConverterExceptionCopyright © 2013. All rights reserved.