Package com.tuladb

Record Class Models.TxnRecord

java.lang.Object
java.lang.Record
com.tuladb.Models.TxnRecord
Enclosing class:
Models

public static record Models.TxnRecord(long transferHi, long transferLo, long debitHi, long debitLo, long creditHi, long creditLo, long sourceId, long batchSeq, long timestamp, long amount, int ledgerId, int crc32, String txnId, int txnIdLen, byte phase, byte flags, int resultCode, long drCreditsPosted, long drDebitsPosted, long crCreditsPosted, long crDebitsPosted, long drAvailable, long crAvailable, byte[] cachedDigest, boolean digestValid, int batchIndex, int rejectReasonCode, int currency) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    TxnRecord(long transferHi, long transferLo, long debitHi, long debitLo, long creditHi, long creditLo, long sourceId, long batchSeq, long timestamp, long amount, int ledgerId, int crc32, String txnId, int txnIdLen, byte phase, byte flags, int resultCode, long drCreditsPosted, long drDebitsPosted, long crCreditsPosted, long crDebitsPosted, long drAvailable, long crAvailable, byte[] cachedDigest, boolean digestValid, int batchIndex, int rejectReasonCode, int currency)
    Creates an instance of a TxnRecord record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Returns the value of the amount record component.
    int
    Returns the value of the batchIndex record component.
    long
    Returns the value of the batchSeq record component.
    byte[]
    Returns the value of the cachedDigest record component.
    long
    Returns the value of the crAvailable record component.
    int
    Returns the value of the crc32 record component.
    long
    Returns the value of the crCreditsPosted record component.
    long
    Returns the value of the crDebitsPosted record component.
    long
    Returns the value of the creditHi record component.
    long
    Returns the value of the creditLo record component.
    int
    Returns the value of the currency record component.
    long
    Returns the value of the debitHi record component.
    long
    Returns the value of the debitLo record component.
    boolean
    Returns the value of the digestValid record component.
    long
    Returns the value of the drAvailable record component.
    long
    Returns the value of the drCreditsPosted record component.
    long
    Returns the value of the drDebitsPosted record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    byte
    Returns the value of the flags record component.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the ledgerId record component.
    byte
    Returns the value of the phase record component.
    int
    Returns the value of the rejectReasonCode record component.
    int
    Returns the value of the resultCode record component.
    long
    Returns the value of the sourceId record component.
    long
    Returns the value of the timestamp record component.
    final String
    Returns a string representation of this record class.
    long
    Returns the value of the transferHi record component.
    long
    Returns the value of the transferLo record component.
    Returns the value of the txnId record component.
    int
    Returns the value of the txnIdLen record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • TxnRecord

      public TxnRecord(long transferHi, long transferLo, long debitHi, long debitLo, long creditHi, long creditLo, long sourceId, long batchSeq, long timestamp, long amount, int ledgerId, int crc32, String txnId, int txnIdLen, byte phase, byte flags, int resultCode, long drCreditsPosted, long drDebitsPosted, long crCreditsPosted, long crDebitsPosted, long drAvailable, long crAvailable, byte[] cachedDigest, boolean digestValid, int batchIndex, int rejectReasonCode, int currency)
      Creates an instance of a TxnRecord record class.
      Parameters:
      transferHi - the value for the transferHi record component
      transferLo - the value for the transferLo record component
      debitHi - the value for the debitHi record component
      debitLo - the value for the debitLo record component
      creditHi - the value for the creditHi record component
      creditLo - the value for the creditLo record component
      sourceId - the value for the sourceId record component
      batchSeq - the value for the batchSeq record component
      timestamp - the value for the timestamp record component
      amount - the value for the amount record component
      ledgerId - the value for the ledgerId record component
      crc32 - the value for the crc32 record component
      txnId - the value for the txnId record component
      txnIdLen - the value for the txnIdLen record component
      phase - the value for the phase record component
      flags - the value for the flags record component
      resultCode - the value for the resultCode record component
      drCreditsPosted - the value for the drCreditsPosted record component
      drDebitsPosted - the value for the drDebitsPosted record component
      crCreditsPosted - the value for the crCreditsPosted record component
      crDebitsPosted - the value for the crDebitsPosted record component
      drAvailable - the value for the drAvailable record component
      crAvailable - the value for the crAvailable record component
      cachedDigest - the value for the cachedDigest record component
      digestValid - the value for the digestValid record component
      batchIndex - the value for the batchIndex record component
      rejectReasonCode - the value for the rejectReasonCode record component
      currency - the value for the currency record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • transferHi

      public long transferHi()
      Returns the value of the transferHi record component.
      Returns:
      the value of the transferHi record component
    • transferLo

      public long transferLo()
      Returns the value of the transferLo record component.
      Returns:
      the value of the transferLo record component
    • debitHi

      public long debitHi()
      Returns the value of the debitHi record component.
      Returns:
      the value of the debitHi record component
    • debitLo

      public long debitLo()
      Returns the value of the debitLo record component.
      Returns:
      the value of the debitLo record component
    • creditHi

      public long creditHi()
      Returns the value of the creditHi record component.
      Returns:
      the value of the creditHi record component
    • creditLo

      public long creditLo()
      Returns the value of the creditLo record component.
      Returns:
      the value of the creditLo record component
    • sourceId

      public long sourceId()
      Returns the value of the sourceId record component.
      Returns:
      the value of the sourceId record component
    • batchSeq

      public long batchSeq()
      Returns the value of the batchSeq record component.
      Returns:
      the value of the batchSeq record component
    • timestamp

      public long timestamp()
      Returns the value of the timestamp record component.
      Returns:
      the value of the timestamp record component
    • amount

      public long amount()
      Returns the value of the amount record component.
      Returns:
      the value of the amount record component
    • ledgerId

      public int ledgerId()
      Returns the value of the ledgerId record component.
      Returns:
      the value of the ledgerId record component
    • crc32

      public int crc32()
      Returns the value of the crc32 record component.
      Returns:
      the value of the crc32 record component
    • txnId

      public String txnId()
      Returns the value of the txnId record component.
      Returns:
      the value of the txnId record component
    • txnIdLen

      public int txnIdLen()
      Returns the value of the txnIdLen record component.
      Returns:
      the value of the txnIdLen record component
    • phase

      public byte phase()
      Returns the value of the phase record component.
      Returns:
      the value of the phase record component
    • flags

      public byte flags()
      Returns the value of the flags record component.
      Returns:
      the value of the flags record component
    • resultCode

      public int resultCode()
      Returns the value of the resultCode record component.
      Returns:
      the value of the resultCode record component
    • drCreditsPosted

      public long drCreditsPosted()
      Returns the value of the drCreditsPosted record component.
      Returns:
      the value of the drCreditsPosted record component
    • drDebitsPosted

      public long drDebitsPosted()
      Returns the value of the drDebitsPosted record component.
      Returns:
      the value of the drDebitsPosted record component
    • crCreditsPosted

      public long crCreditsPosted()
      Returns the value of the crCreditsPosted record component.
      Returns:
      the value of the crCreditsPosted record component
    • crDebitsPosted

      public long crDebitsPosted()
      Returns the value of the crDebitsPosted record component.
      Returns:
      the value of the crDebitsPosted record component
    • drAvailable

      public long drAvailable()
      Returns the value of the drAvailable record component.
      Returns:
      the value of the drAvailable record component
    • crAvailable

      public long crAvailable()
      Returns the value of the crAvailable record component.
      Returns:
      the value of the crAvailable record component
    • cachedDigest

      public byte[] cachedDigest()
      Returns the value of the cachedDigest record component.
      Returns:
      the value of the cachedDigest record component
    • digestValid

      public boolean digestValid()
      Returns the value of the digestValid record component.
      Returns:
      the value of the digestValid record component
    • batchIndex

      public int batchIndex()
      Returns the value of the batchIndex record component.
      Returns:
      the value of the batchIndex record component
    • rejectReasonCode

      public int rejectReasonCode()
      Returns the value of the rejectReasonCode record component.
      Returns:
      the value of the rejectReasonCode record component
    • currency

      public int currency()
      Returns the value of the currency record component.
      Returns:
      the value of the currency record component