Interface Criteria<ENTITY,RETURN>


public interface Criteria<ENTITY,RETURN>
Since:
0.0.9
Author:
Mislav Milicevic
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> void
    addQueryParameter(QueryParameter<T> queryParameter)
    Adds a QueryParameter to the current Criteria
    jakarta.persistence.criteria.CriteriaBuilder
    Returns the CriteriaBuilder that is stored within this Criteria
    jakarta.persistence.criteria.CriteriaQuery<RETURN>
    Returns the CriteriaQuery that is stored within this Criteria
    Returns the QueryParameters that is stored within this Criteria
    jakarta.persistence.criteria.Root<ENTITY>
    Returns the Root that is stored within this Criteria
  • Method Details

    • getBuilder

      jakarta.persistence.criteria.CriteriaBuilder getBuilder()
      Returns the CriteriaBuilder that is stored within this Criteria
      Returns:
      the CriteriaBuilder that is stored within this Criteria
    • getQuery

      jakarta.persistence.criteria.CriteriaQuery<RETURN> getQuery()
      Returns the CriteriaQuery that is stored within this Criteria
      Returns:
      the CriteriaQuery that is stored within this Criteria
    • getQueryParameters

      List<QueryParameter> getQueryParameters()
      Returns the QueryParameters that is stored within this Criteria
      Returns:
      the QueryParameters that is stored within this Criteria
    • addQueryParameter

      <T> void addQueryParameter(QueryParameter<T> queryParameter)
      Adds a QueryParameter to the current Criteria
      Type Parameters:
      T - parameter type
      Parameters:
      queryParameter - to add
    • getRoot

      jakarta.persistence.criteria.Root<ENTITY> getRoot()
      Returns the Root that is stored within this Criteria
      Returns:
      the Root that is stored within this Criteria