@Service public class CommonSpecification<T> extends Object
| Constructor and Description |
|---|
CommonSpecification() |
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.data.jpa.domain.Specification<T> |
byCreationTimestamp(@Nullable LocalDate start,
@Nullable LocalDate end)
Returns specification for some entity for filtering data by creation date.
|
protected org.springframework.data.jpa.domain.Specification<T> |
byInstanceId(@Nullable String instanceId)
Returns specification for some entity for filtering data by instance id.
|
org.springframework.data.jpa.domain.Specification<T> |
byPsuIdDataAndCreationPeriodAndInstanceId(@NotNull de.adorsys.psd2.xs2a.core.psu.PsuIdData psuIdData,
@Nullable LocalDate createDateFrom,
@Nullable LocalDate createDateTo,
@Nullable String instanceId)
Returns specification for some entity for filtering data by PSU ID Data, creation date and instance ID.
|
protected org.springframework.data.jpa.domain.Specification<T> |
byPsuIdDataInList(@Nullable de.adorsys.psd2.xs2a.core.psu.PsuIdData psuIdData)
Returns specification for some entity for filtering data by PSU ID data from list.
|
public org.springframework.data.jpa.domain.Specification<T> byPsuIdDataAndCreationPeriodAndInstanceId(@NotNull @NotNull de.adorsys.psd2.xs2a.core.psu.PsuIdData psuIdData, @Nullable @Nullable LocalDate createDateFrom, @Nullable @Nullable LocalDate createDateTo, @Nullable @Nullable String instanceId)
psuIdData - mandatory PSU ID datacreateDateFrom - optional creation date that limits resulting data to entities created after this date(inclusive)createDateTo - optional creation date that limits resulting data to entities created before this date(inclusive)instanceId - optional instance IDprotected org.springframework.data.jpa.domain.Specification<T> byPsuIdDataInList(@Nullable @Nullable de.adorsys.psd2.xs2a.core.psu.PsuIdData psuIdData)
If all fields in the given PsuIdData are null, this specification will not affect resulting data.
psuIdData - optional PSU ID datanull if PSU ID data was omittedprotected org.springframework.data.jpa.domain.Specification<T> byInstanceId(@Nullable @Nullable String instanceId)
instanceId - optional ID of particular service instancenull if instance id was omittedprotected org.springframework.data.jpa.domain.Specification<T> byCreationTimestamp(@Nullable @Nullable LocalDate start, @Nullable @Nullable LocalDate end)
If both optional parameters are not provided, this specification will not affect resulting data.
start - optional creation date that limits resulting data to objects created after this date(inclusive)end - optional creation date that limits resulting data to objects created before this date(inclusive)Copyright © 2020. All rights reserved.