Package org.jparsec.examples.sql.parser
Class RelationParser
java.lang.Object
org.jparsec.examples.sql.parser.RelationParser
Parser for relation.
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromClause
(Parser<Relation> rel) groupByClause
(Parser<Expression> expr, Parser<Expression> cond) (package private) static Parser
<Expression> havingClause
(Parser<Expression> cond) join
(Parser<Relation> rel, Parser<Expression> cond) private static Parser
<UnaryOperator<Relation>> orderByClause
(Parser<Expression> expr) (package private) static Parser
<OrderBy.Item> orderByItem
(Parser<Expression> expr) (package private) static final Parser
<Projection> projection
(Parser<Expression> expr) query()
TheParser
for a full fledged SQL query.query
(Parser<Expression> expr, Parser<Expression> cond, Parser<Relation> rel) select
(Parser<Expression> expr, Parser<Expression> cond, Parser<Relation> rel) (package private) static Parser
<Expression> whereClause
(Parser<Expression> cond)
-
Field Details
-
ALIAS
-
FULL_JOIN
-
RIGHT_JOIN
-
LEFT_JOIN
-
INNER_JOIN
-
TABLE
-
SELECT_CLAUSE
-
-
Constructor Details
-
RelationParser
public RelationParser()
-
-
Method Details
-
projection
-
alias
-
aliasable
-
selectClause
-
fromClause
-
whereClause
-
groupByClause
-
havingClause
-
orderByItem
-
orderByClause
-
join
-
select
static Parser<Relation> select(Parser<Expression> expr, Parser<Expression> cond, Parser<Relation> rel) -
union
-
query
static Parser<Relation> query(Parser<Expression> expr, Parser<Expression> cond, Parser<Relation> rel) -
query
TheParser
for a full fledged SQL query. -
joinType
-
joinOn
private static Parser<UnaryOperator<Relation>> joinOn(Parser<JoinType> joinType, Parser<Relation> right, Parser<Expression> cond) -
list
-