Interface StatementAdapter<T,​R>

    • Method Detail

      • bind

        StatementAdapter<T,​R> bind​(String name,
                                         Object value)
        Bind an argument to a named parameter.
        Parameters:
        name - of parameter
        value - of parameter
        Returns:
        instance of this object
      • bind

        StatementAdapter<T,​R> bind​(Param value)
        Bind an argument to a position parameter.
        Parameters:
        value - of parameter
        Returns:
        instance of this object
      • bind

        StatementAdapter<T,​R> bind​(Param... values)
        Bind the varargs parameters to statement
        Parameters:
        values - of parameters as arbitrary number
        Returns:
        instance of this object
      • with

        StatementAdapter<T,​R> with​(ResultRow<T,​R> resultRow)
        result row
        Parameters:
        resultRow - how to process the rows
        Returns:
        instance of this object
      • bindKey

        void bindKey()
        bind the keys generated
      • execute

        int execute()
      • reset

        int reset()
        reset the internal index position parameter to zero.
        Returns:
        return current index position before reset
      • close

        void close()
      • setFetchSize

        void setFetchSize​(int rows)
        Set the number of rows that should be fetched when the statement hit the database.
        Parameters:
        rows - the number of rows to fetch