Class Expr

java.lang.Object
ru.curs.celesta.score.Expr
Direct Known Subclasses:
BinaryTermOp, Count, FieldRef, LogicValuedExpr, Max, Min, ParameterRef, Sum

public abstract class Expr extends Object
Scalar SQL expression.
  • Constructor Details

    • Expr

      public Expr()
  • Method Details

    • getCSQL

      public final String getCSQL()
      Returns a Celesta-SQL view of the expression.
      Returns:
    • getSQL

      public final String getSQL(QueryBuildingHelper dba)
      Returns an SQL view of the expression in dialect of current DB.
      Parameters:
      dba - DB adapter.
      Returns:
    • getMeta

      public abstract ViewColumnMeta<?> getMeta()
      Returns the expression type.
      Returns:
    • resolveFieldRefs

      public final void resolveFieldRefs(GrainElement ge) throws ParseException
      Resolves references to the fields of tables using the context of current object of the score.
      Parameters:
      ge - table or view
      Throws:
      ParseException - in case if a reference can't be resolved