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:
  • 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 use newBuilder().
    • 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 id
      accountNo - The new value for accountNo
      externalId - The new value for externalId
      status - The new value for status
      subStatus - The new value for subStatus
      active - The new value for active
      activationDate - The new value for activationDate
      firstname - The new value for firstname
      middlename - The new value for middlename
      lastname - The new value for lastname
      fullname - The new value for fullname
      displayName - The new value for displayName
      mobileNo - The new value for mobileNo
      emailAddress - The new value for emailAddress
      dateOfBirth - The new value for dateOfBirth
      gender - The new value for gender
      clientType - The new value for clientType
      clientClassification - The new value for clientClassification
      isStaff - The new value for isStaff
      officeId - The new value for officeId
      officeName - The new value for officeName
      transferToOfficeId - The new value for transferToOfficeId
      transferToOfficeName - The new value for transferToOfficeName
      imageId - The new value for imageId
      imagePresent - The new value for imagePresent
      staffId - The new value for staffId
      staffName - The new value for staffName
      timeline - The new value for timeline
      savingsProductId - The new value for savingsProductId
      savingsProductName - The new value for savingsProductName
      savingsAccountId - The new value for savingsAccountId
      legalForm - The new value for legalForm
      clientCollateralManagements - The new value for clientCollateralManagements
      groups - The new value for groups
  • Method Details

    • getClassSchema

      public static org.apache.avro.Schema getClassSchema()
    • getEncoder

      public static org.apache.avro.message.BinaryMessageEncoder<ClientDataV1> 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<ClientDataV1> 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 specified SchemaStore.
      Parameters:
      resolver - a SchemaStore used to find schemas by fingerprint
      Returns:
      a BinaryMessageDecoder instance for this class backed by the given SchemaStore
    • toByteBuffer

      public ByteBuffer toByteBuffer() throws IOException
      Serializes this ClientDataV1 to a ByteBuffer.
      Specified by:
      toByteBuffer in interface ByteBufferSerializable
      Returns:
      a buffer holding the serialized data for this instance
      Throws:
      IOException - if this instance could not be serialized
    • fromByteBuffer

      public static ClientDataV1 fromByteBuffer(ByteBuffer b) throws IOException
      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:
      getSpecificData in class org.apache.avro.specific.SpecificRecordBase
    • getSchema

      public org.apache.avro.Schema getSchema()
      Specified by:
      getSchema in interface org.apache.avro.generic.GenericContainer
    • get

      public Object get(int field$)
      Specified by:
      get in interface org.apache.avro.generic.IndexedRecord
    • put

      public void put(int field$, Object value$)
      Specified by:
      put in interface org.apache.avro.generic.IndexedRecord
    • getId

      public Long getId()
      Gets the value of the 'id' field.
      Returns:
      The value of the 'id' field.
    • setId

      public void setId(Long value)
      Sets the value of the 'id' field.
      Parameters:
      value - the value to set.
    • getAccountNo

      public String getAccountNo()
      Gets the value of the 'accountNo' field.
      Returns:
      The value of the 'accountNo' field.
    • setAccountNo

      public void setAccountNo(String value)
      Sets the value of the 'accountNo' field.
      Parameters:
      value - the value to set.
    • getExternalId

      public String getExternalId()
      Gets the value of the 'externalId' field.
      Returns:
      The value of the 'externalId' field.
    • setExternalId

      public void setExternalId(String value)
      Sets the value of the 'externalId' field.
      Parameters:
      value - the value to set.
    • getStatus

      public EnumOptionDataV1 getStatus()
      Gets the value of the 'status' field.
      Returns:
      The value of the 'status' field.
    • setStatus

      public void setStatus(EnumOptionDataV1 value)
      Sets the value of the 'status' field.
      Parameters:
      value - the value to set.
    • getSubStatus

      public CodeValueDataV1 getSubStatus()
      Gets the value of the 'subStatus' field.
      Returns:
      The value of the 'subStatus' field.
    • setSubStatus

      public void setSubStatus(CodeValueDataV1 value)
      Sets the value of the 'subStatus' field.
      Parameters:
      value - the value to set.
    • getActive

      public Boolean getActive()
      Gets the value of the 'active' field.
      Returns:
      The value of the 'active' field.
    • setActive

      public void setActive(Boolean value)
      Sets the value of the 'active' field.
      Parameters:
      value - the value to set.
    • getActivationDate

      public String getActivationDate()
      Gets the value of the 'activationDate' field.
      Returns:
      The value of the 'activationDate' field.
    • setActivationDate

      public void setActivationDate(String value)
      Sets the value of the 'activationDate' field.
      Parameters:
      value - the value to set.
    • getFirstname

      public String getFirstname()
      Gets the value of the 'firstname' field.
      Returns:
      The value of the 'firstname' field.
    • setFirstname

      public void setFirstname(String value)
      Sets the value of the 'firstname' field.
      Parameters:
      value - the value to set.
    • getMiddlename

      public String getMiddlename()
      Gets the value of the 'middlename' field.
      Returns:
      The value of the 'middlename' field.
    • setMiddlename

      public void setMiddlename(String value)
      Sets the value of the 'middlename' field.
      Parameters:
      value - the value to set.
    • getLastname

      public String getLastname()
      Gets the value of the 'lastname' field.
      Returns:
      The value of the 'lastname' field.
    • setLastname

      public void setLastname(String value)
      Sets the value of the 'lastname' field.
      Parameters:
      value - the value to set.
    • getFullname

      public String getFullname()
      Gets the value of the 'fullname' field.
      Returns:
      The value of the 'fullname' field.
    • setFullname

      public void setFullname(String value)
      Sets the value of the 'fullname' field.
      Parameters:
      value - the value to set.
    • getDisplayName

      public String getDisplayName()
      Gets the value of the 'displayName' field.
      Returns:
      The value of the 'displayName' field.
    • setDisplayName

      public void setDisplayName(String value)
      Sets the value of the 'displayName' field.
      Parameters:
      value - the value to set.
    • getMobileNo

      public String getMobileNo()
      Gets the value of the 'mobileNo' field.
      Returns:
      The value of the 'mobileNo' field.
    • setMobileNo

      public void setMobileNo(String value)
      Sets the value of the 'mobileNo' field.
      Parameters:
      value - the value to set.
    • getEmailAddress

      public String getEmailAddress()
      Gets the value of the 'emailAddress' field.
      Returns:
      The value of the 'emailAddress' field.
    • setEmailAddress

      public void setEmailAddress(String value)
      Sets the value of the 'emailAddress' field.
      Parameters:
      value - the value to set.
    • getDateOfBirth

      public String getDateOfBirth()
      Gets the value of the 'dateOfBirth' field.
      Returns:
      The value of the 'dateOfBirth' field.
    • setDateOfBirth

      public void setDateOfBirth(String value)
      Sets the value of the 'dateOfBirth' field.
      Parameters:
      value - the value to set.
    • getGender

      public CodeValueDataV1 getGender()
      Gets the value of the 'gender' field.
      Returns:
      The value of the 'gender' field.
    • setGender

      public void setGender(CodeValueDataV1 value)
      Sets the value of the 'gender' field.
      Parameters:
      value - the value to set.
    • getClientType

      public CodeValueDataV1 getClientType()
      Gets the value of the 'clientType' field.
      Returns:
      The value of the 'clientType' field.
    • setClientType

      public void setClientType(CodeValueDataV1 value)
      Sets the value of the 'clientType' field.
      Parameters:
      value - the value to set.
    • getClientClassification

      public CodeValueDataV1 getClientClassification()
      Gets the value of the 'clientClassification' field.
      Returns:
      The value of the 'clientClassification' field.
    • setClientClassification

      public void setClientClassification(CodeValueDataV1 value)
      Sets the value of the 'clientClassification' field.
      Parameters:
      value - the value to set.
    • getIsStaff

      public Boolean getIsStaff()
      Gets the value of the 'isStaff' field.
      Returns:
      The value of the 'isStaff' field.
    • setIsStaff

      public void setIsStaff(Boolean value)
      Sets the value of the 'isStaff' field.
      Parameters:
      value - the value to set.
    • getOfficeId

      public Long getOfficeId()
      Gets the value of the 'officeId' field.
      Returns:
      The value of the 'officeId' field.
    • setOfficeId

      public void setOfficeId(Long value)
      Sets the value of the 'officeId' field.
      Parameters:
      value - the value to set.
    • getOfficeName

      public String getOfficeName()
      Gets the value of the 'officeName' field.
      Returns:
      The value of the 'officeName' field.
    • setOfficeName

      public void setOfficeName(String value)
      Sets the value of the 'officeName' field.
      Parameters:
      value - the value to set.
    • getTransferToOfficeId

      public Long getTransferToOfficeId()
      Gets the value of the 'transferToOfficeId' field.
      Returns:
      The value of the 'transferToOfficeId' field.
    • setTransferToOfficeId

      public void setTransferToOfficeId(Long value)
      Sets the value of the 'transferToOfficeId' field.
      Parameters:
      value - the value to set.
    • getTransferToOfficeName

      public String getTransferToOfficeName()
      Gets the value of the 'transferToOfficeName' field.
      Returns:
      The value of the 'transferToOfficeName' field.
    • setTransferToOfficeName

      public void setTransferToOfficeName(String value)
      Sets the value of the 'transferToOfficeName' field.
      Parameters:
      value - the value to set.
    • getImageId

      public Long getImageId()
      Gets the value of the 'imageId' field.
      Returns:
      The value of the 'imageId' field.
    • setImageId

      public void setImageId(Long value)
      Sets the value of the 'imageId' field.
      Parameters:
      value - the value to set.
    • getImagePresent

      public Boolean getImagePresent()
      Gets the value of the 'imagePresent' field.
      Returns:
      The value of the 'imagePresent' field.
    • setImagePresent

      public void setImagePresent(Boolean value)
      Sets the value of the 'imagePresent' field.
      Parameters:
      value - the value to set.
    • getStaffId

      public Long getStaffId()
      Gets the value of the 'staffId' field.
      Returns:
      The value of the 'staffId' field.
    • setStaffId

      public void setStaffId(Long value)
      Sets the value of the 'staffId' field.
      Parameters:
      value - the value to set.
    • getStaffName

      public String getStaffName()
      Gets the value of the 'staffName' field.
      Returns:
      The value of the 'staffName' field.
    • setStaffName

      public void setStaffName(String value)
      Sets the value of the 'staffName' field.
      Parameters:
      value - the value to set.
    • getTimeline

      public ClientTimelineDataV1 getTimeline()
      Gets the value of the 'timeline' field.
      Returns:
      The value of the 'timeline' field.
    • setTimeline

      public void setTimeline(ClientTimelineDataV1 value)
      Sets the value of the 'timeline' field.
      Parameters:
      value - the value to set.
    • getSavingsProductId

      public Long getSavingsProductId()
      Gets the value of the 'savingsProductId' field.
      Returns:
      The value of the 'savingsProductId' field.
    • setSavingsProductId

      public void setSavingsProductId(Long value)
      Sets the value of the 'savingsProductId' field.
      Parameters:
      value - the value to set.
    • getSavingsProductName

      public String getSavingsProductName()
      Gets the value of the 'savingsProductName' field.
      Returns:
      The value of the 'savingsProductName' field.
    • setSavingsProductName

      public void setSavingsProductName(String value)
      Sets the value of the 'savingsProductName' field.
      Parameters:
      value - the value to set.
    • getSavingsAccountId

      public Long getSavingsAccountId()
      Gets the value of the 'savingsAccountId' field.
      Returns:
      The value of the 'savingsAccountId' field.
    • setSavingsAccountId

      public void setSavingsAccountId(Long value)
      Sets the value of the 'savingsAccountId' field.
      Parameters:
      value - the value to set.
    • getLegalForm

      public EnumOptionDataV1 getLegalForm()
      Gets the value of the 'legalForm' field.
      Returns:
      The value of the 'legalForm' field.
    • setLegalForm

      public void setLegalForm(EnumOptionDataV1 value)
      Sets the value of the 'legalForm' field.
      Parameters:
      value - the value to set.
    • getClientCollateralManagements

      public List<ClientCollateralManagementDataV1> getClientCollateralManagements()
      Gets the value of the 'clientCollateralManagements' field.
      Returns:
      The value of the 'clientCollateralManagements' field.
    • setClientCollateralManagements

      public void setClientCollateralManagements(List<ClientCollateralManagementDataV1> value)
      Sets the value of the 'clientCollateralManagements' field.
      Parameters:
      value - the value to set.
    • getGroups

      public List<GroupGeneralDataV1> getGroups()
      Gets the value of the 'groups' field.
      Returns:
      The value of the 'groups' field.
    • setGroups

      public void setGroups(List<GroupGeneralDataV1> value)
      Sets the value of the 'groups' field.
      Parameters:
      value - the value to set.
    • newBuilder

      public static ClientDataV1.Builder newBuilder()
      Creates a new ClientDataV1 RecordBuilder.
      Returns:
      A new ClientDataV1 RecordBuilder
    • newBuilder

      public static ClientDataV1.Builder newBuilder(ClientDataV1.Builder other)
      Creates a new ClientDataV1 RecordBuilder by copying an existing Builder.
      Parameters:
      other - The existing builder to copy.
      Returns:
      A new ClientDataV1 RecordBuilder
    • newBuilder

      public static ClientDataV1.Builder newBuilder(ClientDataV1 other)
      Creates a new ClientDataV1 RecordBuilder by copying an existing ClientDataV1 instance.
      Parameters:
      other - The existing instance to copy.
      Returns:
      A new ClientDataV1 RecordBuilder
    • writeExternal

      public void writeExternal(ObjectOutput out) throws IOException
      Specified by:
      writeExternal in interface Externalizable
      Overrides:
      writeExternal in class org.apache.avro.specific.SpecificRecordBase
      Throws:
      IOException
    • readExternal

      public void readExternal(ObjectInput in) throws IOException
      Specified by:
      readExternal in interface Externalizable
      Overrides:
      readExternal in class org.apache.avro.specific.SpecificRecordBase
      Throws:
      IOException