public enum SqlServerType extends Enum<SqlServerType> implements Type
| Modifier and Type | Class and Description |
|---|---|
static class |
SqlServerType.Category
Type categories.
|
Type.InferredType| Enum Constant and Description |
|---|
BIGINT |
BINARY |
BIT |
CHAR |
DATE |
DATETIME |
DATETIME2 |
DATETIMEOFFSET |
DECIMAL |
FLOAT |
GEOGRAPHY |
GEOMETRY |
GUID |
IMAGE |
INTEGER |
MONEY |
NCHAR |
NTEXT |
NUMERIC |
NVARCHAR |
NVARCHARMAX |
REAL |
SMALLDATETIME |
SMALLINT |
SMALLMONEY |
SQL_VARIANT |
TEXT |
TIME |
TIMESTAMP |
TINYINT |
UDT |
UNKNOWN |
VARBINARY |
VARBINARYMAX |
VARCHAR |
VARCHARMAX |
XML |
| Modifier and Type | Method and Description |
|---|---|
SqlServerType.Category |
getCategory() |
TdsDataType[] |
getFixedTypes() |
Class<?> |
getJavaType() |
int |
getMaxLength() |
String |
getName() |
TdsDataType |
getNullableType() |
static SqlServerType |
of(R2dbcType type)
Resolve a
SqlServerType by its R2dbcType. |
static SqlServerType |
of(String typeName)
Resolve a
SqlServerType by its typeName. |
String |
toString()
Returns the type name.
|
static SqlServerType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SqlServerType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SqlServerType UNKNOWN
public static final SqlServerType TINYINT
public static final SqlServerType BIT
public static final SqlServerType SMALLINT
public static final SqlServerType INTEGER
public static final SqlServerType BIGINT
public static final SqlServerType FLOAT
public static final SqlServerType REAL
public static final SqlServerType SMALLDATETIME
public static final SqlServerType DATETIME
public static final SqlServerType DATE
public static final SqlServerType TIME
public static final SqlServerType DATETIME2
public static final SqlServerType DATETIMEOFFSET
public static final SqlServerType SMALLMONEY
public static final SqlServerType MONEY
public static final SqlServerType CHAR
public static final SqlServerType VARCHAR
public static final SqlServerType VARCHARMAX
public static final SqlServerType TEXT
public static final SqlServerType NCHAR
public static final SqlServerType NVARCHAR
public static final SqlServerType NVARCHARMAX
public static final SqlServerType NTEXT
public static final SqlServerType BINARY
public static final SqlServerType VARBINARY
public static final SqlServerType VARBINARYMAX
public static final SqlServerType IMAGE
public static final SqlServerType DECIMAL
public static final SqlServerType NUMERIC
public static final SqlServerType GUID
public static final SqlServerType SQL_VARIANT
public static final SqlServerType UDT
public static final SqlServerType XML
public static final SqlServerType TIMESTAMP
public static final SqlServerType GEOMETRY
public static final SqlServerType GEOGRAPHY
public static SqlServerType[] values()
for (SqlServerType c : SqlServerType.values()) System.out.println(c);
public static SqlServerType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static SqlServerType of(String typeName)
SqlServerType by its typeName. Name comparison is case-insensitive.typeName - the type name.SqlServerType.IllegalArgumentException - if the type name cannot be resolved to a SqlServerTypepublic static SqlServerType of(R2dbcType type)
SqlServerType by its R2dbcType.type - the R2DBC type.SqlServerType.IllegalArgumentException - if the type name cannot be resolved to a SqlServerTypepublic SqlServerType.Category getCategory()
public Class<?> getJavaType()
getJavaType in interface Typepublic int getMaxLength()
@Nullable public TdsDataType getNullableType()
public TdsDataType[] getFixedTypes()
public String toString()
toString in class Enum<SqlServerType>Copyright © 2023. All rights reserved.