Class ErrorValue

  • All Implemented Interfaces:
    javax.jcr.Value

    public class ErrorValue
    extends Object
    implements javax.jcr.Value
    Instances of this class represent a Value which couldn't be retrieved. All its accessors throw a RepositoryException.
    • 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:
        getString in interface javax.jcr.Value
        Throws:
        javax.jcr.RepositoryException
      • getStream

        public InputStream getStream()
                              throws javax.jcr.RepositoryException
        Specified by:
        getStream in interface javax.jcr.Value
        Throws:
        javax.jcr.RepositoryException
      • getBinary

        public javax.jcr.Binary getBinary()
                                   throws javax.jcr.RepositoryException
        Specified by:
        getBinary in interface javax.jcr.Value
        Throws:
        javax.jcr.RepositoryException
      • getLong

        public long getLong()
                     throws javax.jcr.RepositoryException
        Specified by:
        getLong in interface javax.jcr.Value
        Throws:
        javax.jcr.RepositoryException
      • getDouble

        public double getDouble()
                         throws javax.jcr.RepositoryException
        Specified by:
        getDouble in interface javax.jcr.Value
        Throws:
        javax.jcr.RepositoryException
      • getDecimal

        public BigDecimal getDecimal()
                              throws javax.jcr.RepositoryException
        Specified by:
        getDecimal in interface javax.jcr.Value
        Throws:
        javax.jcr.RepositoryException
      • getDate

        public Calendar getDate()
                         throws javax.jcr.RepositoryException
        Specified by:
        getDate in interface javax.jcr.Value
        Throws:
        javax.jcr.RepositoryException
      • getBoolean

        public boolean getBoolean()
                           throws javax.jcr.RepositoryException
        Specified by:
        getBoolean in interface javax.jcr.Value
        Throws:
        javax.jcr.RepositoryException
      • getType

        public int getType()
        Specified by:
        getType in interface javax.jcr.Value