Class CalendarDataV1
java.lang.Object
org.apache.avro.specific.SpecificRecordBase
org.apache.fineract.avro.generic.v1.CalendarDataV1
- 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 CalendarDataV1
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord, ByteBufferSerializable
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRecordBuilder for CalendarDataV1 instances. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.CalendarDataV1(Long id, Long calendarInstanceId, Long entityId, EnumOptionDataV1 entityType, String title, String description, String location, String startDate, String endDate, String meetingTime, Integer duration, EnumOptionDataV1 type, Boolean repeating, String recurrence, EnumOptionDataV1 frequency, Integer interval, EnumOptionDataV1 repeatsOnDay, EnumOptionDataV1 repeatsOnNthDayOfMonth, EnumOptionDataV1 remindBy, Integer firstReminder, Integer secondReminder, List<String> recurringDates, List<String> nextTenRecurringDates, String humanReadable, String recentEligibleMeetingDate, String createdDate, String lastUpdatedDate, Long createdByUserId, String createdByUsername, Long lastUpdatedByUserId, String lastUpdatedByUsername, Integer repeatsOnDayOfMonth) All-args constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.avro.message.BinaryMessageDecoder<CalendarDataV1> createDecoder(org.apache.avro.message.SchemaStore resolver) Create a new BinaryMessageDecoder instance for this class that uses the specifiedSchemaStore.voidcustomDecode(org.apache.avro.io.ResolvingDecoder in) voidcustomEncode(org.apache.avro.io.Encoder out) static CalendarDataV1Deserializes a CalendarDataV1 from a ByteBuffer.get(int field$) Gets the value of the 'calendarInstanceId' field.static org.apache.avro.SchemaGets the value of the 'createdByUserId' field.Gets the value of the 'createdByUsername' field.Gets the value of the 'createdDate' field.static org.apache.avro.message.BinaryMessageDecoder<CalendarDataV1> Return the BinaryMessageDecoder instance used by this class.Gets the value of the 'description' field.Gets the value of the 'duration' field.static org.apache.avro.message.BinaryMessageEncoder<CalendarDataV1> Return the BinaryMessageEncoder instance used by this class.Gets the value of the 'endDate' field.Gets the value of the 'entityId' field.Gets the value of the 'entityType' field.Gets the value of the 'firstReminder' field.Gets the value of the 'frequency' field.Gets the value of the 'humanReadable' field.getId()Gets the value of the 'id' field.Gets the value of the 'interval' field.Gets the value of the 'lastUpdatedByUserId' field.Gets the value of the 'lastUpdatedByUsername' field.Gets the value of the 'lastUpdatedDate' field.Gets the value of the 'location' field.Gets the value of the 'meetingTime' field.Gets the value of the 'nextTenRecurringDates' field.Gets the value of the 'recentEligibleMeetingDate' field.Gets the value of the 'recurrence' field.Gets the value of the 'recurringDates' field.Gets the value of the 'remindBy' field.Gets the value of the 'repeating' field.Gets the value of the 'repeatsOnDay' field.Gets the value of the 'repeatsOnDayOfMonth' field.Gets the value of the 'repeatsOnNthDayOfMonth' field.org.apache.avro.SchemaGets the value of the 'secondReminder' field.org.apache.avro.specific.SpecificDataGets the value of the 'startDate' field.getTitle()Gets the value of the 'title' field.getType()Gets the value of the 'type' field.protected booleanstatic CalendarDataV1.BuilderCreates a new CalendarDataV1 RecordBuilder.static CalendarDataV1.BuildernewBuilder(CalendarDataV1 other) Creates a new CalendarDataV1 RecordBuilder by copying an existing CalendarDataV1 instance.static CalendarDataV1.BuildernewBuilder(CalendarDataV1.Builder other) Creates a new CalendarDataV1 RecordBuilder by copying an existing Builder.voidvoidvoidsetCalendarInstanceId(Long value) Sets the value of the 'calendarInstanceId' field.voidsetCreatedByUserId(Long value) Sets the value of the 'createdByUserId' field.voidsetCreatedByUsername(String value) Sets the value of the 'createdByUsername' field.voidsetCreatedDate(String value) Sets the value of the 'createdDate' field.voidsetDescription(String value) Sets the value of the 'description' field.voidsetDuration(Integer value) Sets the value of the 'duration' field.voidsetEndDate(String value) Sets the value of the 'endDate' field.voidsetEntityId(Long value) Sets the value of the 'entityId' field.voidsetEntityType(EnumOptionDataV1 value) Sets the value of the 'entityType' field.voidsetFirstReminder(Integer value) Sets the value of the 'firstReminder' field.voidsetFrequency(EnumOptionDataV1 value) Sets the value of the 'frequency' field.voidsetHumanReadable(String value) Sets the value of the 'humanReadable' field.voidSets the value of the 'id' field.voidsetInterval(Integer value) Sets the value of the 'interval' field.voidsetLastUpdatedByUserId(Long value) Sets the value of the 'lastUpdatedByUserId' field.voidsetLastUpdatedByUsername(String value) Sets the value of the 'lastUpdatedByUsername' field.voidsetLastUpdatedDate(String value) Sets the value of the 'lastUpdatedDate' field.voidsetLocation(String value) Sets the value of the 'location' field.voidsetMeetingTime(String value) Sets the value of the 'meetingTime' field.voidsetNextTenRecurringDates(List<String> value) Sets the value of the 'nextTenRecurringDates' field.voidSets the value of the 'recentEligibleMeetingDate' field.voidsetRecurrence(String value) Sets the value of the 'recurrence' field.voidsetRecurringDates(List<String> value) Sets the value of the 'recurringDates' field.voidsetRemindBy(EnumOptionDataV1 value) Sets the value of the 'remindBy' field.voidsetRepeating(Boolean value) Sets the value of the 'repeating' field.voidsetRepeatsOnDay(EnumOptionDataV1 value) Sets the value of the 'repeatsOnDay' field.voidsetRepeatsOnDayOfMonth(Integer value) Sets the value of the 'repeatsOnDayOfMonth' field.voidSets the value of the 'repeatsOnNthDayOfMonth' field.voidsetSecondReminder(Integer value) Sets the value of the 'secondReminder' field.voidsetStartDate(String value) Sets the value of the 'startDate' field.voidSets the value of the 'title' field.voidsetType(EnumOptionDataV1 value) Sets the value of the 'type' field.Serializes this CalendarDataV1 to a ByteBuffer.voidMethods inherited from class org.apache.avro.specific.SpecificRecordBase
compareTo, equals, get, getConversion, getConversion, 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
-
CalendarDataV1
public CalendarDataV1()Default constructor. Note that this does not initialize fields to their default values from the schema. If that is desired then one should usenewBuilder(). -
CalendarDataV1
public CalendarDataV1(Long id, Long calendarInstanceId, Long entityId, EnumOptionDataV1 entityType, String title, String description, String location, String startDate, String endDate, String meetingTime, Integer duration, EnumOptionDataV1 type, Boolean repeating, String recurrence, EnumOptionDataV1 frequency, Integer interval, EnumOptionDataV1 repeatsOnDay, EnumOptionDataV1 repeatsOnNthDayOfMonth, EnumOptionDataV1 remindBy, Integer firstReminder, Integer secondReminder, List<String> recurringDates, List<String> nextTenRecurringDates, String humanReadable, String recentEligibleMeetingDate, String createdDate, String lastUpdatedDate, Long createdByUserId, String createdByUsername, Long lastUpdatedByUserId, String lastUpdatedByUsername, Integer repeatsOnDayOfMonth) All-args constructor.- Parameters:
id- The new value for idcalendarInstanceId- The new value for calendarInstanceIdentityId- The new value for entityIdentityType- The new value for entityTypetitle- The new value for titledescription- The new value for descriptionlocation- The new value for locationstartDate- The new value for startDateendDate- The new value for endDatemeetingTime- The new value for meetingTimeduration- The new value for durationtype- The new value for typerepeating- The new value for repeatingrecurrence- The new value for recurrencefrequency- The new value for frequencyinterval- The new value for intervalrepeatsOnDay- The new value for repeatsOnDayrepeatsOnNthDayOfMonth- The new value for repeatsOnNthDayOfMonthremindBy- The new value for remindByfirstReminder- The new value for firstRemindersecondReminder- The new value for secondReminderrecurringDates- The new value for recurringDatesnextTenRecurringDates- The new value for nextTenRecurringDateshumanReadable- The new value for humanReadablerecentEligibleMeetingDate- The new value for recentEligibleMeetingDatecreatedDate- The new value for createdDatelastUpdatedDate- The new value for lastUpdatedDatecreatedByUserId- The new value for createdByUserIdcreatedByUsername- The new value for createdByUsernamelastUpdatedByUserId- The new value for lastUpdatedByUserIdlastUpdatedByUsername- The new value for lastUpdatedByUsernamerepeatsOnDayOfMonth- The new value for repeatsOnDayOfMonth
-
-
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<CalendarDataV1> 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 CalendarDataV1 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 CalendarDataV1 from a ByteBuffer.- Parameters:
b- a byte buffer holding serialized data for an instance of this class- Returns:
- a CalendarDataV1 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.
-
getCalendarInstanceId
Gets the value of the 'calendarInstanceId' field.- Returns:
- The value of the 'calendarInstanceId' field.
-
setCalendarInstanceId
Sets the value of the 'calendarInstanceId' field.- Parameters:
value- the value to set.
-
getEntityId
Gets the value of the 'entityId' field.- Returns:
- The value of the 'entityId' field.
-
setEntityId
Sets the value of the 'entityId' field.- Parameters:
value- the value to set.
-
getEntityType
Gets the value of the 'entityType' field.- Returns:
- The value of the 'entityType' field.
-
setEntityType
Sets the value of the 'entityType' field.- Parameters:
value- the value to set.
-
getTitle
Gets the value of the 'title' field.- Returns:
- The value of the 'title' field.
-
setTitle
Sets the value of the 'title' 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.
-
getLocation
Gets the value of the 'location' field.- Returns:
- The value of the 'location' field.
-
setLocation
Sets the value of the 'location' field.- Parameters:
value- the value to set.
-
getStartDate
Gets the value of the 'startDate' field.- Returns:
- The value of the 'startDate' field.
-
setStartDate
Sets the value of the 'startDate' field.- Parameters:
value- the value to set.
-
getEndDate
Gets the value of the 'endDate' field.- Returns:
- The value of the 'endDate' field.
-
setEndDate
Sets the value of the 'endDate' field.- Parameters:
value- the value to set.
-
getMeetingTime
Gets the value of the 'meetingTime' field.- Returns:
- The value of the 'meetingTime' field.
-
setMeetingTime
Sets the value of the 'meetingTime' field.- Parameters:
value- the value to set.
-
getDuration
Gets the value of the 'duration' field.- Returns:
- The value of the 'duration' field.
-
setDuration
Sets the value of the 'duration' field.- Parameters:
value- the value to set.
-
getType
Gets the value of the 'type' field.- Returns:
- The value of the 'type' field.
-
setType
Sets the value of the 'type' field.- Parameters:
value- the value to set.
-
getRepeating
Gets the value of the 'repeating' field.- Returns:
- The value of the 'repeating' field.
-
setRepeating
Sets the value of the 'repeating' field.- Parameters:
value- the value to set.
-
getRecurrence
Gets the value of the 'recurrence' field.- Returns:
- The value of the 'recurrence' field.
-
setRecurrence
Sets the value of the 'recurrence' field.- Parameters:
value- the value to set.
-
getFrequency
Gets the value of the 'frequency' field.- Returns:
- The value of the 'frequency' field.
-
setFrequency
Sets the value of the 'frequency' field.- Parameters:
value- the value to set.
-
getInterval
Gets the value of the 'interval' field.- Returns:
- The value of the 'interval' field.
-
setInterval
Sets the value of the 'interval' field.- Parameters:
value- the value to set.
-
getRepeatsOnDay
Gets the value of the 'repeatsOnDay' field.- Returns:
- The value of the 'repeatsOnDay' field.
-
setRepeatsOnDay
Sets the value of the 'repeatsOnDay' field.- Parameters:
value- the value to set.
-
getRepeatsOnNthDayOfMonth
Gets the value of the 'repeatsOnNthDayOfMonth' field.- Returns:
- The value of the 'repeatsOnNthDayOfMonth' field.
-
setRepeatsOnNthDayOfMonth
Sets the value of the 'repeatsOnNthDayOfMonth' field.- Parameters:
value- the value to set.
-
getRemindBy
Gets the value of the 'remindBy' field.- Returns:
- The value of the 'remindBy' field.
-
setRemindBy
Sets the value of the 'remindBy' field.- Parameters:
value- the value to set.
-
getFirstReminder
Gets the value of the 'firstReminder' field.- Returns:
- The value of the 'firstReminder' field.
-
setFirstReminder
Sets the value of the 'firstReminder' field.- Parameters:
value- the value to set.
-
getSecondReminder
Gets the value of the 'secondReminder' field.- Returns:
- The value of the 'secondReminder' field.
-
setSecondReminder
Sets the value of the 'secondReminder' field.- Parameters:
value- the value to set.
-
getRecurringDates
Gets the value of the 'recurringDates' field.- Returns:
- The value of the 'recurringDates' field.
-
setRecurringDates
Sets the value of the 'recurringDates' field.- Parameters:
value- the value to set.
-
getNextTenRecurringDates
Gets the value of the 'nextTenRecurringDates' field.- Returns:
- The value of the 'nextTenRecurringDates' field.
-
setNextTenRecurringDates
Sets the value of the 'nextTenRecurringDates' field.- Parameters:
value- the value to set.
-
getHumanReadable
Gets the value of the 'humanReadable' field.- Returns:
- The value of the 'humanReadable' field.
-
setHumanReadable
Sets the value of the 'humanReadable' field.- Parameters:
value- the value to set.
-
getRecentEligibleMeetingDate
Gets the value of the 'recentEligibleMeetingDate' field.- Returns:
- The value of the 'recentEligibleMeetingDate' field.
-
setRecentEligibleMeetingDate
Sets the value of the 'recentEligibleMeetingDate' field.- Parameters:
value- the value to set.
-
getCreatedDate
Gets the value of the 'createdDate' field.- Returns:
- The value of the 'createdDate' field.
-
setCreatedDate
Sets the value of the 'createdDate' field.- Parameters:
value- the value to set.
-
getLastUpdatedDate
Gets the value of the 'lastUpdatedDate' field.- Returns:
- The value of the 'lastUpdatedDate' field.
-
setLastUpdatedDate
Sets the value of the 'lastUpdatedDate' field.- Parameters:
value- the value to set.
-
getCreatedByUserId
Gets the value of the 'createdByUserId' field.- Returns:
- The value of the 'createdByUserId' field.
-
setCreatedByUserId
Sets the value of the 'createdByUserId' field.- Parameters:
value- the value to set.
-
getCreatedByUsername
Gets the value of the 'createdByUsername' field.- Returns:
- The value of the 'createdByUsername' field.
-
setCreatedByUsername
Sets the value of the 'createdByUsername' field.- Parameters:
value- the value to set.
-
getLastUpdatedByUserId
Gets the value of the 'lastUpdatedByUserId' field.- Returns:
- The value of the 'lastUpdatedByUserId' field.
-
setLastUpdatedByUserId
Sets the value of the 'lastUpdatedByUserId' field.- Parameters:
value- the value to set.
-
getLastUpdatedByUsername
Gets the value of the 'lastUpdatedByUsername' field.- Returns:
- The value of the 'lastUpdatedByUsername' field.
-
setLastUpdatedByUsername
Sets the value of the 'lastUpdatedByUsername' field.- Parameters:
value- the value to set.
-
getRepeatsOnDayOfMonth
Gets the value of the 'repeatsOnDayOfMonth' field.- Returns:
- The value of the 'repeatsOnDayOfMonth' field.
-
setRepeatsOnDayOfMonth
Sets the value of the 'repeatsOnDayOfMonth' field.- Parameters:
value- the value to set.
-
newBuilder
Creates a new CalendarDataV1 RecordBuilder.- Returns:
- A new CalendarDataV1 RecordBuilder
-
newBuilder
Creates a new CalendarDataV1 RecordBuilder by copying an existing Builder.- Parameters:
other- The existing builder to copy.- Returns:
- A new CalendarDataV1 RecordBuilder
-
newBuilder
Creates a new CalendarDataV1 RecordBuilder by copying an existing CalendarDataV1 instance.- Parameters:
other- The existing instance to copy.- Returns:
- A new CalendarDataV1 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
-
hasCustomCoders
protected boolean hasCustomCoders()- Overrides:
hasCustomCodersin classorg.apache.avro.specific.SpecificRecordBase
-
customEncode
- Overrides:
customEncodein classorg.apache.avro.specific.SpecificRecordBase- Throws:
IOException
-
customDecode
- Overrides:
customDecodein classorg.apache.avro.specific.SpecificRecordBase- Throws:
IOException
-