@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
NodeConverterException
public javax.jcr.Value createValue(Object object, javax.jcr.ValueFactory valueFactory) throws javax.jcr.RepositoryException, NodeConverterException
object
- valueFactory
- javax.jcr.RepositoryException
NodeConverterException
public <E> javax.jcr.Node getOrCreateNode(@NotNull E entity, javax.jcr.Node parent) throws NodeConverterException
NodeConverterException
public <E> void entityToNode(@NotNull E entity, @NotNull javax.jcr.Node node) throws NodeConverterException
NodeConverterException
Copyright © 2013. All rights reserved.