ColumnDataType Class

public final class ColumnDataType
extends ExpandableStringEnum<ColumnDataType>

The column data type.

Field Summary

Modifier and Type Field and Description
static final ColumnDataType BIGINT

Static value bigint for ColumnDataType.

static final ColumnDataType BINARY

Static value binary for ColumnDataType.

static final ColumnDataType BIT

Static value bit for ColumnDataType.

static final ColumnDataType CHAR

Static value char for ColumnDataType.

static final ColumnDataType DATE

Static value date for ColumnDataType.

static final ColumnDataType DATETIME

Static value datetime for ColumnDataType.

static final ColumnDataType DATETIME2

Static value datetime2 for ColumnDataType.

static final ColumnDataType DATETIMEOFFSET

Static value datetimeoffset for ColumnDataType.

static final ColumnDataType DECIMAL

Static value decimal for ColumnDataType.

static final ColumnDataType FLOAT

Static value float for ColumnDataType.

static final ColumnDataType GEOGRAPHY

Static value geography for ColumnDataType.

static final ColumnDataType GEOMETRY

Static value geometry for ColumnDataType.

static final ColumnDataType HIERARCHYID

Static value hierarchyid for ColumnDataType.

static final ColumnDataType IMAGE

Static value image for ColumnDataType.

static final ColumnDataType INT

Static value int for ColumnDataType.

static final ColumnDataType MONEY

Static value money for ColumnDataType.

static final ColumnDataType NCHAR

Static value nchar for ColumnDataType.

static final ColumnDataType NTEXT

Static value ntext for ColumnDataType.

static final ColumnDataType NUMERIC

Static value numeric for ColumnDataType.

static final ColumnDataType NVARCHAR

Static value nvarchar for ColumnDataType.

static final ColumnDataType REAL

Static value real for ColumnDataType.

static final ColumnDataType SMALLDATETIME

Static value smalldatetime for ColumnDataType.

static final ColumnDataType SMALLINT

Static value smallint for ColumnDataType.

static final ColumnDataType SMALLMONEY

Static value smallmoney for ColumnDataType.

static final ColumnDataType SQL_VARIANT

Static value sql_variant for ColumnDataType.

static final ColumnDataType SYSNAME

Static value sysname for ColumnDataType.

static final ColumnDataType TEXT

Static value text for ColumnDataType.

static final ColumnDataType TIME

Static value time for ColumnDataType.

static final ColumnDataType TIMESTAMP

Static value timestamp for ColumnDataType.

static final ColumnDataType TINYINT

Static value tinyint for ColumnDataType.

static final ColumnDataType UNIQUEIDENTIFIER

Static value uniqueidentifier for ColumnDataType.

static final ColumnDataType VARBINARY

Static value varbinary for ColumnDataType.

static final ColumnDataType VARCHAR

Static value varchar for ColumnDataType.

static final ColumnDataType XML

Static value xml for ColumnDataType.

Constructor Summary

Constructor Description
ColumnDataType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of ColumnDataType value.

Method Summary

Modifier and Type Method and Description
static ColumnDataType fromString(String name)

Creates or finds a ColumnDataType from its string representation.

static Collection<ColumnDataType> values()

Gets known ColumnDataType values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

BIGINT

public static final ColumnDataType BIGINT

Static value bigint for ColumnDataType.

BINARY

public static final ColumnDataType BINARY

Static value binary for ColumnDataType.

BIT

public static final ColumnDataType BIT

Static value bit for ColumnDataType.

CHAR

public static final ColumnDataType CHAR

Static value char for ColumnDataType.

DATE

public static final ColumnDataType DATE

Static value date for ColumnDataType.

DATETIME

public static final ColumnDataType DATETIME

Static value datetime for ColumnDataType.

DATETIME2

public static final ColumnDataType DATETIME2

Static value datetime2 for ColumnDataType.

DATETIMEOFFSET

public static final ColumnDataType DATETIMEOFFSET

Static value datetimeoffset for ColumnDataType.

DECIMAL

public static final ColumnDataType DECIMAL

Static value decimal for ColumnDataType.

FLOAT

public static final ColumnDataType FLOAT

Static value float for ColumnDataType.

GEOGRAPHY

public static final ColumnDataType GEOGRAPHY

Static value geography for ColumnDataType.

GEOMETRY

public static final ColumnDataType GEOMETRY

Static value geometry for ColumnDataType.

HIERARCHYID

public static final ColumnDataType HIERARCHYID

Static value hierarchyid for ColumnDataType.

IMAGE

public static final ColumnDataType IMAGE

Static value image for ColumnDataType.

INT

public static final ColumnDataType INT

Static value int for ColumnDataType.

MONEY

public static final ColumnDataType MONEY

Static value money for ColumnDataType.

NCHAR

public static final ColumnDataType NCHAR

Static value nchar for ColumnDataType.

NTEXT

public static final ColumnDataType NTEXT

Static value ntext for ColumnDataType.

NUMERIC

public static final ColumnDataType NUMERIC

Static value numeric for ColumnDataType.

NVARCHAR

public static final ColumnDataType NVARCHAR

Static value nvarchar for ColumnDataType.

REAL

public static final ColumnDataType REAL

Static value real for ColumnDataType.

SMALLDATETIME

public static final ColumnDataType SMALLDATETIME

Static value smalldatetime for ColumnDataType.

SMALLINT

public static final ColumnDataType SMALLINT

Static value smallint for ColumnDataType.

SMALLMONEY

public static final ColumnDataType SMALLMONEY

Static value smallmoney for ColumnDataType.

SQL_VARIANT

public static final ColumnDataType SQL_VARIANT

Static value sql_variant for ColumnDataType.

SYSNAME

public static final ColumnDataType SYSNAME

Static value sysname for ColumnDataType.

TEXT

public static final ColumnDataType TEXT

Static value text for ColumnDataType.

TIME

public static final ColumnDataType TIME

Static value time for ColumnDataType.

TIMESTAMP

public static final ColumnDataType TIMESTAMP

Static value timestamp for ColumnDataType.

TINYINT

public static final ColumnDataType TINYINT

Static value tinyint for ColumnDataType.

UNIQUEIDENTIFIER

public static final ColumnDataType UNIQUEIDENTIFIER

Static value uniqueidentifier for ColumnDataType.

VARBINARY

public static final ColumnDataType VARBINARY

Static value varbinary for ColumnDataType.

VARCHAR

public static final ColumnDataType VARCHAR

Static value varchar for ColumnDataType.

XML

public static final ColumnDataType XML

Static value xml for ColumnDataType.

Constructor Details

ColumnDataType

@Deprecated
public ColumnDataType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of ColumnDataType value.

Method Details

fromString

public static ColumnDataType fromString(String name)

Creates or finds a ColumnDataType from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding ColumnDataType.

values

public static Collection values()

Gets known ColumnDataType values.

Returns:

known ColumnDataType values.

Applies to