Class TransactionRecord


  • public class TransactionRecord
    extends java.lang.Object
    • Constructor Detail

      • TransactionRecord

        public TransactionRecord​(TableIndex tableIndex,
                                 int recordId,
                                 int correlationId,
                                 int userId)
      • TransactionRecord

        public TransactionRecord​(TableIndex tableIndex,
                                 int recordId,
                                 int correlationId,
                                 int userId,
                                 boolean deleteRecord)
      • TransactionRecord

        public TransactionRecord​(TableIndex tableIndex,
                                 int recordId,
                                 int correlationId,
                                 int userId,
                                 boolean update,
                                 boolean deleteRecord,
                                 boolean strictChangeVerification)
      • TransactionRecord

        public TransactionRecord​(java.io.DataInputStream dataInputStream,
                                 DataBaseMapper dataBaseMapper)
                          throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • setModificationData

        public void setModificationData​(TableIndex tableIndex,
                                        boolean update,
                                        int userId)
      • setDeletionData

        public void setDeletionData​(TableIndex tableIndex,
                                    int userId)
      • addRecordValue

        public void addRecordValue​(ColumnIndex column,
                                   java.lang.Object value)
      • getRecordId

        public int getRecordId()
      • getCorrelationId

        public int getCorrelationId()
      • writeTransactionValue

        public void writeTransactionValue​(java.io.DataOutputStream dataOutputStream)
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • checkUnchangedRecordTransactionId

        public boolean checkUnchangedRecordTransactionId()
      • createIfNotExists

        public void createIfNotExists​(java.util.Map<java.lang.Integer,​java.lang.Integer> recordIdByCorrelationId)
      • persistChanges

        public void persistChanges​(long transactionId,
                                   java.util.Map<java.lang.Integer,​java.lang.Integer> recordIdByCorrelationId)
      • persistResolvedChanges

        public void persistResolvedChanges​(long transactionId,
                                           java.util.Map<java.lang.Integer,​java.lang.Integer> recordIdByCorrelationId)
      • processColumnChanges

        public void processColumnChanges​(long transactionId,
                                         java.util.Map<java.lang.Integer,​java.lang.Integer> recordIdByCorrelationId)