Interface QueryStage<T>

Type Parameters:
T - type
All Known Implementing Classes:
QueryBuilder

public interface QueryStage<T>
Query stage of a QueryBuilder
  • Method Details

    • query

      StatementStage<T> query(String query)
      Set the query to execute.
      Parameters:
      query - query to set.
      Returns:
      The QueryBuilder in a StatementStage with the query defined.
    • query

      default StatementStage<T> query(String query, Object... objects)
      Set the query to execute.
      Parameters:
      query - query to set.
      objects - objects to replace in a String.format(String, Object...) Do not use this with user input! This should be only used to insert column or table names at runtime
      Returns:
      The QueryBuilder in a StatementStage with the query defined.
    • queryWithoutParams

      ResultStage<T> queryWithoutParams(String query)
      Set the query to execute.

      This will also skip the statement stage.

      Parameters:
      query - query to set.
      Returns:
      The QueryBuilder in a ResultStage with the query defined and no parameter set.
    • queryWithoutParams

      default ResultStage<T> queryWithoutParams(String query, Object... objects)
      Set the query to execute.

      This will also skip the statement stage.

      Parameters:
      query - query to set.
      objects - objects to replace in a String.format(String, Object...) Do not use this with user input! This should be only used to insert column or table names at runtime
      Returns:
      The QueryBuilder in a ResultStage with the query defined and no parameter set.