java.lang.Object
org.apache.fineract.infrastructure.core.domain.AbstractPersistableCustom<Long>
org.apache.fineract.portfolio.shareaccounts.domain.ShareAccount
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.Persistable<Long>

@Entity public class ShareAccount extends org.apache.fineract.infrastructure.core.domain.AbstractPersistableCustom<Long>
See Also:
  • Field Details

    • status

      protected Integer status
    • submittedBy

      protected org.apache.fineract.useradministration.domain.AppUser submittedBy
    • approvedDate

      protected LocalDate approvedDate
    • approvedBy

      protected org.apache.fineract.useradministration.domain.AppUser approvedBy
    • rejectedDate

      protected LocalDate rejectedDate
    • rejectedBy

      protected org.apache.fineract.useradministration.domain.AppUser rejectedBy
    • activatedDate

      protected LocalDate activatedDate
    • activatedBy

      protected org.apache.fineract.useradministration.domain.AppUser activatedBy
    • closedDate

      protected LocalDate closedDate
    • closedBy

      protected org.apache.fineract.useradministration.domain.AppUser closedBy
    • modifiedDate

      protected LocalDateTime modifiedDate
    • modifiedBy

      protected org.apache.fineract.useradministration.domain.AppUser modifiedBy
    • accountNumberRequiresAutoGeneration

      protected boolean accountNumberRequiresAutoGeneration
  • Constructor Details

    • ShareAccount

      protected ShareAccount()
    • ShareAccount

      public ShareAccount(org.apache.fineract.portfolio.client.domain.Client client, ShareProduct shareProduct, String externalId, org.apache.fineract.organisation.monetary.domain.MonetaryCurrency currency, org.apache.fineract.portfolio.savings.domain.SavingsAccount savingsAccount, String accountNo, Long totalSharesApproved, Long totalSharesPending, Set<ShareAccountTransaction> purchasedShares, Boolean allowDividendCalculationForInactiveClients, Integer lockinPeriodFrequency, org.apache.fineract.portfolio.common.domain.PeriodFrequencyType lockPeriodType, Integer minimumActivePeriodFrequency, org.apache.fineract.portfolio.common.domain.PeriodFrequencyType minimumActivePeriodType, Set<ShareAccountCharge> charges, org.apache.fineract.useradministration.domain.AppUser submittedBy, LocalDate submittedDate, org.apache.fineract.useradministration.domain.AppUser approvedBy, LocalDate approvedDate, org.apache.fineract.useradministration.domain.AppUser rejectedBy, LocalDate rejectedDate, org.apache.fineract.useradministration.domain.AppUser activatedBy, LocalDate activatedDate, org.apache.fineract.useradministration.domain.AppUser closedBy, LocalDate closedDate, org.apache.fineract.useradministration.domain.AppUser modifiedBy, LocalDateTime modifiedDate)
  • Method Details

    • setShareProduct

      public boolean setShareProduct(ShareProduct shareProduct)
    • getShareProduct

      public ShareProduct getShareProduct()
    • setSubmittedDate

      public boolean setSubmittedDate(LocalDate submittedDate)
    • setApprovedDate

      public boolean setApprovedDate(LocalDate approvedDate)
    • setExternalId

      public boolean setExternalId(String externalId)
    • setSavingsAccount

      public boolean setSavingsAccount(org.apache.fineract.portfolio.savings.domain.SavingsAccount savingsAccount)
    • setPurchasedShares

      public boolean setPurchasedShares(Set<ShareAccountTransaction> purchasedShares)
    • addTransaction

      public void addTransaction(ShareAccountTransaction transaction)
    • setAllowDividendCalculationForInactiveClients

      public boolean setAllowDividendCalculationForInactiveClients(Boolean allowDividendCalculationForInactiveClients)
    • setLockPeriod

      public boolean setLockPeriod(Integer lockinPeriod)
    • setLockPeriodFrequencyEnum

      public boolean setLockPeriodFrequencyEnum(org.apache.fineract.portfolio.common.domain.PeriodFrequencyType lockinPeriodFrequencyType)
    • setminimumActivePeriod

      public boolean setminimumActivePeriod(Integer minimumActivePeriodFrequency)
    • setminimumActivePeriodTypeEnum

      public boolean setminimumActivePeriodTypeEnum(org.apache.fineract.portfolio.common.domain.PeriodFrequencyType minimumActivePeriodForDividends)
    • setCharges

      public boolean setCharges(Set<ShareAccountCharge> charges)
    • updateAccountNumber

      public void updateAccountNumber(String accountNo)
    • isAccountNumberRequiresAutoGeneration

      public boolean isAccountNumberRequiresAutoGeneration()
    • getClientId

      public Long getClientId()
    • getClientName

      public String getClientName()
    • getClient

      public org.apache.fineract.portfolio.client.domain.Client getClient()
    • getSavingsAccountNo

      public String getSavingsAccountNo()
    • addAddtionalShares

      public void addAddtionalShares(Set<ShareAccountTransaction> additionalShares)
    • getShareAccountTransactions

      public Set<ShareAccountTransaction> getShareAccountTransactions()
    • getChargeTransactions

      public Set<ShareAccountTransaction> getChargeTransactions()
    • updateRequestedShares

      public void updateRequestedShares(ShareAccountTransaction purchased)
    • addAdditionalPurchasedShares

      public void addAdditionalPurchasedShares(ShareAccountTransaction purchased)
    • addShareAccountCharge

      public void addShareAccountCharge(ShareAccountCharge charge)
    • approve

      public void approve(LocalDate approvedDate, org.apache.fineract.useradministration.domain.AppUser approvedUser)
    • activate

      public void activate(LocalDate approvedDate, org.apache.fineract.useradministration.domain.AppUser approvedUser)
    • undoApprove

      public void undoApprove()
    • reject

      public void reject(LocalDate rejectedDate, org.apache.fineract.useradministration.domain.AppUser rejectedUser)
    • close

      public void close(LocalDate closedDate, org.apache.fineract.useradministration.domain.AppUser closedBy)
    • getAccountNumber

      public String getAccountNumber()
    • retrievePurchasedShares

      public ShareAccountTransaction retrievePurchasedShares(Long id)
    • getCharges

      public Set<ShareAccountCharge> getCharges()
    • addChargeTransaction

      public void addChargeTransaction(ShareAccountTransaction chargeTransaction)
    • getPendingForApprovalSharePurchaseTransactions

      public Set<ShareAccountTransaction> getPendingForApprovalSharePurchaseTransactions()
    • getCurrency

      public org.apache.fineract.organisation.monetary.domain.MonetaryCurrency getCurrency()
    • updateApprovedShares

      public void updateApprovedShares(Long shares)
    • getTotalApprovedShares

      public Long getTotalApprovedShares()
    • removePendingShares

      public void removePendingShares(Long totalShares)
    • getOfficeId

      public Long getOfficeId()
    • setTotalPendingShares

      public void setTotalPendingShares(Long shares)
    • getShareAccountTransaction

      public ShareAccountTransaction getShareAccountTransaction(ShareAccountTransaction transaction)
    • getSubmittedDate

      public LocalDate getSubmittedDate()
    • getApprovedDate

      public LocalDate getApprovedDate()
    • removeTransactions

      public void removeTransactions()
    • removeCharges

      public void removeCharges()
    • addCharges

      public void addCharges(Set<ShareAccountCharge> charges)
    • getLockinPeriodFrequency

      public Integer getLockinPeriodFrequency()
    • getLockinPeriodFrequencyType

      public org.apache.fineract.portfolio.common.domain.PeriodFrequencyType getLockinPeriodFrequencyType()
    • getActivatedDate

      public LocalDate getActivatedDate()
    • status

      public Integer status()