com.sap.sl.sdk.authoring.businesslayer
Enum DataType

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

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

A representation of the literals of the enumeration 'Data Type', and utility methods to work with them.

Use this enum to define the type of the table columns in the business layer.


Enum Constant Summary
BLOB
          The 'BLOB' literal object.
BOOLEAN
          The 'BOOLEAN' literal object.
DATE
          The 'DATE' literal object.
DATE_TIME
          The 'DATE TIME' literal object.
LONG_TEXT
          The 'LONG TEXT' literal object.
NUMERIC
          The 'NUMERIC' literal object.
STRING
          The 'STRING' literal object.
 
Field Summary
static int BLOB_VALUE
          The 'BLOB' literal value.
static int BOOLEAN_VALUE
          The 'BOOLEAN' literal value.
static int DATE_TIME_VALUE
          The 'DATE TIME' literal value.
static int DATE_VALUE
          The 'DATE' literal value.
static int LONG_TEXT_VALUE
          The 'LONG TEXT' literal value.
static int NUMERIC_VALUE
          The 'NUMERIC' literal value.
static int STRING_VALUE
          The 'STRING' literal value.
static java.util.List<DataType> VALUES
          A public read-only list of all the 'Data Type' enumerators.
 
Method Summary
static DataType get(int value)
          Returns the 'Data Type' literal with the specified integer value.
static DataType get(java.lang.String literal)
          Returns the 'Data Type' literal with the specified literal value.
static DataType getByName(java.lang.String name)
          Returns the '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.
static DataType[] sortForName(DataType[] dataTypes)
          Returns an array of data types sorted by name.
 java.lang.String toString()
          Returns the literal value of the enumerator, which is its string representation.
static DataType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static DataType[] 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

NUMERIC

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

See Also:
NUMERIC_VALUE

STRING

public static final DataType STRING
The 'STRING' literal object.

See Also:
STRING_VALUE

DATE

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

See Also:
DATE_VALUE

DATE_TIME

public static final DataType DATE_TIME
The 'DATE TIME' literal object.

See Also:
DATE_TIME_VALUE

LONG_TEXT

public static final DataType LONG_TEXT
The 'LONG TEXT' literal object.

See Also:
LONG_TEXT_VALUE

BLOB

public static final DataType BLOB
The 'BLOB' literal object.

See Also:
BLOB_VALUE

BOOLEAN

public static final DataType BOOLEAN
The 'BOOLEAN' literal object.

See Also:
BOOLEAN_VALUE
Field Detail

NUMERIC_VALUE

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

See Also:
NUMERIC, Constant Field Values

STRING_VALUE

public static final int STRING_VALUE
The 'STRING' literal value.

See Also:
STRING, Constant Field Values

DATE_VALUE

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

See Also:
DATE, Constant Field Values

DATE_TIME_VALUE

public static final int DATE_TIME_VALUE
The 'DATE TIME' literal value.

See Also:
DATE_TIME, Constant Field Values

LONG_TEXT_VALUE

public static final int LONG_TEXT_VALUE
The 'LONG TEXT' literal value.

See Also:
LONG_TEXT, Constant Field Values

BLOB_VALUE

public static final int BLOB_VALUE
The 'BLOB' literal value.

See Also:
BLOB, Constant Field Values

BOOLEAN_VALUE

public static final int BOOLEAN_VALUE
The 'BOOLEAN' literal value.

See Also:
BOOLEAN, Constant Field Values

VALUES

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

Method Detail

values

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

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

valueOf

public static DataType 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 DataType get(java.lang.String literal)
Returns the 'Data Type' literal with the specified literal value.

Parameters:
literal - The data type literal as a string
Returns:
A DataType object

getByName

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

Parameters:
name - The literal name of the enumerator
Returns:
A DataType object

get

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

Parameters:
value - The literal integer value of the enumerator
Returns:
A DataType object

sortForName

public static DataType[] sortForName(DataType[] dataTypes)
Returns an array of data types sorted by name.

Parameters:
dataTypes - An array of data types
Returns:
An array of sorted data types

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<DataType>
Returns:
A String that represents the literal


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