Package ru.curs.celesta.score
Class Expr
java.lang.Object
ru.curs.celesta.score.Expr
- Direct Known Subclasses:
BinaryTermOp,Count,FieldRef,LogicValuedExpr,Max,Min,ParameterRef,Sum
Scalar SQL expression.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal StringgetCSQL()Returns a Celesta-SQL view of the expression.abstract ViewColumnMeta<?> getMeta()Returns the expression type.final StringReturns an SQL view of the expression in dialect of current DB.final voidResolves references to the fields of tables using the context of current object of the score.
-
Constructor Details
-
Expr
public Expr()
-
-
Method Details
-
getCSQL
Returns a Celesta-SQL view of the expression.- Returns:
-
getSQL
Returns an SQL view of the expression in dialect of current DB.- Parameters:
dba- DB adapter.- Returns:
-
getMeta
Returns the expression type.- Returns:
-
resolveFieldRefs
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
-