Module jpastreamer.criteria
Interface Criteria<ENTITY,RETURN>
public interface Criteria<ENTITY,RETURN>
- Since:
- 0.0.9
- Author:
- Mislav Milicevic
-
Method Summary
Modifier and TypeMethodDescription<T> voidaddQueryParameter(QueryParameter<T> queryParameter) Adds aQueryParameterto the currentCriteriajakarta.persistence.criteria.CriteriaBuilderReturns theCriteriaBuilderthat is stored within thisCriteriajakarta.persistence.criteria.CriteriaQuery<RETURN>getQuery()Returns theCriteriaQuerythat is stored within thisCriteriaReturns theQueryParametersthat is stored within thisCriteriajakarta.persistence.criteria.Root<ENTITY>getRoot()Returns theRootthat is stored within thisCriteria
-
Method Details
-
getBuilder
jakarta.persistence.criteria.CriteriaBuilder getBuilder()Returns theCriteriaBuilderthat is stored within thisCriteria- Returns:
- the
CriteriaBuilderthat is stored within thisCriteria
-
getQuery
jakarta.persistence.criteria.CriteriaQuery<RETURN> getQuery()Returns theCriteriaQuerythat is stored within thisCriteria- Returns:
- the
CriteriaQuerythat is stored within thisCriteria
-
getQueryParameters
List<QueryParameter> getQueryParameters()Returns theQueryParametersthat is stored within thisCriteria- Returns:
- the
QueryParametersthat is stored within thisCriteria
-
addQueryParameter
Adds aQueryParameterto the currentCriteria- Type Parameters:
T- parameter type- Parameters:
queryParameter- to add
-
getRoot
jakarta.persistence.criteria.Root<ENTITY> getRoot()Returns theRootthat is stored within thisCriteria- Returns:
- the
Rootthat is stored within thisCriteria
-