public enum LengthStrategy extends Enum<LengthStrategy>
| Enum Constant and Description |
|---|
BYTELENTYPE
Variable length type such as
NUMERICN using a single byte as length
descriptor (0-255). |
FIXEDLENTYPE
Fixed-length type such as
NULL, INTn, MONEY. |
LONGLENTYPE
Variable length type such as
TEXT and IMAGE using a long (4 bytes) as length
descriptor (0-2GB), -1 represents null. |
PARTLENTYPE
Partially length type such as
BIGVARCHARTYPE, UDTTYYPE, NVARCHARTYPE using a short as length
descriptor (0-8000). |
USHORTLENTYPE
Variable length type such as
VARCHAR, VARBINARY (2 bytes) as length
descriptor (0-65534), -1 represents null |
| Modifier and Type | Method and Description |
|---|---|
static LengthStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LengthStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LengthStrategy FIXEDLENTYPE
NULL, INTn, MONEY.public static final LengthStrategy BYTELENTYPE
NUMERICN using a single byte as length
descriptor (0-255).public static final LengthStrategy USHORTLENTYPE
VARCHAR, VARBINARY (2 bytes) as length
descriptor (0-65534), -1 represents nullpublic static final LengthStrategy LONGLENTYPE
TEXT and IMAGE using a long (4 bytes) as length
descriptor (0-2GB), -1 represents null.public static final LengthStrategy PARTLENTYPE
BIGVARCHARTYPE, UDTTYYPE, NVARCHARTYPE using a short as length
descriptor (0-8000).public static LengthStrategy[] values()
for (LengthStrategy c : LengthStrategy.values()) System.out.println(c);
public static LengthStrategy 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 nullCopyright © 2023. All rights reserved.