com.semarchy.mdm.runtime.model.common
Enum LogicalDataType

java.lang.Object
  extended by java.lang.Enum<LogicalDataType>
      extended by com.semarchy.mdm.runtime.model.common.LogicalDataType
All Implemented Interfaces:
Serializable, Comparable<LogicalDataType>

public enum LogicalDataType
extends Enum<LogicalDataType>

Runtime logical datatypes

Author:
skamel

Enum Constant Summary
BINARY
           
BOOLEAN
           
BYTE_INTEGER
           
DATETIME
           
DECIMAL
           
INTEGER
           
LONG_INTEGER
           
LONG_TEXT
           
SHORT_INTEGER
           
STRING
           
TIMESTAMP
           
UUID
           
 
Method Summary
 String getDisplayName(Integer pLength, Integer pPrecision, Integer pScale)
           
 String getLabel()
           
 String getName()
           
 String getSuffixPattern(Integer pLength, Integer pPrecision, Integer pScale)
           
static String getTypeDisplayName(IColumnAttribute pAttr)
           
 boolean isLOB()
           
static void replaceDDLPattern(StringBuilder builder, Integer pLength, Integer pPrecision, Integer pScale)
           
 boolean supportsLength()
           
 boolean supportsPrecision()
           
 boolean supportsScale()
           
static LogicalDataType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static LogicalDataType[] 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

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
Method Detail

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.