Class ShareProductDataV1

java.lang.Object
org.apache.avro.specific.SpecificRecordBase
org.apache.fineract.avro.share.v1.ShareProductDataV1
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 ShareProductDataV1 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

    • ShareProductDataV1

      public ShareProductDataV1()
      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().
    • ShareProductDataV1

      public ShareProductDataV1(Long id, String name, String shortName, String description, String externalId, CurrencyDataV1 currency, Long totalShares, Long totalSharesIssued, BigDecimal unitPrice, BigDecimal shareCapital, Long minimumShares, Long nominalShares, Long maximumShares, List<ShareProductMarketPriceDataV1> marketPrice, List<ChargeDataV1> charges, Boolean allowDividendCalculationForInactiveClients, Integer lockinPeriod, EnumOptionDataV1 lockPeriodTypeEnum, Integer minimumActivePeriod, EnumOptionDataV1 minimumActivePeriodForDividendsTypeEnum)
      All-args constructor.
      Parameters:
      id - The new value for id
      name - The new value for name
      shortName - The new value for shortName
      description - The new value for description
      externalId - The new value for externalId
      currency - The new value for currency
      totalShares - The new value for totalShares
      totalSharesIssued - The new value for totalSharesIssued
      unitPrice - The new value for unitPrice
      shareCapital - The new value for shareCapital
      minimumShares - The new value for minimumShares
      nominalShares - The new value for nominalShares
      maximumShares - The new value for maximumShares
      marketPrice - The new value for marketPrice
      charges - The new value for charges
      allowDividendCalculationForInactiveClients - The new value for allowDividendCalculationForInactiveClients
      lockinPeriod - The new value for lockinPeriod
      lockPeriodTypeEnum - The new value for lockPeriodTypeEnum
      minimumActivePeriod - The new value for minimumActivePeriod
      minimumActivePeriodForDividendsTypeEnum - The new value for minimumActivePeriodForDividendsTypeEnum
  • Method Details

    • getClassSchema

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

      public static org.apache.avro.message.BinaryMessageEncoder<ShareProductDataV1> 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<ShareProductDataV1> 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<ShareProductDataV1> 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 ShareProductDataV1 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 ShareProductDataV1 fromByteBuffer(ByteBuffer b) throws IOException
      Deserializes a ShareProductDataV1 from a ByteBuffer.
      Parameters:
      b - a byte buffer holding serialized data for an instance of this class
      Returns:
      a ShareProductDataV1 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.
    • getName

      public String getName()
      Gets the value of the 'name' field.
      Returns:
      The value of the 'name' field.
    • setName

      public void setName(String value)
      Sets the value of the 'name' field.
      Parameters:
      value - the value to set.
    • getShortName

      public String getShortName()
      Gets the value of the 'shortName' field.
      Returns:
      The value of the 'shortName' field.
    • setShortName

      public void setShortName(String value)
      Sets the value of the 'shortName' field.
      Parameters:
      value - the value to set.
    • getDescription

      public String getDescription()
      Gets the value of the 'description' field.
      Returns:
      The value of the 'description' field.
    • setDescription

      public void setDescription(String value)
      Sets the value of the 'description' 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.
    • getCurrency

      public CurrencyDataV1 getCurrency()
      Gets the value of the 'currency' field.
      Returns:
      The value of the 'currency' field.
    • setCurrency

      public void setCurrency(CurrencyDataV1 value)
      Sets the value of the 'currency' field.
      Parameters:
      value - the value to set.
    • getTotalShares

      public Long getTotalShares()
      Gets the value of the 'totalShares' field.
      Returns:
      The value of the 'totalShares' field.
    • setTotalShares

      public void setTotalShares(Long value)
      Sets the value of the 'totalShares' field.
      Parameters:
      value - the value to set.
    • getTotalSharesIssued

      public Long getTotalSharesIssued()
      Gets the value of the 'totalSharesIssued' field.
      Returns:
      The value of the 'totalSharesIssued' field.
    • setTotalSharesIssued

      public void setTotalSharesIssued(Long value)
      Sets the value of the 'totalSharesIssued' field.
      Parameters:
      value - the value to set.
    • getUnitPrice

      public BigDecimal getUnitPrice()
      Gets the value of the 'unitPrice' field.
      Returns:
      The value of the 'unitPrice' field.
    • setUnitPrice

      public void setUnitPrice(BigDecimal value)
      Sets the value of the 'unitPrice' field.
      Parameters:
      value - the value to set.
    • getShareCapital

      public BigDecimal getShareCapital()
      Gets the value of the 'shareCapital' field.
      Returns:
      The value of the 'shareCapital' field.
    • setShareCapital

      public void setShareCapital(BigDecimal value)
      Sets the value of the 'shareCapital' field.
      Parameters:
      value - the value to set.
    • getMinimumShares

      public Long getMinimumShares()
      Gets the value of the 'minimumShares' field.
      Returns:
      The value of the 'minimumShares' field.
    • setMinimumShares

      public void setMinimumShares(Long value)
      Sets the value of the 'minimumShares' field.
      Parameters:
      value - the value to set.
    • getNominalShares

      public Long getNominalShares()
      Gets the value of the 'nominalShares' field.
      Returns:
      The value of the 'nominalShares' field.
    • setNominalShares

      public void setNominalShares(Long value)
      Sets the value of the 'nominalShares' field.
      Parameters:
      value - the value to set.
    • getMaximumShares

      public Long getMaximumShares()
      Gets the value of the 'maximumShares' field.
      Returns:
      The value of the 'maximumShares' field.
    • setMaximumShares

      public void setMaximumShares(Long value)
      Sets the value of the 'maximumShares' field.
      Parameters:
      value - the value to set.
    • getMarketPrice

      public List<ShareProductMarketPriceDataV1> getMarketPrice()
      Gets the value of the 'marketPrice' field.
      Returns:
      The value of the 'marketPrice' field.
    • setMarketPrice

      public void setMarketPrice(List<ShareProductMarketPriceDataV1> value)
      Sets the value of the 'marketPrice' field.
      Parameters:
      value - the value to set.
    • getCharges

      public List<ChargeDataV1> getCharges()
      Gets the value of the 'charges' field.
      Returns:
      The value of the 'charges' field.
    • setCharges

      public void setCharges(List<ChargeDataV1> value)
      Sets the value of the 'charges' field.
      Parameters:
      value - the value to set.
    • getAllowDividendCalculationForInactiveClients

      public Boolean getAllowDividendCalculationForInactiveClients()
      Gets the value of the 'allowDividendCalculationForInactiveClients' field.
      Returns:
      The value of the 'allowDividendCalculationForInactiveClients' field.
    • setAllowDividendCalculationForInactiveClients

      public void setAllowDividendCalculationForInactiveClients(Boolean value)
      Sets the value of the 'allowDividendCalculationForInactiveClients' field.
      Parameters:
      value - the value to set.
    • getLockinPeriod

      public Integer getLockinPeriod()
      Gets the value of the 'lockinPeriod' field.
      Returns:
      The value of the 'lockinPeriod' field.
    • setLockinPeriod

      public void setLockinPeriod(Integer value)
      Sets the value of the 'lockinPeriod' field.
      Parameters:
      value - the value to set.
    • getLockPeriodTypeEnum

      public EnumOptionDataV1 getLockPeriodTypeEnum()
      Gets the value of the 'lockPeriodTypeEnum' field.
      Returns:
      The value of the 'lockPeriodTypeEnum' field.
    • setLockPeriodTypeEnum

      public void setLockPeriodTypeEnum(EnumOptionDataV1 value)
      Sets the value of the 'lockPeriodTypeEnum' field.
      Parameters:
      value - the value to set.
    • getMinimumActivePeriod

      public Integer getMinimumActivePeriod()
      Gets the value of the 'minimumActivePeriod' field.
      Returns:
      The value of the 'minimumActivePeriod' field.
    • setMinimumActivePeriod

      public void setMinimumActivePeriod(Integer value)
      Sets the value of the 'minimumActivePeriod' field.
      Parameters:
      value - the value to set.
    • getMinimumActivePeriodForDividendsTypeEnum

      public EnumOptionDataV1 getMinimumActivePeriodForDividendsTypeEnum()
      Gets the value of the 'minimumActivePeriodForDividendsTypeEnum' field.
      Returns:
      The value of the 'minimumActivePeriodForDividendsTypeEnum' field.
    • setMinimumActivePeriodForDividendsTypeEnum

      public void setMinimumActivePeriodForDividendsTypeEnum(EnumOptionDataV1 value)
      Sets the value of the 'minimumActivePeriodForDividendsTypeEnum' field.
      Parameters:
      value - the value to set.
    • newBuilder

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

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

      public static ShareProductDataV1.Builder newBuilder(ShareProductDataV1 other)
      Creates a new ShareProductDataV1 RecordBuilder by copying an existing ShareProductDataV1 instance.
      Parameters:
      other - The existing instance to copy.
      Returns:
      A new ShareProductDataV1 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