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:
  • 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 use newBuilder().
    • 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 id
      calendarInstanceId - The new value for calendarInstanceId
      entityId - The new value for entityId
      entityType - The new value for entityType
      title - The new value for title
      description - The new value for description
      location - The new value for location
      startDate - The new value for startDate
      endDate - The new value for endDate
      meetingTime - The new value for meetingTime
      duration - The new value for duration
      type - The new value for type
      repeating - The new value for repeating
      recurrence - The new value for recurrence
      frequency - The new value for frequency
      interval - The new value for interval
      repeatsOnDay - The new value for repeatsOnDay
      repeatsOnNthDayOfMonth - The new value for repeatsOnNthDayOfMonth
      remindBy - The new value for remindBy
      firstReminder - The new value for firstReminder
      secondReminder - The new value for secondReminder
      recurringDates - The new value for recurringDates
      nextTenRecurringDates - The new value for nextTenRecurringDates
      humanReadable - The new value for humanReadable
      recentEligibleMeetingDate - The new value for recentEligibleMeetingDate
      createdDate - The new value for createdDate
      lastUpdatedDate - The new value for lastUpdatedDate
      createdByUserId - The new value for createdByUserId
      createdByUsername - The new value for createdByUsername
      lastUpdatedByUserId - The new value for lastUpdatedByUserId
      lastUpdatedByUsername - The new value for lastUpdatedByUsername
      repeatsOnDayOfMonth - The new value for repeatsOnDayOfMonth
  • Method Details

    • getClassSchema

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

      public static org.apache.avro.message.BinaryMessageEncoder<CalendarDataV1> 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<CalendarDataV1> 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 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 CalendarDataV1 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 CalendarDataV1 fromByteBuffer(ByteBuffer b) throws IOException
      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:
      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.
    • getCalendarInstanceId

      public Long getCalendarInstanceId()
      Gets the value of the 'calendarInstanceId' field.
      Returns:
      The value of the 'calendarInstanceId' field.
    • setCalendarInstanceId

      public void setCalendarInstanceId(Long value)
      Sets the value of the 'calendarInstanceId' field.
      Parameters:
      value - the value to set.
    • getEntityId

      public Long getEntityId()
      Gets the value of the 'entityId' field.
      Returns:
      The value of the 'entityId' field.
    • setEntityId

      public void setEntityId(Long value)
      Sets the value of the 'entityId' field.
      Parameters:
      value - the value to set.
    • getEntityType

      public EnumOptionDataV1 getEntityType()
      Gets the value of the 'entityType' field.
      Returns:
      The value of the 'entityType' field.
    • setEntityType

      public void setEntityType(EnumOptionDataV1 value)
      Sets the value of the 'entityType' field.
      Parameters:
      value - the value to set.
    • getTitle

      public String getTitle()
      Gets the value of the 'title' field.
      Returns:
      The value of the 'title' field.
    • setTitle

      public void setTitle(String value)
      Sets the value of the 'title' 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.
    • getLocation

      public String getLocation()
      Gets the value of the 'location' field.
      Returns:
      The value of the 'location' field.
    • setLocation

      public void setLocation(String value)
      Sets the value of the 'location' field.
      Parameters:
      value - the value to set.
    • getStartDate

      public String getStartDate()
      Gets the value of the 'startDate' field.
      Returns:
      The value of the 'startDate' field.
    • setStartDate

      public void setStartDate(String value)
      Sets the value of the 'startDate' field.
      Parameters:
      value - the value to set.
    • getEndDate

      public String getEndDate()
      Gets the value of the 'endDate' field.
      Returns:
      The value of the 'endDate' field.
    • setEndDate

      public void setEndDate(String value)
      Sets the value of the 'endDate' field.
      Parameters:
      value - the value to set.
    • getMeetingTime

      public String getMeetingTime()
      Gets the value of the 'meetingTime' field.
      Returns:
      The value of the 'meetingTime' field.
    • setMeetingTime

      public void setMeetingTime(String value)
      Sets the value of the 'meetingTime' field.
      Parameters:
      value - the value to set.
    • getDuration

      public Integer getDuration()
      Gets the value of the 'duration' field.
      Returns:
      The value of the 'duration' field.
    • setDuration

      public void setDuration(Integer value)
      Sets the value of the 'duration' field.
      Parameters:
      value - the value to set.
    • getType

      public EnumOptionDataV1 getType()
      Gets the value of the 'type' field.
      Returns:
      The value of the 'type' field.
    • setType

      public void setType(EnumOptionDataV1 value)
      Sets the value of the 'type' field.
      Parameters:
      value - the value to set.
    • getRepeating

      public Boolean getRepeating()
      Gets the value of the 'repeating' field.
      Returns:
      The value of the 'repeating' field.
    • setRepeating

      public void setRepeating(Boolean value)
      Sets the value of the 'repeating' field.
      Parameters:
      value - the value to set.
    • getRecurrence

      public String getRecurrence()
      Gets the value of the 'recurrence' field.
      Returns:
      The value of the 'recurrence' field.
    • setRecurrence

      public void setRecurrence(String value)
      Sets the value of the 'recurrence' field.
      Parameters:
      value - the value to set.
    • getFrequency

      public EnumOptionDataV1 getFrequency()
      Gets the value of the 'frequency' field.
      Returns:
      The value of the 'frequency' field.
    • setFrequency

      public void setFrequency(EnumOptionDataV1 value)
      Sets the value of the 'frequency' field.
      Parameters:
      value - the value to set.
    • getInterval

      public Integer getInterval()
      Gets the value of the 'interval' field.
      Returns:
      The value of the 'interval' field.
    • setInterval

      public void setInterval(Integer value)
      Sets the value of the 'interval' field.
      Parameters:
      value - the value to set.
    • getRepeatsOnDay

      public EnumOptionDataV1 getRepeatsOnDay()
      Gets the value of the 'repeatsOnDay' field.
      Returns:
      The value of the 'repeatsOnDay' field.
    • setRepeatsOnDay

      public void setRepeatsOnDay(EnumOptionDataV1 value)
      Sets the value of the 'repeatsOnDay' field.
      Parameters:
      value - the value to set.
    • getRepeatsOnNthDayOfMonth

      public EnumOptionDataV1 getRepeatsOnNthDayOfMonth()
      Gets the value of the 'repeatsOnNthDayOfMonth' field.
      Returns:
      The value of the 'repeatsOnNthDayOfMonth' field.
    • setRepeatsOnNthDayOfMonth

      public void setRepeatsOnNthDayOfMonth(EnumOptionDataV1 value)
      Sets the value of the 'repeatsOnNthDayOfMonth' field.
      Parameters:
      value - the value to set.
    • getRemindBy

      public EnumOptionDataV1 getRemindBy()
      Gets the value of the 'remindBy' field.
      Returns:
      The value of the 'remindBy' field.
    • setRemindBy

      public void setRemindBy(EnumOptionDataV1 value)
      Sets the value of the 'remindBy' field.
      Parameters:
      value - the value to set.
    • getFirstReminder

      public Integer getFirstReminder()
      Gets the value of the 'firstReminder' field.
      Returns:
      The value of the 'firstReminder' field.
    • setFirstReminder

      public void setFirstReminder(Integer value)
      Sets the value of the 'firstReminder' field.
      Parameters:
      value - the value to set.
    • getSecondReminder

      public Integer getSecondReminder()
      Gets the value of the 'secondReminder' field.
      Returns:
      The value of the 'secondReminder' field.
    • setSecondReminder

      public void setSecondReminder(Integer value)
      Sets the value of the 'secondReminder' field.
      Parameters:
      value - the value to set.
    • getRecurringDates

      public List<String> getRecurringDates()
      Gets the value of the 'recurringDates' field.
      Returns:
      The value of the 'recurringDates' field.
    • setRecurringDates

      public void setRecurringDates(List<String> value)
      Sets the value of the 'recurringDates' field.
      Parameters:
      value - the value to set.
    • getNextTenRecurringDates

      public List<String> getNextTenRecurringDates()
      Gets the value of the 'nextTenRecurringDates' field.
      Returns:
      The value of the 'nextTenRecurringDates' field.
    • setNextTenRecurringDates

      public void setNextTenRecurringDates(List<String> value)
      Sets the value of the 'nextTenRecurringDates' field.
      Parameters:
      value - the value to set.
    • getHumanReadable

      public String getHumanReadable()
      Gets the value of the 'humanReadable' field.
      Returns:
      The value of the 'humanReadable' field.
    • setHumanReadable

      public void setHumanReadable(String value)
      Sets the value of the 'humanReadable' field.
      Parameters:
      value - the value to set.
    • getRecentEligibleMeetingDate

      public String getRecentEligibleMeetingDate()
      Gets the value of the 'recentEligibleMeetingDate' field.
      Returns:
      The value of the 'recentEligibleMeetingDate' field.
    • setRecentEligibleMeetingDate

      public void setRecentEligibleMeetingDate(String value)
      Sets the value of the 'recentEligibleMeetingDate' field.
      Parameters:
      value - the value to set.
    • getCreatedDate

      public String getCreatedDate()
      Gets the value of the 'createdDate' field.
      Returns:
      The value of the 'createdDate' field.
    • setCreatedDate

      public void setCreatedDate(String value)
      Sets the value of the 'createdDate' field.
      Parameters:
      value - the value to set.
    • getLastUpdatedDate

      public String getLastUpdatedDate()
      Gets the value of the 'lastUpdatedDate' field.
      Returns:
      The value of the 'lastUpdatedDate' field.
    • setLastUpdatedDate

      public void setLastUpdatedDate(String value)
      Sets the value of the 'lastUpdatedDate' field.
      Parameters:
      value - the value to set.
    • getCreatedByUserId

      public Long getCreatedByUserId()
      Gets the value of the 'createdByUserId' field.
      Returns:
      The value of the 'createdByUserId' field.
    • setCreatedByUserId

      public void setCreatedByUserId(Long value)
      Sets the value of the 'createdByUserId' field.
      Parameters:
      value - the value to set.
    • getCreatedByUsername

      public String getCreatedByUsername()
      Gets the value of the 'createdByUsername' field.
      Returns:
      The value of the 'createdByUsername' field.
    • setCreatedByUsername

      public void setCreatedByUsername(String value)
      Sets the value of the 'createdByUsername' field.
      Parameters:
      value - the value to set.
    • getLastUpdatedByUserId

      public Long getLastUpdatedByUserId()
      Gets the value of the 'lastUpdatedByUserId' field.
      Returns:
      The value of the 'lastUpdatedByUserId' field.
    • setLastUpdatedByUserId

      public void setLastUpdatedByUserId(Long value)
      Sets the value of the 'lastUpdatedByUserId' field.
      Parameters:
      value - the value to set.
    • getLastUpdatedByUsername

      public String getLastUpdatedByUsername()
      Gets the value of the 'lastUpdatedByUsername' field.
      Returns:
      The value of the 'lastUpdatedByUsername' field.
    • setLastUpdatedByUsername

      public void setLastUpdatedByUsername(String value)
      Sets the value of the 'lastUpdatedByUsername' field.
      Parameters:
      value - the value to set.
    • getRepeatsOnDayOfMonth

      public Integer getRepeatsOnDayOfMonth()
      Gets the value of the 'repeatsOnDayOfMonth' field.
      Returns:
      The value of the 'repeatsOnDayOfMonth' field.
    • setRepeatsOnDayOfMonth

      public void setRepeatsOnDayOfMonth(Integer value)
      Sets the value of the 'repeatsOnDayOfMonth' field.
      Parameters:
      value - the value to set.
    • newBuilder

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

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

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

      protected boolean hasCustomCoders()
      Overrides:
      hasCustomCoders in class org.apache.avro.specific.SpecificRecordBase
    • customEncode

      public void customEncode(org.apache.avro.io.Encoder out) throws IOException
      Overrides:
      customEncode in class org.apache.avro.specific.SpecificRecordBase
      Throws:
      IOException
    • customDecode

      public void customDecode(org.apache.avro.io.ResolvingDecoder in) throws IOException
      Overrides:
      customDecode in class org.apache.avro.specific.SpecificRecordBase
      Throws:
      IOException