com.alibaba.druid.sql.ast.expr
Enum SQLBinaryOperator

java.lang.Object
  extended by java.lang.Enum<SQLBinaryOperator>
      extended by com.alibaba.druid.sql.ast.expr.SQLBinaryOperator
All Implemented Interfaces:
Serializable, Comparable<SQLBinaryOperator>

public enum SQLBinaryOperator
extends Enum<SQLBinaryOperator>

二元操作符

Author:
wenshao 2011-5-20 下午12:32:02

Enum Constant Summary
Add
           
Assignment
           
BitwiseAnd
           
BitwiseNot
           
BitwiseOr
           
BitwiseXor
           
BooleanAnd
           
BooleanOr
           
BooleanXor
           
COLLATE
           
Concat
           
Divide
           
Equality
           
Escape
           
GreaterThan
           
GreaterThanOrEqual
           
InvertBits
           
Is
           
IsNot
           
LeftShift
           
LessThan
           
LessThanOrEqual
           
LessThanOrEqualOrGreaterThan
           
LessThanOrGreater
           
Like
           
Modulus
           
Multiply
           
NotEqual
           
NotGreaterThan
           
NotLessThan
           
NotLike
           
NotRegExp
           
NotRLike
           
RegExp
           
RightShift
           
RLike
           
Subtract
           
Union
           
 
Field Summary
 String name
           
 int priority
           
 
Method Summary
static int getPriority(SQLBinaryOperator operator)
           
 boolean isRelational()
           
static SQLBinaryOperator valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SQLBinaryOperator[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Union

public static final SQLBinaryOperator Union

COLLATE

public static final SQLBinaryOperator COLLATE

BitwiseXor

public static final SQLBinaryOperator BitwiseXor

Multiply

public static final SQLBinaryOperator Multiply

Divide

public static final SQLBinaryOperator Divide

Modulus

public static final SQLBinaryOperator Modulus

Add

public static final SQLBinaryOperator Add

Subtract

public static final SQLBinaryOperator Subtract

LeftShift

public static final SQLBinaryOperator LeftShift

RightShift

public static final SQLBinaryOperator RightShift

BitwiseAnd

public static final SQLBinaryOperator BitwiseAnd

BitwiseOr

public static final SQLBinaryOperator BitwiseOr

InvertBits

public static final SQLBinaryOperator InvertBits

GreaterThan

public static final SQLBinaryOperator GreaterThan

GreaterThanOrEqual

public static final SQLBinaryOperator GreaterThanOrEqual

Is

public static final SQLBinaryOperator Is

LessThan

public static final SQLBinaryOperator LessThan

LessThanOrEqual

public static final SQLBinaryOperator LessThanOrEqual

LessThanOrEqualOrGreaterThan

public static final SQLBinaryOperator LessThanOrEqualOrGreaterThan

LessThanOrGreater

public static final SQLBinaryOperator LessThanOrGreater

Like

public static final SQLBinaryOperator Like

NotLike

public static final SQLBinaryOperator NotLike

RLike

public static final SQLBinaryOperator RLike

NotRLike

public static final SQLBinaryOperator NotRLike

NotEqual

public static final SQLBinaryOperator NotEqual

NotLessThan

public static final SQLBinaryOperator NotLessThan

NotGreaterThan

public static final SQLBinaryOperator NotGreaterThan

IsNot

public static final SQLBinaryOperator IsNot

Escape

public static final SQLBinaryOperator Escape

RegExp

public static final SQLBinaryOperator RegExp

NotRegExp

public static final SQLBinaryOperator NotRegExp

Equality

public static final SQLBinaryOperator Equality

BitwiseNot

public static final SQLBinaryOperator BitwiseNot

Concat

public static final SQLBinaryOperator Concat

BooleanAnd

public static final SQLBinaryOperator BooleanAnd

BooleanXor

public static final SQLBinaryOperator BooleanXor

BooleanOr

public static final SQLBinaryOperator BooleanOr

Assignment

public static final SQLBinaryOperator Assignment
Field Detail

name

public final String name

priority

public final int priority
Method Detail

values

public static SQLBinaryOperator[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (SQLBinaryOperator c : SQLBinaryOperator.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static SQLBinaryOperator valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getPriority

public static int getPriority(SQLBinaryOperator operator)

isRelational

public boolean isRelational()


Copyright © 2012 Alibaba Group. All Rights Reserved.