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
ConstructorsConstructorDescriptionTxnRecord(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 aTxnRecordrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongamount()Returns the value of theamountrecord component.intReturns the value of thebatchIndexrecord component.longbatchSeq()Returns the value of thebatchSeqrecord component.byte[]Returns the value of thecachedDigestrecord component.longReturns the value of thecrAvailablerecord component.intcrc32()Returns the value of thecrc32record component.longReturns the value of thecrCreditsPostedrecord component.longReturns the value of thecrDebitsPostedrecord component.longcreditHi()Returns the value of thecreditHirecord component.longcreditLo()Returns the value of thecreditLorecord component.intcurrency()Returns the value of thecurrencyrecord component.longdebitHi()Returns the value of thedebitHirecord component.longdebitLo()Returns the value of thedebitLorecord component.booleanReturns the value of thedigestValidrecord component.longReturns the value of thedrAvailablerecord component.longReturns the value of thedrCreditsPostedrecord component.longReturns the value of thedrDebitsPostedrecord component.final booleanIndicates whether some other object is "equal to" this one.byteflags()Returns the value of theflagsrecord component.final inthashCode()Returns a hash code value for this object.intledgerId()Returns the value of theledgerIdrecord component.bytephase()Returns the value of thephaserecord component.intReturns the value of therejectReasonCoderecord component.intReturns the value of theresultCoderecord component.longsourceId()Returns the value of thesourceIdrecord component.longReturns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetransferHirecord component.longReturns the value of thetransferLorecord component.txnId()Returns the value of thetxnIdrecord component.inttxnIdLen()Returns the value of thetxnIdLenrecord component.
-
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 aTxnRecordrecord class.- Parameters:
transferHi- the value for thetransferHirecord componenttransferLo- the value for thetransferLorecord componentdebitHi- the value for thedebitHirecord componentdebitLo- the value for thedebitLorecord componentcreditHi- the value for thecreditHirecord componentcreditLo- the value for thecreditLorecord componentsourceId- the value for thesourceIdrecord componentbatchSeq- the value for thebatchSeqrecord componenttimestamp- the value for thetimestamprecord componentamount- the value for theamountrecord componentledgerId- the value for theledgerIdrecord componentcrc32- the value for thecrc32record componenttxnId- the value for thetxnIdrecord componenttxnIdLen- the value for thetxnIdLenrecord componentphase- the value for thephaserecord componentflags- the value for theflagsrecord componentresultCode- the value for theresultCoderecord componentdrCreditsPosted- the value for thedrCreditsPostedrecord componentdrDebitsPosted- the value for thedrDebitsPostedrecord componentcrCreditsPosted- the value for thecrCreditsPostedrecord componentcrDebitsPosted- the value for thecrDebitsPostedrecord componentdrAvailable- the value for thedrAvailablerecord componentcrAvailable- the value for thecrAvailablerecord componentcachedDigest- the value for thecachedDigestrecord componentdigestValid- the value for thedigestValidrecord componentbatchIndex- the value for thebatchIndexrecord componentrejectReasonCode- the value for therejectReasonCoderecord componentcurrency- the value for thecurrencyrecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
transferHi
public long transferHi()Returns the value of thetransferHirecord component.- Returns:
- the value of the
transferHirecord component
-
transferLo
public long transferLo()Returns the value of thetransferLorecord component.- Returns:
- the value of the
transferLorecord component
-
debitHi
public long debitHi()Returns the value of thedebitHirecord component.- Returns:
- the value of the
debitHirecord component
-
debitLo
public long debitLo()Returns the value of thedebitLorecord component.- Returns:
- the value of the
debitLorecord component
-
creditHi
public long creditHi()Returns the value of thecreditHirecord component.- Returns:
- the value of the
creditHirecord component
-
creditLo
public long creditLo()Returns the value of thecreditLorecord component.- Returns:
- the value of the
creditLorecord component
-
sourceId
public long sourceId()Returns the value of thesourceIdrecord component.- Returns:
- the value of the
sourceIdrecord component
-
batchSeq
public long batchSeq()Returns the value of thebatchSeqrecord component.- Returns:
- the value of the
batchSeqrecord component
-
timestamp
public long timestamp()Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-
amount
public long amount()Returns the value of theamountrecord component.- Returns:
- the value of the
amountrecord component
-
ledgerId
public int ledgerId()Returns the value of theledgerIdrecord component.- Returns:
- the value of the
ledgerIdrecord component
-
crc32
public int crc32()Returns the value of thecrc32record component.- Returns:
- the value of the
crc32record component
-
txnId
Returns the value of thetxnIdrecord component.- Returns:
- the value of the
txnIdrecord component
-
txnIdLen
public int txnIdLen()Returns the value of thetxnIdLenrecord component.- Returns:
- the value of the
txnIdLenrecord component
-
phase
public byte phase()Returns the value of thephaserecord component.- Returns:
- the value of the
phaserecord component
-
flags
public byte flags()Returns the value of theflagsrecord component.- Returns:
- the value of the
flagsrecord component
-
resultCode
public int resultCode()Returns the value of theresultCoderecord component.- Returns:
- the value of the
resultCoderecord component
-
drCreditsPosted
public long drCreditsPosted()Returns the value of thedrCreditsPostedrecord component.- Returns:
- the value of the
drCreditsPostedrecord component
-
drDebitsPosted
public long drDebitsPosted()Returns the value of thedrDebitsPostedrecord component.- Returns:
- the value of the
drDebitsPostedrecord component
-
crCreditsPosted
public long crCreditsPosted()Returns the value of thecrCreditsPostedrecord component.- Returns:
- the value of the
crCreditsPostedrecord component
-
crDebitsPosted
public long crDebitsPosted()Returns the value of thecrDebitsPostedrecord component.- Returns:
- the value of the
crDebitsPostedrecord component
-
drAvailable
public long drAvailable()Returns the value of thedrAvailablerecord component.- Returns:
- the value of the
drAvailablerecord component
-
crAvailable
public long crAvailable()Returns the value of thecrAvailablerecord component.- Returns:
- the value of the
crAvailablerecord component
-
cachedDigest
public byte[] cachedDigest()Returns the value of thecachedDigestrecord component.- Returns:
- the value of the
cachedDigestrecord component
-
digestValid
public boolean digestValid()Returns the value of thedigestValidrecord component.- Returns:
- the value of the
digestValidrecord component
-
batchIndex
public int batchIndex()Returns the value of thebatchIndexrecord component.- Returns:
- the value of the
batchIndexrecord component
-
rejectReasonCode
public int rejectReasonCode()Returns the value of therejectReasonCoderecord component.- Returns:
- the value of the
rejectReasonCoderecord component
-
currency
public int currency()Returns the value of thecurrencyrecord component.- Returns:
- the value of the
currencyrecord component
-