public class JcrPropertyMapCacheEntry extends Object
| Constructor and Description |
|---|
JcrPropertyMapCacheEntry(Object value,
javax.jcr.Node node)
Create a new cache entry from a value.
|
JcrPropertyMapCacheEntry(javax.jcr.Property prop)
Create a new cache entry from a property.
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
convertToType(Class<T> type,
javax.jcr.Node node,
ClassLoader dynamicClassLoader)
Convert the default value to the given type
|
Object |
getPropertyValue()
Get the current property value.
|
Object |
getPropertyValueOrNull()
Get the current property value.
|
boolean |
isArray()
Whether this value is an array or not
|
public JcrPropertyMapCacheEntry(javax.jcr.Property prop)
throws javax.jcr.RepositoryException
prop - the propertyjavax.jcr.RepositoryException - if the provided property cannot be converted to a Java Objectpublic JcrPropertyMapCacheEntry(Object value, javax.jcr.Node node) throws javax.jcr.RepositoryException
value - the valuenode - the nodejavax.jcr.RepositoryException - if the provided value cannot be storedpublic boolean isArray()
true if an array.public Object getPropertyValue() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException - If something goes wrongpublic Object getPropertyValueOrNull()
null if not possible.public <T> T convertToType(Class<T> type, javax.jcr.Node node, ClassLoader dynamicClassLoader)
T - The typetype - The type classnode - The nodedynamicClassLoader - The classloaderCopyright © 2007–2018 The Apache Software Foundation. All rights reserved.