Interface QueryEngine

All Known Implementing Classes:
DefaultQueryEngine

public interface QueryEngine
QueryEngine defines an interface for the evaluation of ColQuery queries
Author:
tiwe
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    count(com.querydsl.core.QueryMetadata metadata, Map<com.querydsl.core.types.Expression<?>,Iterable<?>> iterables)
    Evaluate the given query and return the count of matched rows
    boolean
    exists(com.querydsl.core.QueryMetadata metadata, Map<com.querydsl.core.types.Expression<?>,Iterable<?>> iterables)
    Evaluate the given query return whether rows where matched
    <T> List<T>
    list(com.querydsl.core.QueryMetadata metadata, Map<com.querydsl.core.types.Expression<?>,Iterable<?>> iterables, com.querydsl.core.types.Expression<T> projection)
    Evaluate the given query and return the projection as a list
  • Method Details

    • count

      long count(com.querydsl.core.QueryMetadata metadata, Map<com.querydsl.core.types.Expression<?>,Iterable<?>> iterables)
      Evaluate the given query and return the count of matched rows
      Parameters:
      metadata - query metadata
      iterables - source contents
      Returns:
      matching row count
    • list

      <T> List<T> list(com.querydsl.core.QueryMetadata metadata, Map<com.querydsl.core.types.Expression<?>,Iterable<?>> iterables, com.querydsl.core.types.Expression<T> projection)
      Evaluate the given query and return the projection as a list
      Parameters:
      metadata - query metadata
      iterables - source contents
      Returns:
      matching rows
    • exists

      boolean exists(com.querydsl.core.QueryMetadata metadata, Map<com.querydsl.core.types.Expression<?>,Iterable<?>> iterables)
      Evaluate the given query return whether rows where matched
      Parameters:
      metadata - query metadata
      iterables - source contents
      Returns:
      true, if at least one row was matched