net.java.ao.types
Class TypeQualifiers
java.lang.Object
net.java.ao.types.TypeQualifiers
public class TypeQualifiers
- extends java.lang.Object
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 |
UNLIMITED_LENGTH
If stringLength is set to this constant, the field is an unlimited-length string
(TEXT, CLOB, or LONG VARCHAR). |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
MAX_STRING_LENGTH
public static final int MAX_STRING_LENGTH
- Maximum string length (for strings of limited length) cannot be set to greater than this
value. This is the lowest common denominator for maximum string length in all supported
databases.
- See Also:
- Constant Field Values
UNLIMITED_LENGTH
public static final int UNLIMITED_LENGTH
- If
stringLength is set to this constant, the field is an unlimited-length string
(TEXT, CLOB, or LONG VARCHAR).
- See Also:
- Constant Field Values
qualifiers
public static TypeQualifiers qualifiers()
precision
public TypeQualifiers precision(int precision)
scale
public TypeQualifiers scale(int scale)
stringLength
public TypeQualifiers stringLength(int stringLength)
withQualifiers
public TypeQualifiers withQualifiers(TypeQualifiers overrides)
getPrecision
public java.lang.Integer getPrecision()
getScale
public java.lang.Integer getScale()
getStringLength
public java.lang.Integer getStringLength()
isDefined
public boolean isDefined()
hasPrecision
public boolean hasPrecision()
hasScale
public boolean hasScale()
hasStringLength
public boolean hasStringLength()
isUnlimitedLength
public boolean isUnlimitedLength()
isCompatibleWith
public boolean isCompatibleWith(TypeQualifiers other)
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright © 2007-2012. All Rights Reserved.