|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.ao.types.TypeQualifiers
public class TypeQualifiers
Describes optional modifiers to a type: string length for string types, precision and scale
for numeric types. Each TypeInfo may have default qualifiers set by the database
provider; qualifiers may also be modified by annotations.
| Field Summary | |
|---|---|
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). |
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
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).
| Method Detail |
|---|
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)
public boolean equals(Object other)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||