Interface RowLCR

  • All Superinterfaces:
    LCR
    All Known Implementing Classes:
    DefaultRowLCR

    public interface RowLCR
    extends LCR
    The RowLCR interface encapsulates the information about a row logical change record (LCR). The row LCR is a logical change record that describes a change to the data in a single row that results from a data manipulation language (DML) statement or a piecewise LOB operation.
    You can choose to have a customized implementation of RowLCR by implementing this interface.

    See Also:
    AbstractLCR, DDLLCR
    • Method Detail

      • getOldValues

        ColumnValue[] getOldValues()
        Gets the list of old column values in a row LCR.
        These are the column values for the row before the DML change.
        If the DML statement is an UPDATE or a DELETE statement, then this parameter contains the values of columns in the row before the DML statement.
        If the DML statement is an INSERT statement, then there are no old values and NULL is returned. Note that the returned ColumnValue[] is mutable.
        Returns:
        A ColumnValue array contains the old column value
      • getNewValues

        ColumnValue[] getNewValues()
        Gets the list of new column values in a row LCR.
        These are the column values for the row after the DML change.
        If the DML statement is an UPDATE or an INSERT statement, then this parameter contains the values of columns in the row after the DML statement.
        If the DML statement is a DELETE statement, then there are no new values and NULL is returned.
        Note that the returned ColumnValue[] is mutable.
        Returns:
        A ColumnValue array contains the new column value
      • setOldValues

        void setOldValues​(ColumnValue[] oldValues)
        Sets the old column values list for a row LCR.
        If the DML statement is an UPDATE or a DELETE statement, then set this parameter to a non-NULL value.
        If the DML statement is an INSERT statement, then set this parameter to a NULL value.
        Parameters:
        oldValues - The old column value array
      • setNewValues

        void setNewValues​(ColumnValue[] newValues)
        Sets the new column values list for a row LCR.
        If the DML statement is an UPDATE or an INSERT statement, then set this parameter to a non-NULL value.
        If the DML statement is a DELETE statement, then set this parameter to a NULL value.
        Parameters:
        newValues - The new column value array
      • hasChunkData

        boolean hasChunkData()
        Indicates whether this LCR contains chunk data for LOB, LONG, or XMLTYPE columns.
        If an LCR contains chunk data for LOB, LONG, or XMLTYPE columns and must use the XStreamOUT APIs for chunking, then call this method to check whether the LCR contains chunk data and invoke the XStreamOut APIs for chunking accordingly.
        Returns:
        A boolean flag indicates if this LCR contains chunk data.
      • setChunkDataFlag

        void setChunkDataFlag​(boolean chunkDataFlag)
        Sets the chunkDataFlag.
        If an LCR contains chunk data for LOB, LONG, or XMLTYPE columns and must use the XStreamOUT APIs for chunking, then call this method to set the chunkDataFLag to true and invoke the XStreamOut APIs for chunking accordingly.
        Parameters:
        chunkDataFlag - indicates whether this LCR contains chunk data.