Class AccountTransferDataV1
java.lang.Object
org.apache.avro.specific.SpecificRecordBase
org.apache.fineract.avro.savings.v1.AccountTransferDataV1
- 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 AccountTransferDataV1
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord, ByteBufferSerializable
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRecordBuilder for AccountTransferDataV1 instances. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.AccountTransferDataV1(Integer id, Boolean reversed, CurrencyDataV1 currency, BigDecimal transferAmount, String transferDate, String transferDescription, OfficeDataV1 fromOffice, ClientDataV1 fromClient, EnumOptionDataV1 fromAccountType, PortfolioAccountDataV1 fromAccount, OfficeDataV1 toOffice, ClientDataV1 toClient, EnumOptionDataV1 toAccountType, PortfolioAccountDataV1 toAccount) All-args constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.avro.message.BinaryMessageDecoder<AccountTransferDataV1> createDecoder(org.apache.avro.message.SchemaStore resolver) Create a new BinaryMessageDecoder instance for this class that uses the specifiedSchemaStore.static AccountTransferDataV1Deserializes a AccountTransferDataV1 from a ByteBuffer.get(int field$) static org.apache.avro.SchemaGets the value of the 'currency' field.static org.apache.avro.message.BinaryMessageDecoder<AccountTransferDataV1> Return the BinaryMessageDecoder instance used by this class.static org.apache.avro.message.BinaryMessageEncoder<AccountTransferDataV1> Return the BinaryMessageEncoder instance used by this class.Gets the value of the 'fromAccount' field.Gets the value of the 'fromAccountType' field.Gets the value of the 'fromClient' field.Gets the value of the 'fromOffice' field.getId()Gets the value of the 'id' field.Gets the value of the 'reversed' field.org.apache.avro.Schemaorg.apache.avro.specific.SpecificDataGets the value of the 'toAccount' field.Gets the value of the 'toAccountType' field.Gets the value of the 'toClient' field.Gets the value of the 'toOffice' field.Gets the value of the 'transferAmount' field.Gets the value of the 'transferDate' field.Gets the value of the 'transferDescription' field.Creates a new AccountTransferDataV1 RecordBuilder.newBuilder(AccountTransferDataV1 other) Creates a new AccountTransferDataV1 RecordBuilder by copying an existing AccountTransferDataV1 instance.Creates a new AccountTransferDataV1 RecordBuilder by copying an existing Builder.voidvoidvoidsetCurrency(CurrencyDataV1 value) Sets the value of the 'currency' field.voidSets the value of the 'fromAccount' field.voidSets the value of the 'fromAccountType' field.voidsetFromClient(ClientDataV1 value) Sets the value of the 'fromClient' field.voidsetFromOffice(OfficeDataV1 value) Sets the value of the 'fromOffice' field.voidSets the value of the 'id' field.voidsetReversed(Boolean value) Sets the value of the 'reversed' field.voidSets the value of the 'toAccount' field.voidsetToAccountType(EnumOptionDataV1 value) Sets the value of the 'toAccountType' field.voidsetToClient(ClientDataV1 value) Sets the value of the 'toClient' field.voidsetToOffice(OfficeDataV1 value) Sets the value of the 'toOffice' field.voidsetTransferAmount(BigDecimal value) Sets the value of the 'transferAmount' field.voidsetTransferDate(String value) Sets the value of the 'transferDate' field.voidsetTransferDescription(String value) Sets the value of the 'transferDescription' field.Serializes this AccountTransferDataV1 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
-
AccountTransferDataV1
public AccountTransferDataV1()Default constructor. Note that this does not initialize fields to their default values from the schema. If that is desired then one should usenewBuilder(). -
AccountTransferDataV1
public AccountTransferDataV1(Integer id, Boolean reversed, CurrencyDataV1 currency, BigDecimal transferAmount, String transferDate, String transferDescription, OfficeDataV1 fromOffice, ClientDataV1 fromClient, EnumOptionDataV1 fromAccountType, PortfolioAccountDataV1 fromAccount, OfficeDataV1 toOffice, ClientDataV1 toClient, EnumOptionDataV1 toAccountType, PortfolioAccountDataV1 toAccount) All-args constructor.- Parameters:
id- The new value for idreversed- The new value for reversedcurrency- The new value for currencytransferAmount- The new value for transferAmounttransferDate- The new value for transferDatetransferDescription- The new value for transferDescriptionfromOffice- The new value for fromOfficefromClient- The new value for fromClientfromAccountType- The new value for fromAccountTypefromAccount- The new value for fromAccounttoOffice- The new value for toOfficetoClient- The new value for toClienttoAccountType- The new value for toAccountTypetoAccount- The new value for toAccount
-
-
Method Details
-
getClassSchema
public static org.apache.avro.Schema getClassSchema() -
getEncoder
Return the BinaryMessageEncoder instance used by this class.- Returns:
- the message encoder used by this class
-
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<AccountTransferDataV1> 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 AccountTransferDataV1 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 AccountTransferDataV1 from a ByteBuffer.- Parameters:
b- a byte buffer holding serialized data for an instance of this class- Returns:
- a AccountTransferDataV1 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.
-
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.
-
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.
-
getTransferAmount
Gets the value of the 'transferAmount' field.- Returns:
- The value of the 'transferAmount' field.
-
setTransferAmount
Sets the value of the 'transferAmount' field.- Parameters:
value- the value to set.
-
getTransferDate
Gets the value of the 'transferDate' field.- Returns:
- The value of the 'transferDate' field.
-
setTransferDate
Sets the value of the 'transferDate' field.- Parameters:
value- the value to set.
-
getTransferDescription
Gets the value of the 'transferDescription' field.- Returns:
- The value of the 'transferDescription' field.
-
setTransferDescription
Sets the value of the 'transferDescription' field.- Parameters:
value- the value to set.
-
getFromOffice
Gets the value of the 'fromOffice' field.- Returns:
- The value of the 'fromOffice' field.
-
setFromOffice
Sets the value of the 'fromOffice' field.- Parameters:
value- the value to set.
-
getFromClient
Gets the value of the 'fromClient' field.- Returns:
- The value of the 'fromClient' field.
-
setFromClient
Sets the value of the 'fromClient' field.- Parameters:
value- the value to set.
-
getFromAccountType
Gets the value of the 'fromAccountType' field.- Returns:
- The value of the 'fromAccountType' field.
-
setFromAccountType
Sets the value of the 'fromAccountType' field.- Parameters:
value- the value to set.
-
getFromAccount
Gets the value of the 'fromAccount' field.- Returns:
- The value of the 'fromAccount' field.
-
setFromAccount
Sets the value of the 'fromAccount' field.- Parameters:
value- the value to set.
-
getToOffice
Gets the value of the 'toOffice' field.- Returns:
- The value of the 'toOffice' field.
-
setToOffice
Sets the value of the 'toOffice' field.- Parameters:
value- the value to set.
-
getToClient
Gets the value of the 'toClient' field.- Returns:
- The value of the 'toClient' field.
-
setToClient
Sets the value of the 'toClient' field.- Parameters:
value- the value to set.
-
getToAccountType
Gets the value of the 'toAccountType' field.- Returns:
- The value of the 'toAccountType' field.
-
setToAccountType
Sets the value of the 'toAccountType' field.- Parameters:
value- the value to set.
-
getToAccount
Gets the value of the 'toAccount' field.- Returns:
- The value of the 'toAccount' field.
-
setToAccount
Sets the value of the 'toAccount' field.- Parameters:
value- the value to set.
-
newBuilder
Creates a new AccountTransferDataV1 RecordBuilder.- Returns:
- A new AccountTransferDataV1 RecordBuilder
-
newBuilder
Creates a new AccountTransferDataV1 RecordBuilder by copying an existing Builder.- Parameters:
other- The existing builder to copy.- Returns:
- A new AccountTransferDataV1 RecordBuilder
-
newBuilder
Creates a new AccountTransferDataV1 RecordBuilder by copying an existing AccountTransferDataV1 instance.- Parameters:
other- The existing instance to copy.- Returns:
- A new AccountTransferDataV1 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
-