Interface CqnStatement

    • Method Detail

      • ref

        CqnStructuredTypeRef ref()
        Returns the reference of this statement. CqnSelect statements do not necessarily have a reference, e.g. a select from subquery. This can be checked via CqnSelect.from().
        Returns:
        the reference
        Throws:
        CdsException - if this statement does not have a reference
      • hints

        Map<String,​Object> hints()
        Returns the runtime hints of this statement.
        Returns:
        the runtime hints
      • isSelect

        default boolean isSelect()
        Returns true if this is a CqnSelect statement.
        Returns:
        true if this is a select statement, otherwise false
      • isInsert

        default boolean isInsert()
        Returns true if this is a CqnInsert statement.
        Returns:
        true if this is an insert statement, otherwise false
      • isUpsert

        default boolean isUpsert()
        Returns true if this is a CqnUpsert statement.
        Returns:
        true if this is an upsert statement, otherwise false
      • isUpdate

        default boolean isUpdate()
        Returns true if this is a CqnUpdate statement.
        Returns:
        true if this is an update statement, otherwise false
      • isDelete

        default boolean isDelete()
        Returns true if this is a CqnDelete statement.
        Returns:
        true if this is a delete statement, otherwise false
      • asSelect

        default CqnSelect asSelect()
        Casts this CQN statement to CqnSelect.
        Returns:
        this statement as a CqnSelect
        Throws:
        ClassCastException - if this statement is not a select
      • asInsert

        default CqnInsert asInsert()
        Casts this CQN statement to CqnInsert.
        Returns:
        this statement as a CqnInsert
        Throws:
        ClassCastException - if this statement is not an insert
      • asUpsert

        default CqnUpsert asUpsert()
        Casts this CQN statement to CqnUpsert.
        Returns:
        this statement as a CqnUpsert
        Throws:
        ClassCastException - if this statement is not an upsert
      • asUpdate

        default CqnUpdate asUpdate()
        Casts this CQN statement to CqnUpdate.
        Returns:
        this statement as a CqnUpdate
        Throws:
        ClassCastException - if this statement is not an update
      • asDelete

        default CqnDelete asDelete()
        Casts this CQN statement to CqnDelete.
        Returns:
        this statement as a CqnDelete
        Throws:
        ClassCastException - if this statement is not a delete