public class MaxTypeINTEGER extends MaxType
| Constructor and Description |
|---|
MaxTypeINTEGER(java.util.Locale locale)
Construct null value of specified type
|
| Modifier and Type | Method and Description |
|---|---|
double |
asDouble()
Return as double.
|
float |
asFloat()
Return the value as a float
|
int |
asInt()
Return as an int.
|
java.lang.String |
asLocaleString()
Return as a locale sensitive string using the default timeZone and locale
Returns "" if value is null.
|
java.lang.String |
asLocaleString(java.util.Locale l)
Return as a locale sensitive string using the default TimeZone and the
specified Locale Returns "" if value is null.
|
java.lang.String |
asLocaleString(java.util.Locale l,
java.util.TimeZone tz)
Return as a locale sensitive string using the specified TimeZone and
Locale Returns "" if value is null.
|
long |
asLong()
Return as a long.
|
java.lang.String |
asString()
Return as a string.
|
java.lang.Object |
clone()
Clone the object.
|
boolean |
equals(java.lang.Object o)
Compares two MaxTypes.
|
int |
getMaxLength()
Return maximum length.
|
int |
getType()
Get the current type
|
void |
setAftercheckLengthAndScale(java.lang.String val)
Check length and scale agaist the current length and scale and then set the
value if it is alright.
|
void |
setMaxLength(int l)
Set what the maximum length for an ALN, UPPER, LOWER or LONGALN value.
|
void |
setScale(int s)
This method does nothing.
|
void |
setValue(double value)
Set the value to the specified value.
|
void |
setValue(float value)
Set the value to the specified value.
|
void |
setValue(int value)
Set the value to the specified value.
|
void |
setValue(long value)
Set the value to the specified value.
|
void |
setValue(MaxType value) |
void |
setValue(java.lang.String value)
Set the value to the specified value.
|
asBoolean, asBytes, asDate, createMaxType, createMaxType, getScale, isNull, overrideStringData, setValue, setValue, setValue, setValueNull, toStringpublic MaxTypeINTEGER(java.util.Locale locale)
public void setScale(int s)
throws MXException
setScale in class MaxTypeMXExceptionpublic int getMaxLength()
getMaxLength in class MaxTypepublic void setMaxLength(int l)
setMaxLength in class MaxTypepublic void setValue(java.lang.String value)
throws MXException
setValue in class MaxTypeMXExceptionpublic void setValue(double value)
throws MXException
setValue in class MaxTypeMXExceptionpublic void setValue(float value)
throws MXException
setValue in class MaxTypeMXExceptionpublic void setValue(int value)
throws MXException
setValue in class MaxTypeMXExceptionpublic void setValue(long value)
throws MXException
setValue in class MaxTypeMXExceptionpublic java.lang.String asString()
public java.lang.String asLocaleString(java.util.Locale l,
java.util.TimeZone tz)
asLocaleString in class MaxTypepublic java.lang.String asLocaleString(java.util.Locale l)
asLocaleString in class MaxTypepublic java.lang.String asLocaleString()
asLocaleString in class MaxTypepublic double asDouble()
throws MXException
asDouble in class MaxTypeMXExceptionpublic float asFloat()
throws MXException
asFloat in class MaxTypeMXExceptionpublic int asInt()
throws MXException
asInt in class MaxTypeMXExceptionpublic long asLong()
throws MXException
asLong in class MaxTypeMXExceptionpublic void setValue(MaxType value) throws MXException
setValue in class MaxTypeMXExceptionpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic void setAftercheckLengthAndScale(java.lang.String val)
throws MXException
setAftercheckLengthAndScale in class MaxTypevalue - MXException