Class WhereClause


  • public final class WhereClause
    extends java.lang.Object
    • Method Detail

      • containsCustomExpressions

        public boolean containsCustomExpressions()
      • renameIdentifier

        public WhereClause renameIdentifier​(ColumnIdentifier from,
                                            ColumnIdentifier to)
        Renames identifiers in all relations
        Parameters:
        from - the old identifier
        to - the new identifier
        Returns:
        a new WhereClause with with "from" replaced by "to" in all relations
      • parse

        public static WhereClause parse​(java.lang.String cql)
                                 throws org.antlr.runtime.RecognitionException
        Throws:
        org.antlr.runtime.RecognitionException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toCQLString

        public java.lang.String toCQLString()
        Returns a CQL representation of this WHERE clause.
        Returns:
        a CQL representation of this WHERE clause
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • containsTokenRelations

        public boolean containsTokenRelations()
        Checks if the where clause contains some token relations.
        Returns:
        true if it is the case, false otherwise.