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
public abstract class Expr extends Object
Scalar SQL expression.
-
-
Constructor Summary
Constructors Constructor Description Expr()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description String
getCSQL()
Returns a Celesta-SQL view of the expression.abstract ViewColumnMeta<?>
getMeta()
Returns the expression type.String
getSQL(QueryBuildingHelper dba)
Returns an SQL view of the expression in dialect of current DB.void
resolveFieldRefs(GrainElement ge)
Resolves references to the fields of tables using the context of current object of the score.
-
-
-
Method Detail
-
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
-
-