java.lang.Object
org.apache.fineract.infrastructure.core.domain.AbstractPersistableCustom<Long>
org.apache.fineract.infrastructure.core.domain.AbstractAuditableCustom
org.apache.fineract.infrastructure.reportmailingjob.domain.ReportMailingJob
All Implemented Interfaces:
Serializable, Cloneable, org.eclipse.persistence.descriptors.changetracking.ChangeTracker, org.eclipse.persistence.internal.descriptors.PersistenceEntity, org.eclipse.persistence.internal.descriptors.PersistenceObject, org.eclipse.persistence.internal.weaving.PersistenceWeaved, org.eclipse.persistence.internal.weaving.PersistenceWeavedChangeTracking, org.eclipse.persistence.internal.weaving.PersistenceWeavedFetchGroups, org.eclipse.persistence.queries.FetchGroupTracker, org.springframework.data.domain.Auditable<Long,Long,LocalDateTime>, org.springframework.data.domain.Persistable<Long>

@Entity public class ReportMailingJob extends org.apache.fineract.infrastructure.core.domain.AbstractAuditableCustom
See Also:
  • Field Summary

    Fields inherited from class org.apache.fineract.infrastructure.core.domain.AbstractPersistableCustom

    _persistence_cacheKey, _persistence_fetchGroup, _persistence_listener, _persistence_primaryKey, _persistence_session, _persistence_shouldRefreshFetchGroup
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    delete the report mailing job, set the isDeleted property to 1 and alter the name
    void
    increase the numberOfRuns by 1
    newInstance(String name, String description, LocalDateTime startDateTime, String recurrence, String emailRecipients, String emailSubject, String emailMessage, ReportMailingJobEmailAttachmentFileFormat emailAttachmentFileFormat, Report stretchyReport, String stretchyReportParamMap, boolean isActive, org.apache.fineract.useradministration.domain.AppUser runAsUser)
    create a new instance of the ReportMailingJob for a new entry
    newInstance(org.apache.fineract.infrastructure.core.api.JsonCommand jsonCommand, Report stretchyReport, org.apache.fineract.useradministration.domain.AppUser runAsUser)
    create a new instance of the ReportmailingJob for a new entry
    update(org.apache.fineract.infrastructure.core.api.JsonCommand jsonCommand)
    Update the ReportMailingJob entity

    Methods inherited from class org.apache.fineract.infrastructure.core.domain.AbstractAuditableCustom

    _persistence_get, _persistence_get_createdBy, _persistence_get_createdDate, _persistence_get_lastModifiedBy, _persistence_get_lastModifiedDate, _persistence_new, _persistence_post_clone, _persistence_set, _persistence_set_createdBy, _persistence_set_createdDate, _persistence_set_lastModifiedBy, _persistence_set_lastModifiedDate, getCreatedBy, getCreatedDate, getLastModifiedBy, getLastModifiedDate, setCreatedBy, setCreatedDate, setLastModifiedBy, setLastModifiedDate

    Methods inherited from class org.apache.fineract.infrastructure.core.domain.AbstractPersistableCustom

    _persistence_checkFetched, _persistence_checkFetchedForSet, _persistence_get_id, _persistence_getCacheKey, _persistence_getFetchGroup, _persistence_getId, _persistence_getPropertyChangeListener, _persistence_getSession, _persistence_isAttributeFetched, _persistence_propertyChange, _persistence_resetFetchGroup, _persistence_set_id, _persistence_setCacheKey, _persistence_setFetchGroup, _persistence_setId, _persistence_setPropertyChangeListener, _persistence_setSession, _persistence_setShouldRefreshFetchGroup, _persistence_shallow_clone, _persistence_shouldRefreshFetchGroup, getId, isNew, setId

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.data.domain.Persistable

    getId, isNew

    Methods inherited from interface org.eclipse.persistence.internal.descriptors.PersistenceObject

    _persistence_shallow_clone
  • Constructor Details

    • ReportMailingJob

      public ReportMailingJob()
  • Method Details

    • newInstance

      public static ReportMailingJob newInstance(String name, String description, LocalDateTime startDateTime, String recurrence, String emailRecipients, String emailSubject, String emailMessage, ReportMailingJobEmailAttachmentFileFormat emailAttachmentFileFormat, Report stretchyReport, String stretchyReportParamMap, boolean isActive, org.apache.fineract.useradministration.domain.AppUser runAsUser)
      create a new instance of the ReportMailingJob for a new entry
      Returns:
      ReportMailingJob object
    • newInstance

      public static ReportMailingJob newInstance(org.apache.fineract.infrastructure.core.api.JsonCommand jsonCommand, Report stretchyReport, org.apache.fineract.useradministration.domain.AppUser runAsUser)
      create a new instance of the ReportmailingJob for a new entry
      Returns:
      ReportMailingJob object
    • update

      public Map<String,Object> update(org.apache.fineract.infrastructure.core.api.JsonCommand jsonCommand)
      Update the ReportMailingJob entity
      Parameters:
      jsonCommand - JsonCommand object
      Returns:
      map of string to object
    • delete

      public void delete()
      delete the report mailing job, set the isDeleted property to 1 and alter the name
    • increaseNumberOfRunsByOne

      public void increaseNumberOfRunsByOne()
      increase the numberOfRuns by 1