com.semarchy.mdm.runtime.model.common
Enum LogicalDataType
java.lang.Object
java.lang.Enum<LogicalDataType>
com.semarchy.mdm.runtime.model.common.LogicalDataType
- All Implemented Interfaces:
- Serializable, Comparable<LogicalDataType>
public enum LogicalDataType
- extends Enum<LogicalDataType>
Runtime logical datatypes
- Author:
- skamel
BINARY
public static final LogicalDataType BINARY
BOOLEAN
public static final LogicalDataType BOOLEAN
BYTE_INTEGER
public static final LogicalDataType BYTE_INTEGER
DATETIME
public static final LogicalDataType DATETIME
DECIMAL
public static final LogicalDataType DECIMAL
INTEGER
public static final LogicalDataType INTEGER
LONG_INTEGER
public static final LogicalDataType LONG_INTEGER
LONG_TEXT
public static final LogicalDataType LONG_TEXT
SHORT_INTEGER
public static final LogicalDataType SHORT_INTEGER
STRING
public static final LogicalDataType STRING
TIMESTAMP
public static final LogicalDataType TIMESTAMP
UUID
public static final LogicalDataType UUID
values
public static LogicalDataType[] 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 (LogicalDataType c : LogicalDataType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static LogicalDataType 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
getName
public String getName()
isLOB
public boolean isLOB()
getLabel
public String getLabel()
getDisplayName
public String getDisplayName(Integer pLength,
Integer pPrecision,
Integer pScale)
getTypeDisplayName
public static String getTypeDisplayName(IColumnAttribute pAttr)
supportsLength
public boolean supportsLength()
supportsScale
public boolean supportsScale()
supportsPrecision
public boolean supportsPrecision()
getSuffixPattern
public String getSuffixPattern(Integer pLength,
Integer pPrecision,
Integer pScale)
replaceDDLPattern
public static void replaceDDLPattern(StringBuilder builder,
Integer pLength,
Integer pPrecision,
Integer pScale)
Copyright © 2015. All Rights Reserved.