Class AccountLedgerSpecifications

java.lang.Object
com.bluebell.greenhouse.radicle.specifications.account.AccountLedgerSpecifications

public final class AccountLedgerSpecifications extends Object
Specification definitions for account-ledger search filters.
Version:
3.0.1
Author:
Stephen Prizio
  • Method Details

    • hasAccount

      public static org.springframework.data.jpa.domain.Specification<AccountLedgerEntry> hasAccount(Account account)
      Filters by account.
      Parameters:
      account - account
      Returns:
      specification
    • occurredOnOrAfter

      public static org.springframework.data.jpa.domain.Specification<AccountLedgerEntry> occurredOnOrAfter(LocalDateTime start)
      Filters for entries on or after the lower bound.
      Parameters:
      start - inclusive lower bound
      Returns:
      specification
    • occurredBefore

      public static org.springframework.data.jpa.domain.Specification<AccountLedgerEntry> occurredBefore(LocalDateTime end)
      Filters for entries before the upper bound.
      Parameters:
      end - exclusive upper bound
      Returns:
      specification
    • hasType

      public static org.springframework.data.jpa.domain.Specification<AccountLedgerEntry> hasType(AccountLedgerEntryType type)
      Filters by ledger activity type.
      Parameters:
      type - activity type
      Returns:
      specification