Class ClientDataV1
java.lang.Object
org.apache.avro.specific.SpecificRecordBase
org.apache.fineract.avro.client.v1.ClientDataV1
- 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 ClientDataV1
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord, ByteBufferSerializable
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRecordBuilder for ClientDataV1 instances. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.ClientDataV1(Long id, String accountNo, String externalId, EnumOptionDataV1 status, CodeValueDataV1 subStatus, Boolean active, String activationDate, String firstname, String middlename, String lastname, String fullname, String displayName, String mobileNo, String emailAddress, String dateOfBirth, CodeValueDataV1 gender, CodeValueDataV1 clientType, CodeValueDataV1 clientClassification, Boolean isStaff, Long officeId, String officeName, Long transferToOfficeId, String transferToOfficeName, Long imageId, Boolean imagePresent, Long staffId, String staffName, ClientTimelineDataV1 timeline, Long savingsProductId, String savingsProductName, Long savingsAccountId, EnumOptionDataV1 legalForm, List<ClientCollateralManagementDataV1> clientCollateralManagements, List<GroupGeneralDataV1> groups) All-args constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.avro.message.BinaryMessageDecoder<ClientDataV1> createDecoder(org.apache.avro.message.SchemaStore resolver) Create a new BinaryMessageDecoder instance for this class that uses the specifiedSchemaStore.static ClientDataV1Deserializes a ClientDataV1 from a ByteBuffer.get(int field$) Gets the value of the 'accountNo' field.Gets the value of the 'activationDate' field.Gets the value of the 'active' field.static org.apache.avro.SchemaGets the value of the 'clientClassification' field.Gets the value of the 'clientCollateralManagements' field.Gets the value of the 'clientType' field.Gets the value of the 'dateOfBirth' field.static org.apache.avro.message.BinaryMessageDecoder<ClientDataV1> Return the BinaryMessageDecoder instance used by this class.Gets the value of the 'displayName' field.Gets the value of the 'emailAddress' field.static org.apache.avro.message.BinaryMessageEncoder<ClientDataV1> Return the BinaryMessageEncoder instance used by this class.Gets the value of the 'externalId' field.Gets the value of the 'firstname' field.Gets the value of the 'fullname' field.Gets the value of the 'gender' field.Gets the value of the 'groups' field.getId()Gets the value of the 'id' field.Gets the value of the 'imageId' field.Gets the value of the 'imagePresent' field.Gets the value of the 'isStaff' field.Gets the value of the 'lastname' field.Gets the value of the 'legalForm' field.Gets the value of the 'middlename' field.Gets the value of the 'mobileNo' field.Gets the value of the 'officeId' field.Gets the value of the 'officeName' field.Gets the value of the 'savingsAccountId' field.Gets the value of the 'savingsProductId' field.Gets the value of the 'savingsProductName' field.org.apache.avro.Schemaorg.apache.avro.specific.SpecificDataGets the value of the 'staffId' field.Gets the value of the 'staffName' field.Gets the value of the 'status' field.Gets the value of the 'subStatus' field.Gets the value of the 'timeline' field.Gets the value of the 'transferToOfficeId' field.Gets the value of the 'transferToOfficeName' field.static ClientDataV1.BuilderCreates a new ClientDataV1 RecordBuilder.static ClientDataV1.BuildernewBuilder(ClientDataV1 other) Creates a new ClientDataV1 RecordBuilder by copying an existing ClientDataV1 instance.static ClientDataV1.BuildernewBuilder(ClientDataV1.Builder other) Creates a new ClientDataV1 RecordBuilder by copying an existing Builder.voidvoidvoidsetAccountNo(String value) Sets the value of the 'accountNo' field.voidsetActivationDate(String value) Sets the value of the 'activationDate' field.voidSets the value of the 'active' field.voidSets the value of the 'clientClassification' field.voidSets the value of the 'clientCollateralManagements' field.voidsetClientType(CodeValueDataV1 value) Sets the value of the 'clientType' field.voidsetDateOfBirth(String value) Sets the value of the 'dateOfBirth' field.voidsetDisplayName(String value) Sets the value of the 'displayName' field.voidsetEmailAddress(String value) Sets the value of the 'emailAddress' field.voidsetExternalId(String value) Sets the value of the 'externalId' field.voidsetFirstname(String value) Sets the value of the 'firstname' field.voidsetFullname(String value) Sets the value of the 'fullname' field.voidsetGender(CodeValueDataV1 value) Sets the value of the 'gender' field.voidsetGroups(List<GroupGeneralDataV1> value) Sets the value of the 'groups' field.voidSets the value of the 'id' field.voidsetImageId(Long value) Sets the value of the 'imageId' field.voidsetImagePresent(Boolean value) Sets the value of the 'imagePresent' field.voidsetIsStaff(Boolean value) Sets the value of the 'isStaff' field.voidsetLastname(String value) Sets the value of the 'lastname' field.voidsetLegalForm(EnumOptionDataV1 value) Sets the value of the 'legalForm' field.voidsetMiddlename(String value) Sets the value of the 'middlename' field.voidsetMobileNo(String value) Sets the value of the 'mobileNo' field.voidsetOfficeId(Long value) Sets the value of the 'officeId' field.voidsetOfficeName(String value) Sets the value of the 'officeName' field.voidsetSavingsAccountId(Long value) Sets the value of the 'savingsAccountId' field.voidsetSavingsProductId(Long value) Sets the value of the 'savingsProductId' field.voidsetSavingsProductName(String value) Sets the value of the 'savingsProductName' field.voidsetStaffId(Long value) Sets the value of the 'staffId' field.voidsetStaffName(String value) Sets the value of the 'staffName' field.voidsetStatus(EnumOptionDataV1 value) Sets the value of the 'status' field.voidsetSubStatus(CodeValueDataV1 value) Sets the value of the 'subStatus' field.voidsetTimeline(ClientTimelineDataV1 value) Sets the value of the 'timeline' field.voidsetTransferToOfficeId(Long value) Sets the value of the 'transferToOfficeId' field.voidsetTransferToOfficeName(String value) Sets the value of the 'transferToOfficeName' field.Serializes this ClientDataV1 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
-
ClientDataV1
public ClientDataV1()Default constructor. Note that this does not initialize fields to their default values from the schema. If that is desired then one should usenewBuilder(). -
ClientDataV1
public ClientDataV1(Long id, String accountNo, String externalId, EnumOptionDataV1 status, CodeValueDataV1 subStatus, Boolean active, String activationDate, String firstname, String middlename, String lastname, String fullname, String displayName, String mobileNo, String emailAddress, String dateOfBirth, CodeValueDataV1 gender, CodeValueDataV1 clientType, CodeValueDataV1 clientClassification, Boolean isStaff, Long officeId, String officeName, Long transferToOfficeId, String transferToOfficeName, Long imageId, Boolean imagePresent, Long staffId, String staffName, ClientTimelineDataV1 timeline, Long savingsProductId, String savingsProductName, Long savingsAccountId, EnumOptionDataV1 legalForm, List<ClientCollateralManagementDataV1> clientCollateralManagements, List<GroupGeneralDataV1> groups) All-args constructor.- Parameters:
id- The new value for idaccountNo- The new value for accountNoexternalId- The new value for externalIdstatus- The new value for statussubStatus- The new value for subStatusactive- The new value for activeactivationDate- The new value for activationDatefirstname- The new value for firstnamemiddlename- The new value for middlenamelastname- The new value for lastnamefullname- The new value for fullnamedisplayName- The new value for displayNamemobileNo- The new value for mobileNoemailAddress- The new value for emailAddressdateOfBirth- The new value for dateOfBirthgender- The new value for genderclientType- The new value for clientTypeclientClassification- The new value for clientClassificationisStaff- The new value for isStaffofficeId- The new value for officeIdofficeName- The new value for officeNametransferToOfficeId- The new value for transferToOfficeIdtransferToOfficeName- The new value for transferToOfficeNameimageId- The new value for imageIdimagePresent- The new value for imagePresentstaffId- The new value for staffIdstaffName- The new value for staffNametimeline- The new value for timelinesavingsProductId- The new value for savingsProductIdsavingsProductName- The new value for savingsProductNamesavingsAccountId- The new value for savingsAccountIdlegalForm- The new value for legalFormclientCollateralManagements- The new value for clientCollateralManagementsgroups- The new value for groups
-
-
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<ClientDataV1> 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 ClientDataV1 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 ClientDataV1 from a ByteBuffer.- Parameters:
b- a byte buffer holding serialized data for an instance of this class- Returns:
- a ClientDataV1 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.
-
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.
-
getExternalId
Gets the value of the 'externalId' field.- Returns:
- The value of the 'externalId' field.
-
setExternalId
Sets the value of the 'externalId' field.- Parameters:
value- the value to set.
-
getStatus
Gets the value of the 'status' field.- Returns:
- The value of the 'status' field.
-
setStatus
Sets the value of the 'status' field.- Parameters:
value- the value to set.
-
getSubStatus
Gets the value of the 'subStatus' field.- Returns:
- The value of the 'subStatus' field.
-
setSubStatus
Sets the value of the 'subStatus' field.- Parameters:
value- the value to set.
-
getActive
Gets the value of the 'active' field.- Returns:
- The value of the 'active' field.
-
setActive
Sets the value of the 'active' field.- Parameters:
value- the value to set.
-
getActivationDate
Gets the value of the 'activationDate' field.- Returns:
- The value of the 'activationDate' field.
-
setActivationDate
Sets the value of the 'activationDate' field.- Parameters:
value- the value to set.
-
getFirstname
Gets the value of the 'firstname' field.- Returns:
- The value of the 'firstname' field.
-
setFirstname
Sets the value of the 'firstname' field.- Parameters:
value- the value to set.
-
getMiddlename
Gets the value of the 'middlename' field.- Returns:
- The value of the 'middlename' field.
-
setMiddlename
Sets the value of the 'middlename' field.- Parameters:
value- the value to set.
-
getLastname
Gets the value of the 'lastname' field.- Returns:
- The value of the 'lastname' field.
-
setLastname
Sets the value of the 'lastname' field.- Parameters:
value- the value to set.
-
getFullname
Gets the value of the 'fullname' field.- Returns:
- The value of the 'fullname' field.
-
setFullname
Sets the value of the 'fullname' field.- Parameters:
value- the value to set.
-
getDisplayName
Gets the value of the 'displayName' field.- Returns:
- The value of the 'displayName' field.
-
setDisplayName
Sets the value of the 'displayName' field.- Parameters:
value- the value to set.
-
getMobileNo
Gets the value of the 'mobileNo' field.- Returns:
- The value of the 'mobileNo' field.
-
setMobileNo
Sets the value of the 'mobileNo' field.- Parameters:
value- the value to set.
-
getEmailAddress
Gets the value of the 'emailAddress' field.- Returns:
- The value of the 'emailAddress' field.
-
setEmailAddress
Sets the value of the 'emailAddress' field.- Parameters:
value- the value to set.
-
getDateOfBirth
Gets the value of the 'dateOfBirth' field.- Returns:
- The value of the 'dateOfBirth' field.
-
setDateOfBirth
Sets the value of the 'dateOfBirth' field.- Parameters:
value- the value to set.
-
getGender
Gets the value of the 'gender' field.- Returns:
- The value of the 'gender' field.
-
setGender
Sets the value of the 'gender' field.- Parameters:
value- the value to set.
-
getClientType
Gets the value of the 'clientType' field.- Returns:
- The value of the 'clientType' field.
-
setClientType
Sets the value of the 'clientType' field.- Parameters:
value- the value to set.
-
getClientClassification
Gets the value of the 'clientClassification' field.- Returns:
- The value of the 'clientClassification' field.
-
setClientClassification
Sets the value of the 'clientClassification' field.- Parameters:
value- the value to set.
-
getIsStaff
Gets the value of the 'isStaff' field.- Returns:
- The value of the 'isStaff' field.
-
setIsStaff
Sets the value of the 'isStaff' field.- Parameters:
value- the value to set.
-
getOfficeId
Gets the value of the 'officeId' field.- Returns:
- The value of the 'officeId' field.
-
setOfficeId
Sets the value of the 'officeId' field.- Parameters:
value- the value to set.
-
getOfficeName
Gets the value of the 'officeName' field.- Returns:
- The value of the 'officeName' field.
-
setOfficeName
Sets the value of the 'officeName' field.- Parameters:
value- the value to set.
-
getTransferToOfficeId
Gets the value of the 'transferToOfficeId' field.- Returns:
- The value of the 'transferToOfficeId' field.
-
setTransferToOfficeId
Sets the value of the 'transferToOfficeId' field.- Parameters:
value- the value to set.
-
getTransferToOfficeName
Gets the value of the 'transferToOfficeName' field.- Returns:
- The value of the 'transferToOfficeName' field.
-
setTransferToOfficeName
Sets the value of the 'transferToOfficeName' field.- Parameters:
value- the value to set.
-
getImageId
Gets the value of the 'imageId' field.- Returns:
- The value of the 'imageId' field.
-
setImageId
Sets the value of the 'imageId' field.- Parameters:
value- the value to set.
-
getImagePresent
Gets the value of the 'imagePresent' field.- Returns:
- The value of the 'imagePresent' field.
-
setImagePresent
Sets the value of the 'imagePresent' field.- Parameters:
value- the value to set.
-
getStaffId
Gets the value of the 'staffId' field.- Returns:
- The value of the 'staffId' field.
-
setStaffId
Sets the value of the 'staffId' field.- Parameters:
value- the value to set.
-
getStaffName
Gets the value of the 'staffName' field.- Returns:
- The value of the 'staffName' field.
-
setStaffName
Sets the value of the 'staffName' field.- Parameters:
value- the value to set.
-
getTimeline
Gets the value of the 'timeline' field.- Returns:
- The value of the 'timeline' field.
-
setTimeline
Sets the value of the 'timeline' field.- Parameters:
value- the value to set.
-
getSavingsProductId
Gets the value of the 'savingsProductId' field.- Returns:
- The value of the 'savingsProductId' field.
-
setSavingsProductId
Sets the value of the 'savingsProductId' field.- Parameters:
value- the value to set.
-
getSavingsProductName
Gets the value of the 'savingsProductName' field.- Returns:
- The value of the 'savingsProductName' field.
-
setSavingsProductName
Sets the value of the 'savingsProductName' field.- Parameters:
value- the value to set.
-
getSavingsAccountId
Gets the value of the 'savingsAccountId' field.- Returns:
- The value of the 'savingsAccountId' field.
-
setSavingsAccountId
Sets the value of the 'savingsAccountId' field.- Parameters:
value- the value to set.
-
getLegalForm
Gets the value of the 'legalForm' field.- Returns:
- The value of the 'legalForm' field.
-
setLegalForm
Sets the value of the 'legalForm' field.- Parameters:
value- the value to set.
-
getClientCollateralManagements
Gets the value of the 'clientCollateralManagements' field.- Returns:
- The value of the 'clientCollateralManagements' field.
-
setClientCollateralManagements
Sets the value of the 'clientCollateralManagements' field.- Parameters:
value- the value to set.
-
getGroups
Gets the value of the 'groups' field.- Returns:
- The value of the 'groups' field.
-
setGroups
Sets the value of the 'groups' field.- Parameters:
value- the value to set.
-
newBuilder
Creates a new ClientDataV1 RecordBuilder.- Returns:
- A new ClientDataV1 RecordBuilder
-
newBuilder
Creates a new ClientDataV1 RecordBuilder by copying an existing Builder.- Parameters:
other- The existing builder to copy.- Returns:
- A new ClientDataV1 RecordBuilder
-
newBuilder
Creates a new ClientDataV1 RecordBuilder by copying an existing ClientDataV1 instance.- Parameters:
other- The existing instance to copy.- Returns:
- A new ClientDataV1 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
-