Class AccountLedgerSpecifications
java.lang.Object
com.bluebell.greenhouse.radicle.specifications.account.AccountLedgerSpecifications
Specification definitions for account-ledger search filters.- Version:
- 3.0.1
- Author:
- Stephen Prizio
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.springframework.data.jpa.domain.Specification<AccountLedgerEntry> hasAccount(Account account) Filters by account.static org.springframework.data.jpa.domain.Specification<AccountLedgerEntry> Filters by ledger activity type.static org.springframework.data.jpa.domain.Specification<AccountLedgerEntry> Filters for entries before the upper bound.static org.springframework.data.jpa.domain.Specification<AccountLedgerEntry> occurredOnOrAfter(LocalDateTime start) Filters for entries on or after the lower bound.
-
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
-