Interface QueryDsl

  • All Superinterfaces:
    com.holonplatform.core.datastore.DatastoreCommodity, Serializable
    All Known Implementing Classes:
    DefaultQueryDslCommodity

    public interface QueryDsl
    extends com.holonplatform.core.datastore.DatastoreCommodity
    A DatastoreCommodity for JPA Datastore QueryDSL integration.
    Since:
    5.0.0
    • Method Detail

      • select

        default <T> JpaQuery<T> select​(com.querydsl.core.types.Expression<T> expression)
        Create a new JpaQuery instance with the given projection.
        Type Parameters:
        T - Expression and query result type
        Parameters:
        expression - projection
        Returns:
        A new query with given projection
      • select

        default JpaQuery<com.querydsl.core.Tuple> select​(com.querydsl.core.types.Expression<?>... expressions)
        Create a new JpaQuery instance with the given projection.
        Parameters:
        expressions - projections
        Returns:
        A new query with given projection
      • selectDistinct

        default <T> JpaQuery<T> selectDistinct​(com.querydsl.core.types.Expression<T> expression)
        Create a new JpaQuery instance with the given distinct projection.
        Type Parameters:
        T - Expression and query result type
        Parameters:
        expression - projection
        Returns:
        A new query with given projection
      • selectDistinct

        default JpaQuery<com.querydsl.core.Tuple> selectDistinct​(com.querydsl.core.types.Expression<?>... expressions)
        Create a new JpaQuery instance with the given distinct projection.
        Parameters:
        expressions - projection
        Returns:
        A new query with given projection
      • selectOne

        default JpaQuery<Integer> selectOne()
        Create a new JpaQuery instance with the projection one.
        Returns:
        A new query with given projection
      • selectZero

        default JpaQuery<Integer> selectZero()
        Create a new JpaQuery instance with the projection zero.
        Returns:
        A new query with given projection
      • selectFrom

        default <T> JpaQuery<T> selectFrom​(com.querydsl.core.types.EntityPath<T> from)
        Create a new JpaQuery instance with the given source and projection.
        Type Parameters:
        T - Projection and source type
        Parameters:
        from - projection and source
        Returns:
        A new query with given source and projection
      • from

        default JpaQuery<?> from​(com.querydsl.core.types.EntityPath<?> from)
        Create a new JpaQuery with the given source.
        Parameters:
        from - Query source
        Returns:
        A new query with given source
      • from

        default JpaQuery<?> from​(com.querydsl.core.types.EntityPath<?>... froms)
        Create a new JpaQuery with the given sources.
        Parameters:
        froms - Query sources
        Returns:
        A new query with given source
      • update

        JpaUpdateClause update​(com.querydsl.core.types.EntityPath<?> entity)
        Create a new UPDATE clause.
        Parameters:
        entity - Entity to update (not null)
        Returns:
        A new update clause
      • delete

        JpaDeleteClause delete​(com.querydsl.core.types.EntityPath<?> entity)
        Create a new DELETE clause.
        Parameters:
        entity - Entity to delete from (not null)
        Returns:
        A new delete clause