Interface QueryDef


  • public interface QueryDef
    The query definition used to build queries in fluent style.
    • Method Detail

      • on

        QueryDef on​(String key,
                    Object value)
        Adds an argument to the query.
        Parameters:
        key - the ID of the parameter
        value - the value of the parameter
        Returns:
        the query definition object
      • on

        QueryDef on​(List<Object> arguments)
        Adds multiple arguments to the query.
        Parameters:
        arguments - the collection of arguments
        Returns:
        the query definition object
      • execute

        <T extends Result> T execute​(Class<T> clazz)
        Executes a query.
        Parameters:
        clazz - the type of the expected result set
        Returns:
        the result set
      • executeWithAutoCommit

        <T extends Result> T executeWithAutoCommit​(Class<T> clazz)
        Executes a query with autocommit on.
        Parameters:
        clazz - the type of the expected result set
        Returns:
        the result set