com.sap.sl.sdk.authoring.datafoundation
Enum SQLDataType

java.lang.Object
  extended by java.lang.Enum<SQLDataType>
      extended by com.sap.sl.sdk.authoring.datafoundation.SQLDataType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<SQLDataType>

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

A representation of the literals of the 'SQL Data Type' enumeration, and methods to use them.

SQL Data Type values represent the data types associated with table columns in the data foundation.


Enum Constant Summary
BIG_INT
          The 'BIG INT' literal object.
BINARY
          The 'BINARY' literal object.
BIT
          The 'BIT' literal object.
CHAR
          The 'CHAR' literal object.
DATE
          The 'DATE' literal object.
DECIMAL
          The 'DECIMAL' literal object.
DOUBLE
          The 'DOUBLE' literal object.
FLOAT
          The 'FLOAT' literal object.
INTEGER
          The 'INTEGER' literal object.
LONG_VAR_BINARY
          The 'LONG VAR BINARY' literal object.
LONG_VAR_CHAR
          The 'LONG VAR CHAR' literal object.
NUMERIC
          The 'NUMERIC' literal object.
REAL
          The 'REAL' literal object.
SMALL_INT
          The 'SMALL INT' literal object.
TIME
          The 'TIME' literal object.
TIME_STAMP
          The 'TIME STAMP' literal object.
TINY_INT
          The 'TINY INT' literal object.
UNDEFINED
          The 'UNDEFINED' literal object.
VAR_BINARY
          The 'VAR BINARY' literal object.
VAR_CHAR
          The 'VAR CHAR' literal object.
XML
          The 'XML' literal object.
 
Field Summary
static int BIG_INT_VALUE
          The 'BIG INT' literal value.
static int BINARY_VALUE
          The 'BINARY' literal value.
static int BIT_VALUE
          The 'BIT' literal value.
static int CHAR_VALUE
          The 'CHAR' literal value.
static int DATE_VALUE
          The 'DATE' literal value.
static int DECIMAL_VALUE
          The 'DECIMAL' literal value.
static int DOUBLE_VALUE
          The 'DOUBLE' literal value.
static int FLOAT_VALUE
          The 'FLOAT' literal value.
static int INTEGER_VALUE
          The 'INTEGER' literal value.
static int LONG_VAR_BINARY_VALUE
          The 'LONG VAR BINARY' literal value.
static int LONG_VAR_CHAR_VALUE
          The 'LONG VAR CHAR' literal value.
static int NUMERIC_VALUE
          The 'NUMERIC' literal value.
static int REAL_VALUE
          The 'REAL' literal value.
static int SMALL_INT_VALUE
          The 'SMALL INT' literal value.
static int TIME_STAMP_VALUE
          The 'TIME STAMP' literal value.
static int TIME_VALUE
          The 'TIME' literal value.
static int TINY_INT_VALUE
          The 'TINY INT' literal value.
static int UNDEFINED_VALUE
          The 'UNDEFINED' literal value.
static java.util.List<SQLDataType> VALUES
          A public read-only list of all the 'SQL Data Type' enumerators.
static int VAR_BINARY_VALUE
          The 'VAR BINARY' literal value.
static int VAR_CHAR_VALUE
          The 'VAR CHAR' literal value.
static int XML_VALUE
          The 'XML' literal value.
 
Method Summary
static SQLDataType get(int value)
          Returns the 'SQL Data Type' literal with the specified integer value.
static SQLDataType get(java.lang.String literal)
          Returns the 'SQL Data Type' literal with the specified literal value.
static SQLDataType getByName(java.lang.String name)
          Returns the 'SQL Data Type' literal with the specified name.
 java.lang.String getLiteral()
          Returns the string representation of the enumerator.
 java.lang.String getName()
          Returns the literal name of the enumerator.
 int getValue()
          Returns the literal integer value of the enumerator.
 java.lang.String toString()
          Returns the literal value of the enumerator, which is its string representation.
