|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<DataType>
com.sap.sl.sdk.authoring.businesslayer.DataType
public 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 |
---|
public static final DataType NUMERIC
NUMERIC_VALUE
public static final DataType STRING
STRING_VALUE
public static final DataType DATE
DATE_VALUE
public static final DataType DATE_TIME
DATE_TIME_VALUE
public static final DataType LONG_TEXT
LONG_TEXT_VALUE
public static final DataType BLOB
BLOB_VALUE
public static final DataType BOOLEAN
BOOLEAN_VALUE
Field Detail |
---|
public static final int NUMERIC_VALUE
NUMERIC
,
Constant Field Valuespublic static final int STRING_VALUE
STRING
,
Constant Field Valuespublic static final int DATE_VALUE
DATE
,
Constant Field Valuespublic static final int DATE_TIME_VALUE
DATE_TIME
,
Constant Field Valuespublic static final int LONG_TEXT_VALUE
LONG_TEXT
,
Constant Field Valuespublic static final int BLOB_VALUE
BLOB
,
Constant Field Valuespublic static final int BOOLEAN_VALUE
BOOLEAN
,
Constant Field Valuespublic static final java.util.List<DataType> VALUES
Method Detail |
---|
public static DataType[] values()
for (DataType c : DataType.values()) System.out.println(c);
public static DataType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic static DataType get(java.lang.String literal)
literal
- The data type literal as a string
DataType
object
public static DataType getByName(java.lang.String name)
name
- The literal name of the enumerator
DataType
object
public static DataType get(int value)
value
- The literal integer value of the enumerator
DataType
object
public static DataType[] sortForName(DataType[] dataTypes)
dataTypes
- An array of data types
public int getValue()
public java.lang.String getName()
public java.lang.String getLiteral()
public java.lang.String toString()
toString
in class java.lang.Enum<DataType>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |