|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectisql.ClausesBuilder
public class ClausesBuilder
Builds the structures to execute the SQL query for all the SQL query parts (SELECT, WHERE, GROUP BY...)
| Constructor Summary | |
|---|---|
ClausesBuilder(ILogger log)
Constructor |
|
| Method Summary | |
|---|---|
Groups |
buildGroupBy(java.util.List<ISQLSelectParser.TableColumn> lstGroupByTableColumn,
ColumnValuesWithRowsNumber values)
Builds a Groups structure (containing the group by relationships) from the grammars output |
java.util.Map<java.lang.String,IExpression> |
buildSelect(java.util.List<ISQLSelectParser.SelectItem> lstSelect,
ColumnValues values,
Groups groups)
Builds a map alias -> result expression from the select clause. |
ColumnValuesWithRowsNumber |
buildViewAfterWhere(ColumnValues values,
WhereView whereView)
from the result of the where clause (where view) and the original column values builds a new set of column values |
IPredicate |
buildWhere(ColumnValues valuesOriginal,
ISQLSelectParser.ISearchCondition where)
Returns the where clause in form of a predicate tree |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClausesBuilder(ILogger log)
log - the logger| Method Detail |
|---|
public Groups buildGroupBy(java.util.List<ISQLSelectParser.TableColumn> lstGroupByTableColumn,
ColumnValuesWithRowsNumber values)
throws ISQLException
lstGroupByTableColumn - the columns part of the GROUP BY clause (from ANTLR)values - the result set at this point in the query evaluation
ISQLException
public java.util.Map<java.lang.String,IExpression> buildSelect(java.util.List<ISQLSelectParser.SelectItem> lstSelect,
ColumnValues values,
Groups groups)
throws ISQLException
lstSelect - the list of select itemsvalues - the result set at this point of the query evaluationgroups - the structure defining the groups of the GROUP BY clause
ISQLException
public ColumnValuesWithRowsNumber buildViewAfterWhere(ColumnValues values,
WhereView whereView)
throws ISQLException
values - the column in the tables with their values. Since they are
of different tables, they can still have different sizewhereView - the view resulting from the application of the where clause
to the column values
ISQLException
public IPredicate buildWhere(ColumnValues valuesOriginal,
ISQLSelectParser.ISearchCondition where)
throws ISQLException
valuesOriginal - the column in the tables with their values. Since they are
of different tables, they can still have different sizewhere - the where condition extracted from ANTLR
ISQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||