Class PositionSpecifications
java.lang.Object
com.bluebell.greenhouse.radicle.specifications.position.PositionSpecifications
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.springframework.data.jpa.domain.Specification<Position> closedBefore(LocalDateTime closedBefore) Filters for positions closed before the given time.static org.springframework.data.jpa.domain.Specification<Position> closedOnOrAfter(LocalDateTime closedAfter) Filters for positions closed at or after the given time.static org.springframework.data.jpa.domain.Specification<Position> hasAccount(Account account) Filters byAccount.static org.springframework.data.jpa.domain.Specification<Position> hasFamily(PositionFamily family) Filters byPositionFamily.static org.springframework.data.jpa.domain.Specification<Position> hasOpenState(Boolean open) Filters by open or closed state.static org.springframework.data.jpa.domain.Specification<Position> hasPositionType(PositionType positionType) Filters byPositionType.static org.springframework.data.jpa.domain.Specification<Position> hasStrategy(Strategy strategy) Filters by assignedStrategy.static org.springframework.data.jpa.domain.Specification<Position> Filters bySymbol.static org.springframework.data.jpa.domain.Specification<Position> openedBefore(LocalDateTime openedBefore) Filters for positions opened before the given time.static org.springframework.data.jpa.domain.Specification<Position> openedOnOrAfter(LocalDateTime openedAfter) Filters for positions opened at or after the given time.
-
Method Details
-
hasAccount
-
openedOnOrAfter
public static org.springframework.data.jpa.domain.Specification<Position> openedOnOrAfter(LocalDateTime openedAfter) Filters for positions opened at or after the given time.- Parameters:
openedAfter-LocalDateTime- Returns:
Specification
-
openedBefore
public static org.springframework.data.jpa.domain.Specification<Position> openedBefore(LocalDateTime openedBefore) Filters for positions opened before the given time.- Parameters:
openedBefore-LocalDateTime- Returns:
Specification
-
closedOnOrAfter
public static org.springframework.data.jpa.domain.Specification<Position> closedOnOrAfter(LocalDateTime closedAfter) Filters for positions closed at or after the given time.- Parameters:
closedAfter-LocalDateTime- Returns:
Specification
-
closedBefore
public static org.springframework.data.jpa.domain.Specification<Position> closedBefore(LocalDateTime closedBefore) Filters for positions closed before the given time.- Parameters:
closedBefore-LocalDateTime- Returns:
Specification
-
hasFamily
public static org.springframework.data.jpa.domain.Specification<Position> hasFamily(PositionFamily family) Filters byPositionFamily.- Parameters:
family-PositionFamily- Returns:
Specification
-
hasSymbol
-
hasOpenState
-
hasPositionType
public static org.springframework.data.jpa.domain.Specification<Position> hasPositionType(PositionType positionType) Filters byPositionType.- Parameters:
positionType-PositionType- Returns:
Specification
-
hasStrategy
-