Class ErrorValue
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.value.ErrorValue
-
- All Implemented Interfaces:
javax.jcr.Value
public class ErrorValue extends Object implements javax.jcr.Value
Instances of this class represent aValuewhich couldn't be retrieved. All its accessors throw aRepositoryException.
-
-
Constructor Summary
Constructors Constructor Description ErrorValue(Exception exception, int type)ErrorValue(javax.jcr.RepositoryException e)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.jcr.BinarygetBinary()booleangetBoolean()CalendargetDate()BigDecimalgetDecimal()doublegetDouble()longgetLong()InputStreamgetStream()StringgetString()intgetType()StringtoString()
-
-
-
Constructor Detail
-
ErrorValue
public ErrorValue(Exception exception, int type)
-
ErrorValue
public ErrorValue(javax.jcr.RepositoryException e)
-
-
Method Detail
-
getString
public String getString() throws javax.jcr.RepositoryException
- Specified by:
getStringin interfacejavax.jcr.Value- Throws:
javax.jcr.RepositoryException
-
getStream
public InputStream getStream() throws javax.jcr.RepositoryException
- Specified by:
getStreamin interfacejavax.jcr.Value- Throws:
javax.jcr.RepositoryException
-
getBinary
public javax.jcr.Binary getBinary() throws javax.jcr.RepositoryException- Specified by:
getBinaryin interfacejavax.jcr.Value- Throws:
javax.jcr.RepositoryException
-
getLong
public long getLong() throws javax.jcr.RepositoryException- Specified by:
getLongin interfacejavax.jcr.Value- Throws:
javax.jcr.RepositoryException
-
getDouble
public double getDouble() throws javax.jcr.RepositoryException- Specified by:
getDoublein interfacejavax.jcr.Value- Throws:
javax.jcr.RepositoryException
-
getDecimal
public BigDecimal getDecimal() throws javax.jcr.RepositoryException
- Specified by:
getDecimalin interfacejavax.jcr.Value- Throws:
javax.jcr.RepositoryException
-
getDate
public Calendar getDate() throws javax.jcr.RepositoryException
- Specified by:
getDatein interfacejavax.jcr.Value- Throws:
javax.jcr.RepositoryException
-
getBoolean
public boolean getBoolean() throws javax.jcr.RepositoryException- Specified by:
getBooleanin interfacejavax.jcr.Value- Throws:
javax.jcr.RepositoryException
-
getType
public int getType()
- Specified by:
getTypein interfacejavax.jcr.Value
-
-