static SQLDataType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static SQLDataType[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

UNDEFINED

public static final SQLDataType UNDEFINED
The 'UNDEFINED' literal object.

See Also:
UNDEFINED_VALUE

CHAR

public static final SQLDataType CHAR
The 'CHAR' literal object.

See Also:
CHAR_VALUE

VAR_CHAR

public static final SQLDataType VAR_CHAR
The 'VAR CHAR' literal object.

See Also:
VAR_CHAR_VALUE

LONG_VAR_CHAR

public static final SQLDataType LONG_VAR_CHAR
The 'LONG VAR CHAR' literal object.

See Also:
LONG_VAR_CHAR_VALUE

XML

public static final SQLDataType XML
The 'XML' literal object.

See Also:
XML_VALUE

BINARY

public static final SQLDataType BINARY
The 'BINARY' literal object.

See Also:
BINARY_VALUE

VAR_BINARY

public static final SQLDataType VAR_BINARY
The 'VAR BINARY' literal object.

See Also:
VAR_BINARY_VALUE

LONG_VAR_BINARY

public static final SQLDataType LONG_VAR_BINARY
The 'LONG VAR BINARY' literal object.

See Also:
LONG_VAR_BINARY_VALUE

BIT

public static final SQLDataType BIT
The 'BIT' literal object.

See Also:
BIT_VALUE

TINY_INT

public static final SQLDataType TINY_INT
The 'TINY INT' literal object.

See Also:
TINY_INT_VALUE

SMALL_INT

public static final SQLDataType SMALL_INT
The 'SMALL INT' literal object.

See Also:
SMALL_INT_VALUE

INTEGER

public static final SQLDataType INTEGER
The 'INTEGER' literal object.

See Also:
INTEGER_VALUE

BIG_INT

public static final SQLDataType BIG_INT
The 'BIG INT' literal object.

See Also:
BIG_INT_VALUE

DECIMAL

public static final SQLDataType DECIMAL
The 'DECIMAL' literal object.

See Also:
DECIMAL_VALUE

NUMERIC

public static final SQLDataType NUMERIC
The 'NUMERIC' literal object.

See Also:
NUMERIC_VALUE

REAL

public static final SQLDataType REAL
The 'REAL' literal object.

See Also:
REAL_VALUE

FLOAT

public static final SQLDataType FLOAT
The 'FLOAT' literal object.

See Also:
FLOAT_VALUE

DOUBLE

public static final SQLDataType DOUBLE
The 'DOUBLE' literal object.

See Also:
DOUBLE_VALUE

TIME

public static final SQLDataType TIME
The 'TIME' literal object.

See Also:
TIME_VALUE

DATE

public static final SQLDataType DATE
The 'DATE' literal object.

See Also:
DATE_VALUE

TIME_STAMP

public static final SQLDataType TIME_STAMP
The 'TIME STAMP' literal object.

See Also:
TIME_STAMP_VALUE
Field Detail

UNDEFINED_VALUE

public static final int UNDEFINED_VALUE
The 'UNDEFINED' literal value.

See Also:
UNDEFINED, Constant Field Values

CHAR_VALUE

public static final int CHAR_VALUE
The 'CHAR' literal value.

See Also:
CHAR, Constant Field Values

VAR_CHAR_VALUE

public static final int VAR_CHAR_VALUE
The 'VAR CHAR' literal value.

See Also:
VAR_CHAR, Constant Field Values

LONG_VAR_CHAR_VALUE

public static final int LONG_VAR_CHAR_VALUE
The 'LONG VAR CHAR' literal value.

See Also:
LONG_VAR_CHAR, Constant Field Values

XML_VALUE

public static final int XML_VALUE
The 'XML' literal value.

See Also:
XML, Constant Field Values

BINARY_VALUE

public static final int BINARY_VALUE
The 'BINARY' literal value.

See Also:
BINARY, Constant Field Values

VAR_BINARY_VALUE

public static final int VAR_BINARY_VALUE
The 'VAR BINARY' literal value.

See Also:
VAR_BINARY, Constant Field Values

LONG_VAR_BINARY_VALUE

public static final int LONG_VAR_BINARY_VALUE
The 'LONG VAR BINARY' literal value.

See Also:
LONG_VAR_BINARY, Constant Field Values

BIT_VALUE

public static final int BIT_VALUE
The 'BIT' literal value.

See Also:
BIT, Constant Field Values

TINY_INT_VALUE

public static final int TINY_INT_VALUE
The 'TINY INT' literal value.

See Also:
TINY_INT, Constant Field Values

SMALL_INT_VALUE

public static final int SMALL_INT_VALUE
The 'SMALL INT' literal value.

See Also:
SMALL_INT, Constant Field Values

INTEGER_VALUE

public static final int INTEGER_VALUE
The 'INTEGER' literal value.

See Also:
INTEGER, Constant Field Values

BIG_INT_VALUE

public static final int BIG_INT_VALUE
The 'BIG INT' literal value.

See Also:
BIG_INT, Constant Field Values

DECIMAL_VALUE

public static final int DECIMAL_VALUE
The 'DECIMAL' literal value.

See Also:
DECIMAL, Constant Field Values

NUMERIC_VALUE

public static final int NUMERIC_VALUE
The 'NUMERIC' literal value.

See Also:
NUMERIC, Constant Field Values

REAL_VALUE

public static final int REAL_VALUE
The 'REAL' literal value.

See Also:
REAL, Constant Field Values

FLOAT_VALUE

public static final int FLOAT_VALUE
The 'FLOAT' literal value.

See Also:
FLOAT, Constant Field Values

DOUBLE_VALUE

public static final int DOUBLE_VALUE
The 'DOUBLE' literal value.

See Also:
DOUBLE, Constant Field Values

TIME_VALUE

public static final int TIME_VALUE
The 'TIME' literal value.

See Also:
TIME, Constant Field Values

DATE_VALUE

public static final int DATE_VALUE
The 'DATE' literal value.

See Also:
DATE, Constant Field Values

TIME_STAMP_VALUE

public static final int TIME_STAMP_VALUE
The 'TIME STAMP' literal value.

See Also:
TIME_STAMP, Constant Field Values

VALUES

public static final java.util.List<SQLDataType> VALUES
A public read-only list of all the 'SQL Data Type' enumerators.

Method Detail

values

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

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

valueOf

public static SQLDataType 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

get

public static SQLDataType get(java.lang.String literal)
Returns the 'SQL Data Type' literal with the specified literal value.

Parameters:
literal - The data type literal as a string
Returns:
An SQLDataType object

getByName

public static SQLDataType getByName(java.lang.String name)
Returns the 'SQL Data Type' literal with the specified name.

Parameters:
name - The data type name
Returns:
An SQLDataType object

get

public static SQLDataType get(int value)
Returns the 'SQL Data Type' literal with the specified integer value.

Parameters:
value - The literal integer value
Returns:
An SQLDataType object

getValue

public int getValue()
Returns the literal integer value of the enumerator.

Returns:
An integer that represents the literal value

getName

public java.lang.String getName()
Returns the literal name of the enumerator.

Returns:
A String that corresponds to the literal name

getLiteral

public java.lang.String getLiteral()
Returns the string representation of the enumerator.

Returns:
A String that corresponds to the enumerator

toString

public java.lang.String toString()
Returns the literal value of the enumerator, which is its string representation.

Overrides:
toString in class java.lang.Enum<SQLDataType>
Returns:
A String that represents the literal


© Copyright 2016 SAP SE or an SAP affiliate company. All rights reserved.