Interface AccountStmtRepository

  • All Superinterfaces:
    org.springframework.data.repository.CrudRepository<AccountStmt,​String>, org.springframework.data.repository.PagingAndSortingRepository<AccountStmt,​String>, org.springframework.data.repository.Repository<AccountStmt,​String>

    public interface AccountStmtRepository
    extends org.springframework.data.repository.PagingAndSortingRepository<AccountStmt,​String>
    • Method Detail

      • findFirstByAccountAndStmtStatusAndPstTimeLessThanOrderByPstTimeDescStmtSeqNbrDesc

        Optional<AccountStmt> findFirstByAccountAndStmtStatusAndPstTimeLessThanOrderByPstTimeDescStmtSeqNbrDesc​(LedgerAccount account,
                                                                                                                StmtStatus stmtStatus,
                                                                                                                LocalDateTime refTime)
        Select the latest statement for the given reference time.
        Parameters:
        account - ledger account
        stmtStatus - statement status
        refTime - reference time
        Returns:
        account statement wrapped with Optional