| Package | Description |
|---|---|
| io.github.jhipster.service | |
| io.github.jhipster.service.filter |
Utilities for JPA criteria classes, used for filtering data on the back-end.
|
| Modifier and Type | Method and Description |
|---|---|
protected <X extends Comparable<? super X>> |
QueryService.buildRangeSpecification(RangeFilter<X> filter,
javax.persistence.metamodel.SingularAttribute<? super ENTITY,X> field)
Helper function to return a specification for filtering on a single
Comparable, where equality, less
than, greater than and less-than-or-equal-to and greater-than-or-equal-to and null/non-null conditions are
supported. |
protected <OTHER,MISC,X extends Comparable<? super X>> |
QueryService.buildReferringEntitySpecification(RangeFilter<X> filter,
Function<javax.persistence.criteria.Root<ENTITY>,javax.persistence.criteria.SetJoin<MISC,OTHER>> functionToEntity,
Function<javax.persistence.criteria.SetJoin<MISC,OTHER>,javax.persistence.criteria.Expression<X>> entityToColumn)
Helper function to return a specification for filtering on one-to-many or many-to-many reference.
|
protected <OTHER,X extends Comparable<? super X>> |
QueryService.buildReferringEntitySpecification(RangeFilter<X> filter,
javax.persistence.metamodel.SetAttribute<ENTITY,OTHER> reference,
javax.persistence.metamodel.SingularAttribute<OTHER,X> valueField)
Helper function to return a specification for filtering on one-to-many or many-to-many reference.
|
protected <OTHER,X extends Comparable<? super X>> |
QueryService.buildReferringEntitySpecification(RangeFilter<X> filter,
javax.persistence.metamodel.SingularAttribute<? super ENTITY,OTHER> reference,
javax.persistence.metamodel.SingularAttribute<OTHER,X> valueField)
Deprecated.
just call buildSpecification(filter, root -> root.get(reference).get(valueField))
|
protected <X extends Comparable<? super X>> |
QueryService.buildSpecification(RangeFilter<X> filter,
Function<javax.persistence.criteria.Root<ENTITY>,javax.persistence.criteria.Expression<X>> metaclassFunction)
Helper function to return a specification for filtering on a single
Comparable, where equality, less
than, greater than and less-than-or-equal-to and greater-than-or-equal-to and null/non-null conditions are
supported. |
| Modifier and Type | Class and Description |
|---|---|
class |
BigDecimalFilter
Filter class for
BigDecimal type attributes. |
class |
DoubleFilter
Filter class for
Double type attributes. |
class |
FloatFilter
Filter class for
Float type attributes. |
class |
InstantFilter
Filter class for
Instant type attributes. |
class |
IntegerFilter
Filter class for
Integer type attributes. |
class |
LocalDateFilter
Filter class for
LocalDate type attributes. |
class |
LongFilter
Filter class for
Long type attributes. |
class |
ShortFilter
Filter class for
Short type attributes. |
class |
ZonedDateTimeFilter
Filter class for
ZonedDateTime type attributes. |
| Modifier and Type | Method and Description |
|---|---|
RangeFilter<FIELD_TYPE> |
RangeFilter.setGreaterOrEqualThan(FIELD_TYPE greaterOrEqualThan) |
RangeFilter<FIELD_TYPE> |
RangeFilter.setGreaterThan(FIELD_TYPE greaterThan) |
RangeFilter<FIELD_TYPE> |
RangeFilter.setLessOrEqualThan(FIELD_TYPE lessOrEqualThan) |
RangeFilter<FIELD_TYPE> |
RangeFilter.setLessThan(FIELD_TYPE lessThan) |
Copyright © 2019 JHipster. All rights reserved.