Interface Record

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void cancelUpdate()
      Cancel the changes made to an appended record.
      String getJournalId()
      Return this record's journal identifier.
      String getProducerId()
      Return this record's producer identifier.
      long getRevision()
      Returns the revision this record represents.
      boolean readBoolean()
      Read a boolean from the underlying stream.
      byte readByte()
      Read a byte from the underlying stream.
      char readChar()
      Read a character from the underlying stream.
      void readFully​(byte[] b)
      Fully read an array of bytes from the underlying stream.
      int readInt()
      Read an integer from the underlying stream.
      long readLong()
      Read a long from the underlying stream.
      NodeId readNodeId()
      Read a NodeId from the underlying stream.
      org.apache.jackrabbit.spi.QNodeTypeDefinition readNodeTypeDef()
      Read a NodeTypeDef from the underlying stream.
      org.apache.jackrabbit.spi.Path readPath()
      Read a Path from the underlying stream.
      org.apache.jackrabbit.spi.Path readPathElement()
      Read a named path element from the underlying stream.
      org.apache.jackrabbit.spi.PrivilegeDefinition readPrivilegeDef()
      Read a PrivilegeDefinition from the underlying stream.
      PropertyId readPropertyId()
      Read a PropertyId from the underlying stream.
      org.apache.jackrabbit.spi.Name readQName()
      Read a Name frmo the underlying stream.
      String readString()
      Read a string from the underlying stream.
      long update()
      Update the changes made to an appended record.
      void write​(byte[] b)
      Write an array of bytes to the underlying stream.
      void writeBoolean​(boolean b)
      Write a boolean from the underlying stream.
      void writeByte​(int n)
      Write a byte to the underlying stream.
      void writeChar​(char c)
      Write a character to the underlying stream.
      void writeInt​(int n)
      Write an integer to the underlying stream.
      void writeLong​(long n)
      Write a long to the underlying stream.
      void writeNodeId​(NodeId nodeId)
      Write a NodeId to the underlying stream.
      void writeNodeTypeDef​(org.apache.jackrabbit.spi.QNodeTypeDefinition ntd)
      Write a NodeTypeDef to the underlying stream.
      void writePath​(org.apache.jackrabbit.spi.Path path)
      Write a Path to the underlying stream.
      void writePathElement​(org.apache.jackrabbit.spi.Path element)
      Write a Path.Element to the underlying stream.
      void writePrivilegeDef​(org.apache.jackrabbit.spi.PrivilegeDefinition privilegeDefinition)
      Write a PrivilegeDefinition to the underlying stream.
      void writePropertyId​(PropertyId propertyId)
      Write a PropertyId to the underlying stream.
      void writeQName​(org.apache.jackrabbit.spi.Name name)
      Write a Name to the underlying stream.
      void writeString​(String s)
      Write a string to the underlying stream.
    • Method Detail

      • getRevision

        long getRevision()
        Returns the revision this record represents.
        Returns:
        revision
      • getJournalId

        String getJournalId()
        Return this record's journal identifier.
        Returns:
        journal identifier
      • getProducerId

        String getProducerId()
        Return this record's producer identifier.
        Returns:
        producer identifier
      • readChar

        char readChar()
               throws JournalException
        Read a character from the underlying stream.
        Returns:
        character
        Throws:
        JournalException - if an error occurs
      • readBoolean

        boolean readBoolean()
                     throws JournalException
        Read a boolean from the underlying stream.
        Returns:
        boolean
        Throws:
        JournalException - if an error occurs
      • readFully

        void readFully​(byte[] b)
                throws JournalException
        Fully read an array of bytes from the underlying stream.
        Parameters:
        b - byte array
        Throws:
        JournalException - if an error occurs
      • readQName

        org.apache.jackrabbit.spi.Name readQName()
                                          throws JournalException
        Read a Name frmo the underlying stream.
        Returns:
        name name
        Throws:
        JournalException - if an error occurs
      • readPathElement

        org.apache.jackrabbit.spi.Path readPathElement()
                                                throws JournalException
        Read a named path element from the underlying stream.
        Returns:
        path element
        Throws:
        JournalException - if an error occurs
      • readPath

        org.apache.jackrabbit.spi.Path readPath()
                                         throws JournalException
        Read a Path from the underlying stream.
        Returns:
        path
        Throws:
        JournalException - if an error occurs
      • readNodeTypeDef

        org.apache.jackrabbit.spi.QNodeTypeDefinition readNodeTypeDef()
                                                               throws JournalException
        Read a NodeTypeDef from the underlying stream.
        Returns:
        node type definition
        Throws:
        JournalException - if an error occurs
      • readPrivilegeDef

        org.apache.jackrabbit.spi.PrivilegeDefinition readPrivilegeDef()
                                                                throws JournalException
        Read a PrivilegeDefinition from the underlying stream.
        Returns:
        privilege definition
        Throws:
        JournalException - if an error occurs
      • writeByte

        void writeByte​(int n)
                throws JournalException
        Write a byte to the underlying stream.
        Parameters:
        n - byte
        Throws:
        JournalException - if an error occurs
      • writeChar

        void writeChar​(char c)
                throws JournalException
        Write a character to the underlying stream.
        Parameters:
        c - character
        Throws:
        JournalException - if an error occurs
      • writeBoolean

        void writeBoolean​(boolean b)
                   throws JournalException
        Write a boolean from the underlying stream.
        Parameters:
        b - boolean
        Throws:
        JournalException - if an error occurs
      • writeInt

        void writeInt​(int n)
               throws JournalException
        Write an integer to the underlying stream.
        Parameters:
        n - integer
        Throws:
        JournalException - if an error occurs
      • writeLong

        void writeLong​(long n)
                throws JournalException
        Write a long to the underlying stream.
        Parameters:
        n - long
        Throws:
        JournalException - if an error occurs
      • writeString

        void writeString​(String s)
                  throws JournalException
        Write a string to the underlying stream.
        Parameters:
        s - string, may be null
        Throws:
        JournalException - if an error occurs
      • write

        void write​(byte[] b)
            throws JournalException
        Write an array of bytes to the underlying stream.
        Parameters:
        b - byte array
        Throws:
        JournalException - if an error occurs
      • writeQName

        void writeQName​(org.apache.jackrabbit.spi.Name name)
                 throws JournalException
        Write a Name to the underlying stream.
        Parameters:
        name - name
        Throws:
        JournalException - if an error occurs
      • writePathElement

        void writePathElement​(org.apache.jackrabbit.spi.Path element)
                       throws JournalException
        Write a Path.Element to the underlying stream.
        Parameters:
        element - path element
        Throws:
        JournalException - if an error occurs
      • writePath

        void writePath​(org.apache.jackrabbit.spi.Path path)
                throws JournalException
        Write a Path to the underlying stream.
        Parameters:
        path - path
        Throws:
        JournalException - if an error occurs
      • writeNodeId

        void writeNodeId​(NodeId nodeId)
                  throws JournalException
        Write a NodeId to the underlying stream.
        Parameters:
        nodeId - node id
        Throws:
        JournalException - if an error occurs
      • writePropertyId

        void writePropertyId​(PropertyId propertyId)
                      throws JournalException
        Write a PropertyId to the underlying stream.
        Parameters:
        propertyId - property id
        Throws:
        JournalException - if an error occurs
      • writeNodeTypeDef

        void writeNodeTypeDef​(org.apache.jackrabbit.spi.QNodeTypeDefinition ntd)
                       throws JournalException
        Write a NodeTypeDef to the underlying stream.
        Parameters:
        ntd - node type definition
        Throws:
        JournalException - if an error occurs
      • writePrivilegeDef

        void writePrivilegeDef​(org.apache.jackrabbit.spi.PrivilegeDefinition privilegeDefinition)
                        throws JournalException
        Write a PrivilegeDefinition to the underlying stream.
        Parameters:
        privilegeDefinition - privilege definition
        Throws:
        JournalException - if an error occurs
      • update

        long update()
             throws JournalException
        Update the changes made to an appended record. This will also update this record's revision.
        Returns:
        The update size in bytes.
        Throws:
        JournalException - if this record has not been appended, or if another error occurs
      • cancelUpdate

        void cancelUpdate()
        Cancel the changes made to an appended record.