Interface Statement<RESULT>

Type Parameters:
RESULT - the result of the execution
All Superinterfaces:
Buildable<Statement<RESULT>>
All Known Subinterfaces:
EntityQueryable<ENTITY>, Listable<ELEMENT>, SetOperand<ELEMENT>, SetOperator<ELEMENT>, Singular<ELEMENT>, StreamMappable<ELEMENT>
All Known Implementing Classes:
AbstractSetOperand, AbstractStatement, EntityqlBatchDeleteStatement, EntityqlBatchInsertIntermediate, EntityqlBatchInsertStatement, EntityqlBatchInsertTerminate, EntityqlBatchUpdateStatement, EntityqlDeleteReturningStatement, EntityqlDeleteStatement, EntityqlInsertIntermediate, EntityqlInsertStatement, EntityqlInsertTerminal, EntityqlMultiInsertIntermediate, EntityqlMultiInsertReturningStatement, EntityqlMultiInsertStatement, EntityqlMultiInsertTerminal, EntityqlSelectStarting, EntityqlSelectTerminal, EntityqlUpdateReturningStatement, EntityqlUpdateStatement, NativeSqlDeleteStarting, NativeSqlDeleteTerminal, NativeSqlInsertTerminal, NativeSqlSelectIntermediate, NativeSqlSelectStarting, NativeSqlSelectTerminal, NativeSqlSetStarting, NativeSqlSetTerminal, NativeSqlUpdateTerminal, NativeSqlUpsertOnDuplicateKeyIgnoreSelectingKeys, NativeSqlUpsertOnDuplicateKeyUpdateSelectingKeys, NativeSqlUpsertOnDuplicateKeyUpdateSelectingSet, NativeSqlUpsertTerminal, UnifiedSelectStarting, UnifiedSelectTerminal

public interface Statement<RESULT> extends Buildable<Statement<RESULT>>
Represents the SQL statement built by the Criteria API.
  • Method Summary

    Modifier and Type
    Method
    Description
    Executes the SQL statement.
    default Statement<RESULT>
    peek(Consumer<Sql<?>> consumer)
    Peeks the built SQL.

    Methods inherited from interface org.seasar.doma.jdbc.criteria.statement.Buildable

    asSql
  • Method Details

    • execute

      RESULT execute()
      Executes the SQL statement.
      Returns:
      the result
    • peek

      default Statement<RESULT> peek(Consumer<Sql<?>> consumer)
      Description copied from interface: Buildable
      Peeks the built SQL.
      Specified by:
      peek in interface Buildable<RESULT>
      Parameters:
      consumer - the SQL handler
      Returns:
      this instance