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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRecordBuilder for ShareProductDataV1 instances. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.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. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.avro.message.BinaryMessageDecoder<ShareProductDataV1> createDecoder(org.apache.avro.message.SchemaStore resolver) Create a new BinaryMessageDecoder instance for this class that uses the specifiedSchemaStore.static ShareProductDataV1Deserializes a ShareProductDataV1 from a ByteBuffer.get(int field$) Gets the value of the 'allowDividendCalculationForInactiveClients' field.Gets the value of the 'charges' field.static org.apache.avro.SchemaGets the value of the 'currency' field.static org.apache.avro.message.BinaryMessageDecoder<ShareProductDataV1> Return the BinaryMessageDecoder instance used by this class.Gets the value of the 'description' field.static org.apache.avro.message.BinaryMessageEncoder<ShareProductDataV1> Return the BinaryMessageEncoder instance used by this class.Gets the value of the 'externalId' field.getId()Gets the value of the 'id' field.Gets the value of the 'lockinPeriod' field.Gets the value of the 'lockPeriodTypeEnum' field.Gets the value of the 'marketPrice' field.Gets the value of the 'maximumShares' field.Gets the value of the 'minimumActivePeriod' field.Gets the value of the 'minimumActivePeriodForDividendsTypeEnum' field.Gets the value of the 'minimumShares' field.getName()Gets the value of the 'name' field.Gets the value of the 'nominalShares' field.org.apache.avro.SchemaGets the value of the 'shareCapital' field.Gets the value of the 'shortName' field.org.apache.avro.specific.SpecificDataGets the value of the 'totalShares' field.Gets the value of the 'totalSharesIssued' field.Gets the value of the 'unitPrice' field.static ShareProductDataV1.BuilderCreates a new ShareProductDataV1 RecordBuilder.static ShareProductDataV1.BuildernewBuilder(ShareProductDataV1 other) Creates a new ShareProductDataV1 RecordBuilder by copying an existing ShareProductDataV1 instance.static ShareProductDataV1.BuilderCreates a new ShareProductDataV1 RecordBuilder by copying an existing Builder.voidvoidvoidSets the value of the 'allowDividendCalculationForInactiveClients' field.voidsetCharges(List<ChargeDataV1> value) Sets the value of the 'charges' field.voidsetCurrency(CurrencyDataV1 value) Sets the value of the 'currency' field.voidsetDescription(String value) Sets the value of the 'description' field.voidsetExternalId(String value) Sets the value of the 'externalId' field.voidSets the value of the 'id' field.voidsetLockinPeriod(Integer value) Sets the value of the 'lockinPeriod' field.voidSets the value of the 'lockPeriodTypeEnum' field.voidSets the value of the 'marketPrice' field.voidsetMaximumShares(Long value) Sets the value of the 'maximumShares' field.voidsetMinimumActivePeriod(Integer value) Sets the value of the 'minimumActivePeriod' field.voidSets the value of the 'minimumActivePeriodForDividendsTypeEnum' field.voidsetMinimumShares(Long value) Sets the value of the 'minimumShares' field.voidSets the value of the 'name' field.voidsetNominalShares(Long value) Sets the value of the 'nominalShares' field.voidsetShareCapital(BigDecimal value) Sets the value of the 'shareCapital' field.voidsetShortName(String value) Sets the value of the 'shortName' field.voidsetTotalShares(Long value) Sets the value of the 'totalShares' field.voidsetTotalSharesIssued(Long value) Sets the value of the 'totalSharesIssued' field.voidsetUnitPrice(BigDecimal value) Sets the value of the 'unitPrice' field.Serializes this ShareProductDataV1 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
-
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 usenewBuilder(). -
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 idname- The new value for nameshortName- The new value for shortNamedescription- The new value for descriptionexternalId- The new value for externalIdcurrency- The new value for currencytotalShares- The new value for totalSharestotalSharesIssued- The new value for totalSharesIssuedunitPrice- The new value for unitPriceshareCapital- The new value for shareCapitalminimumShares- The new value for minimumSharesnominalShares- The new value for nominalSharesmaximumShares- The new value for maximumSharesmarketPrice- The new value for marketPricecharges- The new value for chargesallowDividendCalculationForInactiveClients- The new value for allowDividendCalculationForInactiveClientslockinPeriod- The new value for lockinPeriodlockPeriodTypeEnum- The new value for lockPeriodTypeEnumminimumActivePeriod- The new value for minimumActivePeriodminimumActivePeriodForDividendsTypeEnum- The new value for minimumActivePeriodForDividendsTypeEnum
-
-
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<ShareProductDataV1> 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 ShareProductDataV1 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 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:
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.
-
getName
Gets the value of the 'name' field.- Returns:
- The value of the 'name' field.
-
setName
Sets the value of the 'name' field.- Parameters:
value- the value to set.
-
getShortName
Gets the value of the 'shortName' field.- Returns:
- The value of the 'shortName' field.
-
setShortName
Sets the value of the 'shortName' field.- Parameters:
value- the value to set.
-
getDescription
Gets the value of the 'description' field.- Returns:
- The value of the 'description' field.
-
setDescription
Sets the value of the 'description' 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.
-
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.
-
getUnitPrice
Gets the value of the 'unitPrice' field.- Returns:
- The value of the 'unitPrice' field.
-
setUnitPrice
Sets the value of the 'unitPrice' field.- Parameters:
value- the value to set.
-
getMarketPrice
Gets the value of the 'marketPrice' field.- Returns:
- The value of the 'marketPrice' field.
-
setMarketPrice
Sets the value of the 'marketPrice' field.- Parameters:
value- the value to set.
-
getCharges
Gets the value of the 'charges' field.- Returns:
- The value of the 'charges' field.
-
setCharges
Sets the value of the 'charges' field.- Parameters:
value- the value to set.
-
getAllowDividendCalculationForInactiveClients
Gets the value of the 'allowDividendCalculationForInactiveClients' field.- Returns:
- The value of the 'allowDividendCalculationForInactiveClients' field.
-
setAllowDividendCalculationForInactiveClients
Sets the value of the 'allowDividendCalculationForInactiveClients' field.- Parameters:
value- the value to set.
-
getLockinPeriod
Gets the value of the 'lockinPeriod' field.- Returns:
- The value of the 'lockinPeriod' field.
-
setLockinPeriod
Sets the value of the 'lockinPeriod' field.- Parameters:
value- the value to set.
-
getLockPeriodTypeEnum
Gets the value of the 'lockPeriodTypeEnum' field.- Returns:
- The value of the 'lockPeriodTypeEnum' field.
-
setLockPeriodTypeEnum
Sets the value of the 'lockPeriodTypeEnum' field.- Parameters:
value- the value to set.
-
getMinimumActivePeriod
Gets the value of the 'minimumActivePeriod' field.- Returns:
- The value of the 'minimumActivePeriod' field.
-
setMinimumActivePeriod
Sets the value of the 'minimumActivePeriod' field.- Parameters:
value- the value to set.
-
getMinimumActivePeriodForDividendsTypeEnum
Gets the value of the 'minimumActivePeriodForDividendsTypeEnum' field.- Returns:
- The value of the 'minimumActivePeriodForDividendsTypeEnum' field.
-
setMinimumActivePeriodForDividendsTypeEnum
Sets the value of the 'minimumActivePeriodForDividendsTypeEnum' field.- Parameters:
value- the value to set.
-
newBuilder
Creates a new ShareProductDataV1 RecordBuilder.- Returns:
- A new ShareProductDataV1 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
-