|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.axiondb.types.BaseDataType
org.axiondb.types.BaseNumberDataType
public abstract class BaseNumberDataType
An abstract base DataTypefor Numbertypes.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.axiondb.DataType |
|---|
DataType.BinaryRepresentation, DataType.ExactNumeric, DataType.NonFixedPrecision |
| Constructor Summary | |
|---|---|
BaseNumberDataType()
|
|
| Method Summary | |
|---|---|
boolean |
accepts(java.lang.Object value)
Returns true iff value is String that can be
convertedwithout exception, null, or a
Number. |
java.lang.Object |
convert(java.lang.Object value)
Returns value if value is null and throws
IllegalArgumentExceptionotherwise. |
boolean |
supportsSuccessor()
This base implementation returns true. |
protected java.lang.Number |
toNumber(java.lang.Object value)
|
| Methods inherited from class org.axiondb.types.BaseDataType |
|---|
compare, getColumnDisplaySize, getComparator, getJdbcType, getLiteralPrefix, getLiteralSuffix, getNullableCode, getPrecision, getPrecisionRadix, getPreferredValueClassName, getScale, getSearchableCode, isCaseSensitive, isCurrency, isUnsigned, makeNewInstance, read, successor, toBigDecimal, toBigInteger, toBlob, toBoolean, toByte, toByteArray, toClob, toDate, toDouble, toFloat, toInt, toLong, toShort, toString, toTime, toTimestamp, toURL, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
|---|
equals |
| Constructor Detail |
|---|
public BaseNumberDataType()
| Method Detail |
|---|
public boolean accepts(java.lang.Object value)
true iff value is String that can be
convertedwithout exception, null, or a
Number.
accepts in interface DataTypeaccepts in class BaseDataTypevalue - non- null value
public java.lang.Object convert(java.lang.Object value)
throws AxionException
null and throws
IllegalArgumentExceptionotherwise. Subclasses should override this method
and call super.convert(value) as their last case.
convert in interface DataTypeconvert in class BaseDataTypeAxionExceptionpublic boolean supportsSuccessor()
true.
supportsSuccessor in interface DataTypesupportsSuccessor in class BaseDataType
protected java.lang.Number toNumber(java.lang.Object value)
throws AxionException
toNumber in class BaseDataTypeAxionException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||