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

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

public enum PhysicalDataType
extends Enum<PhysicalDataType>

Enumeration of all supported physical data types for the Runtime Metadata

Author:
sarod

Enum Constant Summary
BLOB
          Binary Large Object: Binary Large Object
CHAR
          Character: Character
CLOB
          Character Large Object: Character Large Object
DATE
          Date Time: Date Time
NUMBER
          Number: Number
RAW
          Raw binary: Raw binary
TIMESTAMP
          Timestamp: Timestamp
VARCHAR
          Variable character: Variable character
 
Method Summary
 String getDDLPattern()
           
 String getDDLPattern(Integer pLength, Integer pPrecision, Integer pScale)
           
 Integer getMaxLength()
           
 Integer getMaxPrecision()
           
 Integer getMaxScale()
           
 Integer getMinLength()
           
 Integer getMinPrecision()
           
 Integer getMinScale()
           
 String getName()
           
 boolean isLengthSupported()
           
 boolean isLOB()
           
 boolean isPrecisionSupported()
           
 boolean isScaleSupported()
           
static PhysicalDataType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PhysicalDataType[] 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

BLOB

public static final PhysicalDataType BLOB
Binary Large Object: Binary Large Object


CHAR

public static final PhysicalDataType CHAR
Character: Character


CLOB

public static final PhysicalDataType CLOB
Character Large Object: Character Large Object


DATE

public static final PhysicalDataType DATE
Date Time: Date Time


NUMBER

public static final PhysicalDataType NUMBER
Number: Number


RAW

public static final PhysicalDataType RAW
Raw binary: Raw binary


TIMESTAMP

public static final PhysicalDataType TIMESTAMP
Timestamp: Timestamp


VARCHAR

public static final PhysicalDataType VARCHAR
Variable character: Variable character

Method Detail

values

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

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

valueOf

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

getDDLPattern

public String getDDLPattern()

isLengthSupported

public boolean isLengthSupported()

getMaxLength

public Integer getMaxLength()

isPrecisionSupported

public boolean isPrecisionSupported()

getMaxPrecision

public Integer getMaxPrecision()

isScaleSupported

public boolean isScaleSupported()

getMaxScale

public Integer getMaxScale()

getMinScale

public Integer getMinScale()

getMinPrecision

public Integer getMinPrecision()

getMinLength

public Integer getMinLength()

isLOB

public boolean isLOB()

getDDLPattern

public String getDDLPattern(Integer pLength,
                            Integer pPrecision,
                            Integer pScale)

getName

public String getName()


Copyright © 2015. All Rights Reserved.