Interface CommonQueryBuilder<X extends CommonQueryBuilder<X>>

    • Method Detail

      • getMetamodel

        javax.persistence.metamodel.Metamodel getMetamodel()
        Returns the JPA Metamodel of the persistence unit which is used by this query builder.
        Returns:
        The JPA metamodel
      • getCriteriaBuilderFactory

        CriteriaBuilderFactory getCriteriaBuilderFactory()
        The criteria builder factory that created this or it's parent builder.
        Returns:
        The criteria builder factory
        Since:
        1.0.5
      • registerMacro

        X registerMacro​(String macroName,
                        JpqlMacro jpqlMacro)
        Registers the given jpql macro for this query builder.
        Parameters:
        macroName - The name of the macro
        jpqlMacro - The jpql macro
        Returns:
        The query builder for chaining calls
        Since:
        1.2.0
      • setProperty

        X setProperty​(String propertyName,
                      String propertyValue)
        Sets a configuration property with the given propertyName to the given propertyValue. If a property with this name does not exist, it is added.
        Parameters:
        propertyName - The name of the property
        propertyValue - The value of the property
        Returns:
        The query builder for chaining calls
        Since:
        1.1.0
      • setProperties

        X setProperties​(Map<String,​String> properties)
        Overwrites the properties with the given set of properties.
        Parameters:
        properties - The new properties
        Returns:
        The query builder for chaining calls
        Since:
        1.1.0
      • setCacheable

        X setCacheable​(boolean cacheable)
        Configures whether the query result should be cached.
        Parameters:
        cacheable - Whether the query result should be cached
        Returns:
        The query builder for chaining calls
        Since:
        1.2.0
      • isCacheable

        boolean isCacheable()
        Returns whether the query result should be cached.
        Returns:
        Whether the query result should be cached
        Since:
        1.2.0