com.simba.dsi.ext.aetree
Enum LiteralType

java.lang.Object
  extended by java.lang.Enum<LiteralType>
      extended by com.simba.dsi.ext.aetree.LiteralType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<LiteralType>

public enum LiteralType
extends java.lang.Enum<LiteralType>

An enumeration class that defines a list of literal value types.


Enum Constant Summary
APPROXIMATE_NUMERIC
          Approximate Numeric Literals.
BINARY
          Binary Literals.
CHARACTER_STRING
          Character String Literals.
DATA_TYPE
          SQL Data Type Keyword Literals.
DATE
          Date Literals.
DECIMAL
          Decimal Numeric Literals.
GUID
          GUID Literals.
INTERVAL_DAY
          Interval Day Literals.
INTERVAL_DAY_HOUR
          Interval Day-Hour Literals.
INTERVAL_DAY_MINUTE
          Interval Minute Literals.
INTERVAL_DAY_SECOND
          Interval Day Literals.
INTERVAL_HOUR
          Interval Hour Literals.
INTERVAL_HOUR_MINUTE
          Interval Hour-Minute Literals.
INTERVAL_HOUR_SECOND
          Interval Hour Literals.
INTERVAL_MINUTE
          Interval Minute Literals.
INTERVAL_MINUTE_SECOND
          Interval Minute-Second Literals.
INTERVAL_MONTH
          Interval Month Literals.
INTERVAL_SECOND
          Interval Second Literals.
INTERVAL_YEAR
          Interval Year Literals.
INTERVAL_YEAR_MONTH
          Interval Year-Month Literals.
INVALID
          Invalid LiteralType value.
NULL
          NULL Literals.
TIME
          Time Literals.
TIMESTAMP
          Timestamp Literals.
UNSIGNED_INTEGER
          Unsigned Integer Literals.
 
Method Summary
static LiteralType getType(int identifier)
          Translate an integer to a literal type.
static LiteralType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static LiteralType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

APPROXIMATE_NUMERIC

public static final LiteralType APPROXIMATE_NUMERIC
Approximate Numeric Literals.


BINARY

public static final LiteralType BINARY
Binary Literals.


CHARACTER_STRING

public static final LiteralType CHARACTER_STRING
Character String Literals.


DATA_TYPE

public static final LiteralType DATA_TYPE
SQL Data Type Keyword Literals.


DATE

public static final LiteralType DATE
Date Literals.


DECIMAL

public static final LiteralType DECIMAL
Decimal Numeric Literals.


GUID

public static final LiteralType GUID
GUID Literals.


TIME

public static final LiteralType TIME
Time Literals.


TIMESTAMP

public static final LiteralType TIMESTAMP
Timestamp Literals.


UNSIGNED_INTEGER

public static final LiteralType UNSIGNED_INTEGER
Unsigned Integer Literals.


INTERVAL_YEAR

public static final LiteralType INTERVAL_YEAR
Interval Year Literals.


INTERVAL_YEAR_MONTH

public static final LiteralType INTERVAL_YEAR_MONTH
Interval Year-Month Literals.


INTERVAL_MONTH

public static final LiteralType INTERVAL_MONTH
Interval Month Literals.


INTERVAL_DAY

public static final LiteralType INTERVAL_DAY
Interval Day Literals.


INTERVAL_DAY_HOUR

public static final LiteralType INTERVAL_DAY_HOUR
Interval Day-Hour Literals.


INTERVAL_DAY_MINUTE

public static final LiteralType INTERVAL_DAY_MINUTE
Interval Minute Literals.


INTERVAL_DAY_SECOND

public static final LiteralType INTERVAL_DAY_SECOND
Interval Day Literals.


INTERVAL_HOUR

public static final LiteralType INTERVAL_HOUR
Interval Hour Literals.


INTERVAL_HOUR_MINUTE

public static final LiteralType INTERVAL_HOUR_MINUTE
Interval Hour-Minute Literals.


INTERVAL_HOUR_SECOND

public static final LiteralType INTERVAL_HOUR_SECOND
Interval Hour Literals.


INTERVAL_MINUTE

public static final LiteralType INTERVAL_MINUTE
Interval Minute Literals.


INTERVAL_MINUTE_SECOND

public static final LiteralType INTERVAL_MINUTE_SECOND
Interval Minute-Second Literals.


INTERVAL_SECOND

public static final LiteralType INTERVAL_SECOND
Interval Second Literals.


NULL

public static final LiteralType NULL
NULL Literals.


INVALID

public static final LiteralType INVALID
Invalid LiteralType value.

Method Detail

values

public static LiteralType[] 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 (LiteralType c : LiteralType.values())
    System.out.println(c);

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

valueOf

public static LiteralType valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getType

public static final LiteralType getType(int identifier)
Translate an integer to a literal type.

Parameters:
identifier - The native ID defined in the C++ PSLiteralType enum. The ordinals of the LiteralType enum in Java are all equal to those in C++.
Returns:
the literal type for the given identifier.


Copyright © 2006-2014 Simba Technologies Incorporated. All Rights Reserved.