| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_STRING_LENGTH
Maximum string length (for strings of limited length) cannot be set to greater than this
value.
|
static int |
OLD_MAX_STRING_LENGTH
String sizes were tuned down due to a SQL server limitation, this has the undesired side effect that
existing tables read with lengths between 450 and 767 are incorrectly seen as clobs
|
static int |
UNLIMITED_LENGTH
If
stringLength is set to this constant, the field is an unlimited-length string
(TEXT, CLOB, or LONG VARCHAR). |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
areCompatible(TypeQualifiers derivedFromEntityAnnotations,
TypeQualifiers derivedFromTableMetadata) |
boolean |
areLengthsCorrect()
If there is a disparity between reportedLength and the stringLength then the field is incompatible
|
boolean |
equals(Object other) |
Integer |
getPrecision() |
Integer |
getScale() |
Integer |
getStringLength() |
int |
hashCode() |
boolean |
hasPrecision() |
boolean |
hasScale() |
boolean |
hasStringLength() |
boolean |
isDefined() |
boolean |
isUnlimitedLength() |
boolean |
isUnlimitedStringLengthSupportCompatible(TypeQualifiers other) |
TypeQualifiers |
precision(int precision) |
static TypeQualifiers |
qualifiers() |
TypeQualifiers |
scale(int scale) |
TypeQualifiers |
stringLength(int stringLength) |
String |
toString() |
TypeQualifiers |
withQualifiers(TypeQualifiers overrides) |
public static final int MAX_STRING_LENGTH
public static final int OLD_MAX_STRING_LENGTH
public static final int UNLIMITED_LENGTH
stringLength is set to this constant, the field is an unlimited-length string
(TEXT, CLOB, or LONG VARCHAR).public static TypeQualifiers qualifiers()
public TypeQualifiers precision(int precision)
public TypeQualifiers scale(int scale)
public TypeQualifiers stringLength(int stringLength)
public TypeQualifiers withQualifiers(TypeQualifiers overrides)
public Integer getPrecision()
public Integer getScale()
public Integer getStringLength()
public boolean isDefined()
public boolean hasPrecision()
public boolean hasScale()
public boolean hasStringLength()
public boolean isUnlimitedLength()
public boolean areLengthsCorrect()
public boolean isUnlimitedStringLengthSupportCompatible(TypeQualifiers other)
public static boolean areCompatible(TypeQualifiers derivedFromEntityAnnotations, TypeQualifiers derivedFromTableMetadata)
Copyright © 2007–2018. All rights reserved.