|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.saffron.util.EnumeratedValues.BasicValue | +--net.sf.saffron.sql.SqlKind
Enumerates the possible types of SqlNode
.
Only commonly-used nodes have their own type; other nodes are of type
Other
. Some of the values, such as SetQuery
,
represent aggregates.
Field Summary | |
static SqlKind |
And
And |
static int |
AndORDINAL
|
static SqlKind |
As
As |
static int |
AsORDINAL
|
static SqlKind |
Delete
DELETE statement |
static int |
DeleteORDINAL
|
static SqlKind |
Descending
|
static int |
DescendingORDINAL
Descending |
static SqlKind |
Divide
Divide |
static int |
DivideORDINAL
|
static SqlKind |
Dml
|
static int |
DmlORDINAL
Dml is an aggregate of all DML operators. |
static SqlKind |
Dot
Dot |
static int |
DotORDINAL
|
static EnumeratedValues |
enumeration
|
static SqlKind |
Equals
Equals |
static int |
EqualsORDINAL
|
static SqlKind |
Except
Except |
static int |
ExceptORDINAL
|
static SqlKind |
Exists
|
static int |
ExistsORDINAL
Exists |
static SqlKind |
Explain
EXPLAIN statement |
static int |
ExplainORDINAL
|
static SqlKind |
Expression
|
static int |
ExpressionORDINAL
Expression is an aggregate of all expression
operators. |
static SqlKind |
Function
Function |
static int |
FunctionORDINAL
|
static SqlKind |
GreaterThan
GreaterThan |
static int |
GreaterThanORDINAL
|
static SqlKind |
GreaterThanOrEqual
GreaterThanOrEqual |
static int |
GreaterThanOrEqualORDINAL
|
static SqlKind |
Identifier
Identifier |
static int |
IdentifierORDINAL
|
static SqlKind |
In
In |
static int |
InORDINAL
|
static SqlKind |
Insert
INSERT statement |
static int |
InsertORDINAL
|
static SqlKind |
Intersect
Intersect |
static int |
IntersectORDINAL
|
static SqlKind |
Join
JOIN operator or compound FROM clause. |
static int |
JoinORDINAL
|
static SqlKind |
LessThan
LessThan |
static int |
LessThanORDINAL
|
static SqlKind |
LessThanOrEqual
LessThanOrEqual |
static int |
LessThanOrEqualORDINAL
|
static SqlKind |
Literal
Literal |
static int |
LiteralORDINAL
|
static SqlKind |
Minus
Minus |
static int |
MinusORDINAL
|
static SqlKind |
MinusPrefix
|
static int |
MinusPrefixORDINAL
MinusPrefix |
static SqlKind |
Not
|
static SqlKind |
NotEquals
NotEquals |
static int |
NotEqualsORDINAL
|
static int |
NotORDINAL
Not |
static SqlKind |
Or
Or |
static int |
OrORDINAL
|
static SqlKind |
Other
Other |
static int |
OtherORDINAL
|
static SqlKind |
Plus
Plus |
static int |
PlusORDINAL
|
static SqlKind |
PlusPrefix
|
static int |
PlusPrefixORDINAL
PlusPrefix |
static SqlKind |
Query
Query is an aggregate of query node types. |
static int |
QueryORDINAL
|
static SqlKind |
Select
SELECT statement or sub-query |
static int |
SelectORDINAL
|
static SqlKind |
SetQuery
|
static int |
SetQueryORDINAL
SetQuery is an aggregate of set-query node types. |
static SqlKind |
Times
Times |
static int |
TimesORDINAL
|
static SqlKind |
TopLevel
Aggregate of SQL statement types Query , Dml . |
static int |
TopLevelORDINAL
|
static SqlKind |
Union
Union |
static int |
UnionORDINAL
|
static SqlKind |
Update
UPDATE statement |
static int |
UpdateORDINAL
|
static SqlKind |
Values
|
static int |
ValuesORDINAL
Values |
Fields inherited from class net.sf.saffron.util.EnumeratedValues.BasicValue |
description_, name_, ordinal_ |
Constructor Summary | |
private |
SqlKind(String name,
int ordinal)
|
Method Summary | |
static SqlKind |
get(int ordinal)
Looks up a kind from its ordinal. |
static SqlKind |
get(String name)
Looks up a kind from its name. |
boolean |
isA(SqlKind kind)
Returns whether this kind is the same as a given kind, or is a member if the given kind is an aggregate |
Methods inherited from class net.sf.saffron.util.EnumeratedValues.BasicValue |
equals, getDescription, getName, getOrdinal, toString, unexpected |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int OtherORDINAL
public static final SqlKind Other
public static final int SelectORDINAL
public static final SqlKind Select
public static final int JoinORDINAL
public static final SqlKind Join
A FROM clause with more than one table is represented as if it were a join. For example, "FROM x, y, z" is represented as "JOIN(x, JOIN(x, y))".
public static final int IdentifierORDINAL
public static final SqlKind Identifier
public static final int LiteralORDINAL
public static final SqlKind Literal
public static final int FunctionORDINAL
public static final SqlKind Function
public static final int ExplainORDINAL
public static final SqlKind Explain
public static final int InsertORDINAL
public static final SqlKind Insert
public static final int DeleteORDINAL
public static final SqlKind Delete
public static final int UpdateORDINAL
public static final SqlKind Update
public static final int TimesORDINAL
public static final SqlKind Times
public static final int DivideORDINAL
public static final SqlKind Divide
public static final int PlusORDINAL
public static final SqlKind Plus
public static final int MinusORDINAL
public static final SqlKind Minus
public static final int InORDINAL
public static final SqlKind In
public static final int LessThanORDINAL
public static final SqlKind LessThan
public static final int GreaterThanORDINAL
public static final SqlKind GreaterThan
public static final int LessThanOrEqualORDINAL
public static final SqlKind LessThanOrEqual
public static final int GreaterThanOrEqualORDINAL
public static final SqlKind GreaterThanOrEqual
public static final int EqualsORDINAL
public static final SqlKind Equals
public static final int NotEqualsORDINAL
public static final SqlKind NotEquals
public static final int OrORDINAL
public static final SqlKind Or
public static final int AndORDINAL
public static final SqlKind And
public static final int DotORDINAL
public static final SqlKind Dot
public static final int UnionORDINAL
public static final SqlKind Union
public static final int ExceptORDINAL
public static final SqlKind Except
public static final int IntersectORDINAL
public static final SqlKind Intersect
public static final int AsORDINAL
public static final SqlKind As
public static final int NotORDINAL
public static final SqlKind Not
public static final int PlusPrefixORDINAL
public static final SqlKind PlusPrefix
public static final int MinusPrefixORDINAL
public static final SqlKind MinusPrefix
public static final int ExistsORDINAL
public static final SqlKind Exists
public static final int ValuesORDINAL
public static final SqlKind Values
public static final int DescendingORDINAL
public static final SqlKind Descending
public static final int SetQueryORDINAL
SetQuery
is an aggregate of set-query node types.
node.isA(Kind.SetQuery)
evaluates to
true
if it node
is an Except
,
Intersect
or Union
.
public static final SqlKind SetQuery
public static final int ExpressionORDINAL
Expression
is an aggregate of all expression
operators.
public static final SqlKind Expression
public static final int DmlORDINAL
Dml
is an aggregate of all DML operators.
node.isA(Kind.Dml)
evaluates to
true
if it node
is an Insert
or Delete
.
public static final SqlKind Dml
public static final int QueryORDINAL
public static final SqlKind Query
Query
is an aggregate of query node types.
node.isA(Kind.SetQuery)
evaluates to
true
if it node
is a Except
,
Intersect
, Select
or Union
.
public static final int TopLevelORDINAL
public static final SqlKind TopLevel
Query
, Dml
.
public static final EnumeratedValues enumeration
Constructor Detail |
private SqlKind(String name, int ordinal)
Method Detail |
public boolean isA(SqlKind kind)
public static SqlKind get(int ordinal)
public static SqlKind get(String name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |