Class SelectQueryParser
- java.lang.Object
-
- it.unibz.inf.ontop.spec.sqlparser.BasicSelectQueryParser<RAExpression,RAExpressionOperations>
-
- it.unibz.inf.ontop.spec.sqlparser.SelectQueryParser
-
public class SelectQueryParser extends BasicSelectQueryParser<RAExpression,RAExpressionOperations>
Created by Roman Kontchakov on 01/11/2016.
-
-
Field Summary
-
Fields inherited from class it.unibz.inf.ontop.spec.sqlparser.BasicSelectQueryParser
expressionParser, idfac, operations, termFactory
-
-
Constructor Summary
Constructors Constructor Description SelectQueryParser(MetadataLookup metadata, CoreSingletons coreSingletons)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected RAExpressioncreate(NamedRelationDefinition relation)protected RAExpressionjoin(RAExpression left, net.sf.jsqlparser.statement.select.Join join)can be overridden to add additional checksRAExpressionparse(String sql)RAExpressiontranslateParserView(RelationDefinition view)protected RAExpressiontranslateSelect(net.sf.jsqlparser.statement.select.SelectBody selectBody, List<net.sf.jsqlparser.statement.select.WithItem> withItemsList)protected voidvalidateFromItem(net.sf.jsqlparser.schema.Table table)-
Methods inherited from class it.unibz.inf.ontop.spec.sqlparser.BasicSelectQueryParser
createAttributeVariables, getPlainSelect, translateJoins
-
-
-
-
Constructor Detail
-
SelectQueryParser
public SelectQueryParser(MetadataLookup metadata, CoreSingletons coreSingletons)
-
-
Method Detail
-
parse
public RAExpression parse(String sql) throws net.sf.jsqlparser.JSQLParserException, InvalidQueryException, UnsupportedSelectQueryException
- Throws:
net.sf.jsqlparser.JSQLParserExceptionInvalidQueryExceptionUnsupportedSelectQueryException
-
translateSelect
protected RAExpression translateSelect(net.sf.jsqlparser.statement.select.SelectBody selectBody, List<net.sf.jsqlparser.statement.select.WithItem> withItemsList)
- Specified by:
translateSelectin classBasicSelectQueryParser<RAExpression,RAExpressionOperations>
-
join
protected RAExpression join(RAExpression left, net.sf.jsqlparser.statement.select.Join join) throws IllegalJoinException
Description copied from class:BasicSelectQueryParsercan be overridden to add additional checks- Overrides:
joinin classBasicSelectQueryParser<RAExpression,RAExpressionOperations>- Parameters:
left- expressionjoin- JSQLParser's Join- Returns:
- resulting expression
- Throws:
IllegalJoinException- if incorrect combination of modifiers is used
-
validateFromItem
protected void validateFromItem(net.sf.jsqlparser.schema.Table table)
- Overrides:
validateFromItemin classBasicSelectQueryParser<RAExpression,RAExpressionOperations>
-
create
protected RAExpression create(NamedRelationDefinition relation)
- Specified by:
createin classBasicSelectQueryParser<RAExpression,RAExpressionOperations>
-
translateParserView
public RAExpression translateParserView(RelationDefinition view)
-
-