public class MaxTypeAMOUNT extends MaxTypeDECIMAL
| Constructor and Description |
|---|
MaxTypeAMOUNT(java.util.Locale locale,
int scale)
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.Object |
clone()
Clone the object.
|
boolean |
equals(java.lang.Object o)
Compares two MaxTypes.
|
int |
getType()
Get the current type
|
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)
Clone the object.
|
void |
setValue(java.lang.String value)
Set the value to the specified value.
|
asString, getScale, setScalegetMaxLength, setAftercheckLengthAndScale, setMaxLengthasBoolean, asBytes, asDate, createMaxType, createMaxType, getAttributeName, getObjectName, isNull, overrideStringData, setAttributeName, setObjectName, setValue, setValue, setValue, setValueNull, toStringpublic MaxTypeAMOUNT(java.util.Locale locale,
int scale)
public int getType()
getType in class MaxTypeDECIMALpublic void setValue(java.lang.String value)
throws MXException
setValue in class MaxTypeDECIMALMXExceptionpublic void setValue(double value)
throws MXException
setValue in class MaxTypeDECIMALMXExceptionpublic void setValue(float value)
throws MXException
setValue in class MaxTypeFLOATMXExceptionpublic void setValue(int value)
throws MXException
setValue in class MaxTypeFLOATMXExceptionpublic void setValue(long value)
throws MXException
setValue in class MaxTypeDECIMALMXExceptionpublic java.lang.String asLocaleString(java.util.Locale l)
asLocaleString in class MaxTypeDECIMALpublic java.lang.String asLocaleString(java.util.Locale l,
java.util.TimeZone tz)
asLocaleString in class MaxTypeDECIMALpublic java.lang.String asLocaleString()
asLocaleString in class MaxTypeDECIMALpublic double asDouble()
throws MXException
asDouble in class MaxTypeDECIMALMXExceptionpublic float asFloat()
throws MXException
asFloat in class MaxTypeDECIMALMXExceptionpublic int asInt()
throws MXException
asInt in class MaxTypeDECIMALMXExceptionpublic long asLong()
throws MXException
asLong in class MaxTypeDECIMALMXExceptionpublic void setValue(MaxType value) throws MXException
setValue in class MaxTypeDECIMALMXExceptionpublic boolean equals(java.lang.Object o)
equals in class MaxTypeDECIMALpublic java.lang.Object clone()
clone in class MaxTypeDECIMAL