net.sf.saffron.sql
Class SqlNode.Kind

java.lang.Object
  |
  +--net.sf.saffron.util.EnumeratedValues
        |
        +--net.sf.saffron.sql.SqlNode.Kind
All Implemented Interfaces:
Cloneable
Enclosing class:
SqlNode

public static class SqlNode.Kind
extends EnumeratedValues

Kind 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.


Nested Class Summary
 
Nested classes inherited from class net.sf.saffron.util.EnumeratedValues
EnumeratedValues.BasicValue, EnumeratedValues.Value
 
Field Summary
static int And
           
static int As
           
static int Delete
           
static int Descending
           
static int Divide
           
static int Dml
          Dml is an aggregate of all DML operators.
static int Dot
           
static int Equals
           
static int Except
           
static int Exists
           
static int Explain
           
static int Expression
          Expression is an aggregate of all expression operators.
static int Function
           
static int GreaterThan
           
static int GreaterThanOrEqual
           
static int Identifier
           
static int In
           
static int Insert
           
static SqlNode.Kind instance
           
static int Intersect
           
static int Join
           
static int LessThan
           
static int LessThanOrEqual
           
static int Literal
           
static int Minus
           
static int MinusPrefix
           
static int Not
           
static int NotEquals
           
static int Or
           
static int Other
           
static int Plus
           
static int PlusPrefix
           
static int Query
          Query is an aggregate of query node types.
static int Select
           
static int SetQuery
          SetQuery is an aggregate of set-query node types.
static int Times
           
static int Union
           
static int Values
           
 
Fields inherited from class net.sf.saffron.util.EnumeratedValues
 
Constructor Summary
private SqlNode.Kind()
           
 
Methods inherited from class net.sf.saffron.util.EnumeratedValues
badValue, clone, getDescription, getMax, getMin, getMutableClone, getName, getNames, getOrdinal, getValue, getValue, isImmutable, isValid, makeImmutable, register, unexpected
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

public static final SqlNode.Kind instance

Other

public static final int Other
See Also:
Constant Field Values

Select

public static final int Select
See Also:
Constant Field Values

Join

public static final int Join
See Also:
Constant Field Values

Identifier

public static final int Identifier
See Also:
Constant Field Values

Literal

public static final int Literal
See Also:
Constant Field Values

Function

public static final int Function
See Also:
Constant Field Values

Explain

public static final int Explain
See Also:
Constant Field Values

Insert

public static final int Insert
See Also:
Constant Field Values

Delete

public static final int Delete
See Also:
Constant Field Values

Times

public static final int Times
See Also:
Constant Field Values

Divide

public static final int Divide
See Also:
Constant Field Values

Plus

public static final int Plus
See Also:
Constant Field Values

Minus

public static final int Minus
See Also:
Constant Field Values

In

public static final int In
See Also:
Constant Field Values

LessThan

public static final int LessThan
See Also:
Constant Field Values

GreaterThan

public static final int GreaterThan
See Also:
Constant Field Values

LessThanOrEqual

public static final int LessThanOrEqual
See Also:
Constant Field Values

GreaterThanOrEqual

public static final int GreaterThanOrEqual
See Also:
Constant Field Values

Equals

public static final int Equals
See Also:
Constant Field Values

NotEquals

public static final int NotEquals
See Also:
Constant Field Values

Or

public static final int Or
See Also:
Constant Field Values

And

public static final int And
See Also:
Constant Field Values

Dot

public static final int Dot
See Also:
Constant Field Values

Union

public static final int Union
See Also:
Constant Field Values

Except

public static final int Except
See Also:
Constant Field Values

Intersect

public static final int Intersect
See Also:
Constant Field Values

As

public static final int As
See Also:
Constant Field Values

Not

public static final int Not
See Also:
Constant Field Values

PlusPrefix

public static final int PlusPrefix
See Also:
Constant Field Values

MinusPrefix

public static final int MinusPrefix
See Also:
Constant Field Values

Exists

public static final int Exists
See Also:
Constant Field Values

Values

public static final int Values
See Also:
Constant Field Values

Descending

public static final int Descending
See Also:
Constant Field Values

SetQuery

public static final int SetQuery
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.

See Also:
Constant Field Values

Expression

public static final int Expression
Expression is an aggregate of all expression operators.

See Also:
Constant Field Values

Dml

public static final int Dml
Dml is an aggregate of all DML operators. node.isA(Kind.Dml) evaluates to true if it node is an Insert or Delete.

See Also:
Constant Field Values

Query

public static final int 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.

See Also:
Constant Field Values
Constructor Detail

SqlNode.Kind

private SqlNode.Kind()

SourceForge.net_Logo