Class SavingsAccountTransactionDataV1
java.lang.Object
org.apache.avro.specific.SpecificRecordBase
org.apache.fineract.avro.savings.v1.SavingsAccountTransactionDataV1
- All Implemented Interfaces:
Externalizable,Serializable,Comparable<org.apache.avro.specific.SpecificRecord>,org.apache.avro.generic.GenericContainer,org.apache.avro.generic.GenericRecord,org.apache.avro.generic.IndexedRecord,org.apache.avro.specific.SpecificRecord,ByteBufferSerializable
public class SavingsAccountTransactionDataV1
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord, ByteBufferSerializable
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRecordBuilder for SavingsAccountTransactionDataV1 instances. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.SavingsAccountTransactionDataV1(Long id, SavingsAccountTransactionEnumDataV1 transactionType, Long accountId, String accountNo, String date, CurrencyDataV1 currency, PaymentDetailDataV1 paymentDetailData, BigDecimal amount, BigDecimal outstandingChargeAmount, BigDecimal runningBalance, Boolean reversed, AccountTransferDataV1 transfer, String submittedOnDate, Boolean interestedPostedAsOn, String submittedByUsername, String note, Boolean isManualTransaction, Boolean isReversal, String originalTransactionId, Boolean lienTransaction, Long releaseTransactionId, String reasonForBlock, List<SavingsAccountChargesPaidByDataV1> chargesPaidByData) All-args constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.avro.message.BinaryMessageDecoder<SavingsAccountTransactionDataV1> createDecoder(org.apache.avro.message.SchemaStore resolver) Create a new BinaryMessageDecoder instance for this class that uses the specifiedSchemaStore.Deserializes a SavingsAccountTransactionDataV1 from a ByteBuffer.get(int field$) Gets the value of the 'accountId' field.Gets the value of the 'accountNo' field.Gets the value of the 'amount' field.Gets the value of the 'chargesPaidByData' field.static org.apache.avro.SchemaGets the value of the 'currency' field.getDate()Gets the value of the 'date' field.static org.apache.avro.message.BinaryMessageDecoder<SavingsAccountTransactionDataV1> Return the BinaryMessageDecoder instance used by this class.static org.apache.avro.message.BinaryMessageEncoder<SavingsAccountTransactionDataV1> Return the BinaryMessageEncoder instance used by this class.getId()Gets the value of the 'id' field.Gets the value of the 'interestedPostedAsOn' field.Gets the value of the 'isManualTransaction' field.Gets the value of the 'isReversal' field.Gets the value of the 'lienTransaction' field.getNote()Gets the value of the 'note' field.Gets the value of the 'originalTransactionId' field.Gets the value of the 'outstandingChargeAmount' field.Gets the value of the 'paymentDetailData' field.Gets the value of the 'reasonForBlock' field.Gets the value of the 'releaseTransactionId' field.Gets the value of the 'reversed' field.Gets the value of the 'runningBalance' field.org.apache.avro.Schemaorg.apache.avro.specific.SpecificDataGets the value of the 'submittedByUsername' field.Gets the value of the 'submittedOnDate' field.Gets the value of the 'transactionType' field.Gets the value of the 'transfer' field.Creates a new SavingsAccountTransactionDataV1 RecordBuilder.Creates a new SavingsAccountTransactionDataV1 RecordBuilder by copying an existing SavingsAccountTransactionDataV1 instance.Creates a new SavingsAccountTransactionDataV1 RecordBuilder by copying an existing Builder.voidvoidvoidsetAccountId(Long value) Sets the value of the 'accountId' field.voidsetAccountNo(String value) Sets the value of the 'accountNo' field.voidsetAmount(BigDecimal value) Sets the value of the 'amount' field.voidSets the value of the 'chargesPaidByData' field.voidsetCurrency(CurrencyDataV1 value) Sets the value of the 'currency' field.voidSets the value of the 'date' field.voidSets the value of the 'id' field.voidsetInterestedPostedAsOn(Boolean value) Sets the value of the 'interestedPostedAsOn' field.voidsetIsManualTransaction(Boolean value) Sets the value of the 'isManualTransaction' field.voidsetIsReversal(Boolean value) Sets the value of the 'isReversal' field.voidsetLienTransaction(Boolean value) Sets the value of the 'lienTransaction' field.voidSets the value of the 'note' field.voidsetOriginalTransactionId(String value) Sets the value of the 'originalTransactionId' field.voidSets the value of the 'outstandingChargeAmount' field.voidSets the value of the 'paymentDetailData' field.voidsetReasonForBlock(String value) Sets the value of the 'reasonForBlock' field.voidsetReleaseTransactionId(Long value) Sets the value of the 'releaseTransactionId' field.voidsetReversed(Boolean value) Sets the value of the 'reversed' field.voidsetRunningBalance(BigDecimal value) Sets the value of the 'runningBalance' field.voidsetSubmittedByUsername(String value) Sets the value of the 'submittedByUsername' field.voidsetSubmittedOnDate(String value) Sets the value of the 'submittedOnDate' field.voidSets the value of the 'transactionType' field.voidsetTransfer(AccountTransferDataV1 value) Sets the value of the 'transfer' field.Serializes this SavingsAccountTransactionDataV1 to a ByteBuffer.voidMethods inherited from class org.apache.avro.specific.SpecificRecordBase
compareTo, customDecode, customEncode, equals, get, getConversion, getConversion, hasCustomCoders, hashCode, put, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.avro.generic.GenericRecord
hasField
-
Field Details
-
SCHEMA$
public static final org.apache.avro.Schema SCHEMA$
-
-
Constructor Details
-
SavingsAccountTransactionDataV1
public SavingsAccountTransactionDataV1()Default constructor. Note that this does not initialize fields to their default values from the schema. If that is desired then one should usenewBuilder(). -
SavingsAccountTransactionDataV1
public SavingsAccountTransactionDataV1(Long id, SavingsAccountTransactionEnumDataV1 transactionType, Long accountId, String accountNo, String date, CurrencyDataV1 currency, PaymentDetailDataV1 paymentDetailData, BigDecimal amount, BigDecimal outstandingChargeAmount, BigDecimal runningBalance, Boolean reversed, AccountTransferDataV1 transfer, String submittedOnDate, Boolean interestedPostedAsOn, String submittedByUsername, String note, Boolean isManualTransaction, Boolean isReversal, String originalTransactionId, Boolean lienTransaction, Long releaseTransactionId, String reasonForBlock, List<SavingsAccountChargesPaidByDataV1> chargesPaidByData) All-args constructor.- Parameters:
id- The new value for idtransactionType- The new value for transactionTypeaccountId- The new value for accountIdaccountNo- The new value for accountNodate- The new value for datecurrency- The new value for currencypaymentDetailData- The new value for paymentDetailDataamount- The new value for amountoutstandingChargeAmount- The new value for outstandingChargeAmountrunningBalance- The new value for runningBalancereversed- The new value for reversedtransfer- The new value for transfersubmittedOnDate- The new value for submittedOnDateinterestedPostedAsOn- The new value for interestedPostedAsOnsubmittedByUsername- The new value for submittedByUsernamenote- The new value for noteisManualTransaction- The new value for isManualTransactionisReversal- The new value for isReversaloriginalTransactionId- The new value for originalTransactionIdlienTransaction- The new value for lienTransactionreleaseTransactionId- The new value for releaseTransactionIdreasonForBlock- The new value for reasonForBlockchargesPaidByData- The new value for chargesPaidByData
-
-
Method Details
-
getClassSchema
public static org.apache.avro.Schema getClassSchema() -
getEncoder
public static org.apache.avro.message.BinaryMessageEncoder<SavingsAccountTransactionDataV1> getEncoder()Return the BinaryMessageEncoder instance used by this class.- Returns:
- the message encoder used by this class
-
getDecoder
public static org.apache.avro.message.BinaryMessageDecoder<SavingsAccountTransactionDataV1> getDecoder()Return the BinaryMessageDecoder instance used by this class.- Returns:
- the message decoder used by this class
-
createDecoder
public static org.apache.avro.message.BinaryMessageDecoder<SavingsAccountTransactionDataV1> createDecoder(org.apache.avro.message.SchemaStore resolver) Create a new BinaryMessageDecoder instance for this class that uses the specifiedSchemaStore.- Parameters:
resolver- aSchemaStoreused to find schemas by fingerprint- Returns:
- a BinaryMessageDecoder instance for this class backed by the given SchemaStore
-
toByteBuffer
Serializes this SavingsAccountTransactionDataV1 to a ByteBuffer.- Specified by:
toByteBufferin interfaceByteBufferSerializable- Returns:
- a buffer holding the serialized data for this instance
- Throws:
IOException- if this instance could not be serialized
-
fromByteBuffer
Deserializes a SavingsAccountTransactionDataV1 from a ByteBuffer.- Parameters:
b- a byte buffer holding serialized data for an instance of this class- Returns:
- a SavingsAccountTransactionDataV1 instance decoded from the given buffer
- Throws:
IOException- if the given bytes could not be deserialized into an instance of this class
-
getSpecificData
public org.apache.avro.specific.SpecificData getSpecificData()- Overrides:
getSpecificDatain classorg.apache.avro.specific.SpecificRecordBase
-
getSchema
public org.apache.avro.Schema getSchema()- Specified by:
getSchemain interfaceorg.apache.avro.generic.GenericContainer
-
get
- Specified by:
getin interfaceorg.apache.avro.generic.IndexedRecord
-
put
- Specified by:
putin interfaceorg.apache.avro.generic.IndexedRecord
-
getId
Gets the value of the 'id' field.- Returns:
- The value of the 'id' field.
-
setId
Sets the value of the 'id' field.- Parameters:
value- the value to set.
-
getTransactionType
Gets the value of the 'transactionType' field.- Returns:
- The value of the 'transactionType' field.
-
setTransactionType
Sets the value of the 'transactionType' field.- Parameters:
value- the value to set.
-
getAccountId
Gets the value of the 'accountId' field.- Returns:
- The value of the 'accountId' field.
-
setAccountId
Sets the value of the 'accountId' field.- Parameters:
value- the value to set.
-
getAccountNo
Gets the value of the 'accountNo' field.- Returns:
- The value of the 'accountNo' field.
-
setAccountNo
Sets the value of the 'accountNo' field.- Parameters:
value- the value to set.
-
getDate
Gets the value of the 'date' field.- Returns:
- The value of the 'date' field.
-
setDate
Sets the value of the 'date' field.- Parameters:
value- the value to set.
-
getCurrency
Gets the value of the 'currency' field.- Returns:
- The value of the 'currency' field.
-
setCurrency
Sets the value of the 'currency' field.- Parameters:
value- the value to set.
-
getPaymentDetailData
Gets the value of the 'paymentDetailData' field.- Returns:
- The value of the 'paymentDetailData' field.
-
setPaymentDetailData
Sets the value of the 'paymentDetailData' field.- Parameters:
value- the value to set.
-
getAmount
Gets the value of the 'amount' field.- Returns:
- The value of the 'amount' field.
-
setAmount
Sets the value of the 'amount' field.- Parameters:
value- the value to set.
-
getOutstandingChargeAmount
Gets the value of the 'outstandingChargeAmount' field.- Returns:
- The value of the 'outstandingChargeAmount' field.
-
setOutstandingChargeAmount
Sets the value of the 'outstandingChargeAmount' field.- Parameters:
value- the value to set.
-
getRunningBalance
Gets the value of the 'runningBalance' field.- Returns:
- The value of the 'runningBalance' field.
-
setRunningBalance
Sets the value of the 'runningBalance' field.- Parameters:
value- the value to set.
-
getReversed
Gets the value of the 'reversed' field.- Returns:
- The value of the 'reversed' field.
-
setReversed
Sets the value of the 'reversed' field.- Parameters:
value- the value to set.
-
getTransfer
Gets the value of the 'transfer' field.- Returns:
- The value of the 'transfer' field.
-
setTransfer
Sets the value of the 'transfer' field.- Parameters:
value- the value to set.
-
getSubmittedOnDate
Gets the value of the 'submittedOnDate' field.- Returns:
- The value of the 'submittedOnDate' field.
-
setSubmittedOnDate
Sets the value of the 'submittedOnDate' field.- Parameters:
value- the value to set.
-
getInterestedPostedAsOn
Gets the value of the 'interestedPostedAsOn' field.- Returns:
- The value of the 'interestedPostedAsOn' field.
-
setInterestedPostedAsOn
Sets the value of the 'interestedPostedAsOn' field.- Parameters:
value- the value to set.
-
getSubmittedByUsername
Gets the value of the 'submittedByUsername' field.- Returns:
- The value of the 'submittedByUsername' field.
-
setSubmittedByUsername
Sets the value of the 'submittedByUsername' field.- Parameters:
value- the value to set.
-
getNote
Gets the value of the 'note' field.- Returns:
- The value of the 'note' field.
-
setNote
Sets the value of the 'note' field.- Parameters:
value- the value to set.
-
getIsManualTransaction
Gets the value of the 'isManualTransaction' field.- Returns:
- The value of the 'isManualTransaction' field.
-
setIsManualTransaction
Sets the value of the 'isManualTransaction' field.- Parameters:
value- the value to set.
-
getIsReversal
Gets the value of the 'isReversal' field.- Returns:
- The value of the 'isReversal' field.
-
setIsReversal
Sets the value of the 'isReversal' field.- Parameters:
value- the value to set.
-
getOriginalTransactionId
Gets the value of the 'originalTransactionId' field.- Returns:
- The value of the 'originalTransactionId' field.
-
setOriginalTransactionId
Sets the value of the 'originalTransactionId' field.- Parameters:
value- the value to set.
-
getLienTransaction
Gets the value of the 'lienTransaction' field.- Returns:
- The value of the 'lienTransaction' field.
-
setLienTransaction
Sets the value of the 'lienTransaction' field.- Parameters:
value- the value to set.
-
getReleaseTransactionId
Gets the value of the 'releaseTransactionId' field.- Returns:
- The value of the 'releaseTransactionId' field.
-
setReleaseTransactionId
Sets the value of the 'releaseTransactionId' field.- Parameters:
value- the value to set.
-
getReasonForBlock
Gets the value of the 'reasonForBlock' field.- Returns:
- The value of the 'reasonForBlock' field.
-
setReasonForBlock
Sets the value of the 'reasonForBlock' field.- Parameters:
value- the value to set.
-
getChargesPaidByData
Gets the value of the 'chargesPaidByData' field.- Returns:
- The value of the 'chargesPaidByData' field.
-
setChargesPaidByData
Sets the value of the 'chargesPaidByData' field.- Parameters:
value- the value to set.
-
newBuilder
Creates a new SavingsAccountTransactionDataV1 RecordBuilder.- Returns:
- A new SavingsAccountTransactionDataV1 RecordBuilder
-
newBuilder
public static SavingsAccountTransactionDataV1.Builder newBuilder(SavingsAccountTransactionDataV1.Builder other) Creates a new SavingsAccountTransactionDataV1 RecordBuilder by copying an existing Builder.- Parameters:
other- The existing builder to copy.- Returns:
- A new SavingsAccountTransactionDataV1 RecordBuilder
-
newBuilder
public static SavingsAccountTransactionDataV1.Builder newBuilder(SavingsAccountTransactionDataV1 other) Creates a new SavingsAccountTransactionDataV1 RecordBuilder by copying an existing SavingsAccountTransactionDataV1 instance.- Parameters:
other- The existing instance to copy.- Returns:
- A new SavingsAccountTransactionDataV1 RecordBuilder
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classorg.apache.avro.specific.SpecificRecordBase- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classorg.apache.avro.specific.SpecificRecordBase- Throws:
IOException
-