Interface Singular<ELEMENT>

All Superinterfaces:
Buildable<Statement<ELEMENT>>, Statement<ELEMENT>
All Known Implementing Classes:
EntityqlDeleteReturningStatement, EntityqlUpdateReturningStatement

public interface Singular<ELEMENT> extends Statement<ELEMENT>
  • Method Details

    • fetchOptional

      default Optional<ELEMENT> fetchOptional()
      Returns the element of data as an optional.
      Returns:
      the element of data
    • fetchOne

      default ELEMENT fetchOne()
      Returns the element of data.
      Returns:
      the element of data
    • peek

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