schemacrawler.schema
Interface ColumnDataType

All Superinterfaces:
Comparable<NamedObject>, DatabaseObject, NamedObject, Serializable

public interface ColumnDataType
extends DatabaseObject

Represents a column type. Provides the java.sql.Types type, the java.sql.Types type name, and the database specific data type name.

Author:
Sualeh Fatehi

Method Summary
 ColumnDataType getBaseType()
          Gets the base type of the data type.
 String getCreateParameters()
          Gets the parameters needed when using this data type.
 String getDatabaseSpecificTypeName()
          Gets the database specific data type name.
 String getLiteralPrefix()
          Gets the literal prefix.
 String getLiteralSuffix()
          Gets the literal suffix.
 String getLocalTypeName()
          Gets the local data type name.
 int getMaximumScale()
          Gets the maximum scale.
 int getMinimumScale()
          Gets the minimum scale.
 int getNumPrecisionRadix()
          Gets the precision of the radix.
 long getPrecision()
          Gets the precision.
 SearchableType getSearchable()
          Gets the search method.
 int getType()
          Gets the java.sql.Types type.
 String getTypeClassName()
          Gets the Java class name for the type.
 String getTypeName()
          Gets the java.sql.Types type name.
 boolean isAutoIncrementable()
          Whether the data type is auto-incrementable.
 boolean isCaseSensitive()
          Whether the data type is case-sensitive.
 boolean isFixedPrecisionScale()
          Whether the data type has a fixed precision scale.
 boolean isNullable()
          Whether the data type is nullable.
 boolean isUnsigned()
          Whether the data type is unsigned.
 boolean isUserDefined()
          Whether the data type is user-defined.
 
Methods inherited from interface schemacrawler.schema.DatabaseObject
getSchema
 
Methods inherited from interface schemacrawler.schema.NamedObject
getAttribute, getAttributes, getFullName, getName, getRemarks, setAttribute
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getBaseType

ColumnDataType getBaseType()
Gets the base type of the data type.

Returns:
Base type

getCreateParameters

String getCreateParameters()
Gets the parameters needed when using this data type.

Returns:
Parameters needed when using this data type

getDatabaseSpecificTypeName

String getDatabaseSpecificTypeName()
Gets the database specific data type name.

Returns:
Database specific data type name

getLiteralPrefix

String getLiteralPrefix()
Gets the literal prefix.

Returns:
Literal prefix

getLiteralSuffix

String getLiteralSuffix()
Gets the literal suffix.

Returns:
Literal suffix

getLocalTypeName

String getLocalTypeName()
Gets the local data type name.

Returns:
Local data type name

getMaximumScale

int getMaximumScale()
Gets the maximum scale.

Returns:
Maximum scale

getMinimumScale

int getMinimumScale()
Gets the minimum scale.

Returns:
Minimum scale

getNumPrecisionRadix

int getNumPrecisionRadix()
Gets the precision of the radix.

Returns:
Precision of the radix

getPrecision

long getPrecision()
Gets the precision.

Returns:
Precision

getSearchable

SearchableType getSearchable()
Gets the search method.

Returns:
Search method

getType

int getType()
Gets the java.sql.Types type.

Returns:
java.sql.Types type

getTypeClassName

String getTypeClassName()
Gets the Java class name for the type.

Returns:
The Java class name for the type

getTypeName

String getTypeName()
Gets the java.sql.Types type name.

Returns:
java.sql.Types type name

isAutoIncrementable

boolean isAutoIncrementable()
Whether the data type is auto-incrementable.

Returns:
Whether the data type is auto-incrementable

isCaseSensitive

boolean isCaseSensitive()
Whether the data type is case-sensitive.

Returns:
Whether the data type is case-sensitive

isFixedPrecisionScale

boolean isFixedPrecisionScale()
Whether the data type has a fixed precision scale.

Returns:
Whether the data type has a fixed precision scale

isNullable

boolean isNullable()
Whether the data type is nullable.

Returns:
Whether the data type is nullable

isUnsigned

boolean isUnsigned()
Whether the data type is unsigned.

Returns:
Whether the data type is unsigned

isUserDefined

boolean isUserDefined()
Whether the data type is user-defined.

Returns:
Whether the data type is user-defined


Copyright © 2003-2009 Sualeh Fatehi. All Rights Reserved.