Interface CqnSource

All Superinterfaces:
CqnToken, JSONizable
All Known Subinterfaces:
CqnJoin, CqnSelect, CqnStructuredTypeRef, Source<T>, StructuredType<T>, StructuredTypeRef
All Known Implementing Classes:
Select

public interface CqnSource extends CqnToken
  • Method Details

    • isRef

      default boolean isRef()
      Returns true if this is a CqnStructuredTypeRef.
      Returns:
      true if this is a structured type reference, otherwise false
    • isSelect

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

      default boolean isJoin()
      Returns true if this is a CqnJoin.
      Returns:
      true if this is a join, otherwise false
    • asRef

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

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

      default CqnJoin asJoin()
      Casts this CQN source to a CqnJoin.
      Returns:
      this CQN source as a CqnJoin
      Throws:
      ClassCastException - if this CQN source is not a join