| org.axiondb.DataType
All known Subclasses: org.axiondb.types.VarBinaryType, org.axiondb.types.BaseDataType, org.axiondb.types.BigDecimalType, org.axiondb.types.CharacterType, org.axiondb.types.CharacterVaryingType,
DataType | public interface DataType extends Comparator,Serializable(Code) | | The type of a field (column) that can be stored in a
Table .
Responsible for
DataType.accepts testing that a value is assignable to fields of this
type, for
DataType.convert convertingObject Objects to this type, and for
DataType.read reading values from and
DataType.write writing values to a stream.
version: $Revision: 1.14 $ $Date: 2005/05/02 22:17:47 $ author: Rodney Waldhoff author: Rob Oxspring author: Chuck Burdick |
Inner Class :public static interface NonFixedPrecision extends DataType | |
Inner Class :public static interface ExactNumeric extends NonFixedPrecision | |
Inner Class :public interface BinaryRepresentation extends DataType | |
Method Summary | |
boolean | accepts(Object value) Return true if a field of my type can be assigned the given non-
null value , false otherwise. | Object | convert(Object value) Converts an
DataType.accepts acceptable value to one of the appropriate type. | int | getColumnDisplaySize() Value returned by
ResultSetMetaData.getColumnDisplaySize for this data
type. | int | getJdbcType() Returns the JDBC
java.sql.Types type code most closely matching this type. | String | getLiteralPrefix() | String | getLiteralSuffix() | int | getNullableCode() | int | getPrecision() Value returned by
ResultSetMetaData.getPrecision for this data type. | int | getPrecisionRadix() Indicates radix used to compute maximum number of significant digits for this
datatype, as returned by
DataType.getPrecision . | String | getPreferredValueClassName() Returns the "normal" type returned by
DataType.convert . | int | getScale() Value returned by
ResultSetMetaData.getScale for this data type. | short | getSearchableCode() Code indicating how much WHERE ... | boolean | isCaseSensitive() | boolean | isCurrency() | boolean | isUnsigned() | DataType | makeNewInstance() Creates a new instance of this DataType implementation. | Object | read(DataInput in) Instantiate an object of my type from the given
DataInput . | Object | successor(Object value) Returns the successor for the given value. | boolean | supportsSuccessor() Returns true if the
DataType.successor method is supported, false
otherwise. | BigDecimal | toBigDecimal(Object value) Convert the given non- null value to a
BigDecimal , or throw a
AxionException . | BigInteger | toBigInteger(Object value) Convert the given non- null value to a
BigInteger , or throw a
AxionException . | Blob | toBlob(Object value) Convert the given non- null value to a
Blob , or
throw a
AxionException . | boolean | toBoolean(Object value) Convert the given non- null value to a boolean ,
or throw a
SQLException . | byte | toByte(Object value) Convert the given non- null value to a byte ,
or throw a
SQLException . | byte[] | toByteArray(Object value) Convert the given non- null value to a byte[] ,
or throw a
AxionException . | Clob | toClob(Object value) Convert the given non- null value to a
Clob , or
throw a
AxionException . | Date | toDate(Object value) Convert the given non- null value to a
java.sql.Date ,
or throw a
SQLException . | double | toDouble(Object value) Convert the given non- null value to a double ,
or throw a
AxionException . | float | toFloat(Object value) Convert the given non- null value to a float ,
or throw a
AxionException . | int | toInt(Object value) Convert the given non- null value to a int ,
or throw a
AxionException . | long | toLong(Object value) Convert the given non- null value to a long ,
or throw a
AxionException . | short | toShort(Object value) Convert the given non- null value to a short ,
or throw a
AxionException . | String | toString(Object value) Convert the given non- null value to a
String , or
throw a
AxionException . | Time | toTime(Object value) Convert the given non- null value to a
Time , or
throw a
AxionException . | Timestamp | toTimestamp(Object value) Convert the given non- null value to a
Timestamp ,
or throw a
AxionException . | URL | toURL(Object value) Convert the given non- null value to a
URL , or
throw a
AxionException . | void | write(Object value, DataOutput out) Write an object of my type to the given
DataOutput . |
accepts | boolean accepts(Object value)(Code) | | Return true if a field of my type can be assigned the given non-
null value , false otherwise.
Parameters: value - non- null value |
getJdbcType | int getJdbcType()(Code) | | Returns the JDBC
java.sql.Types type code most closely matching this type.
|
getPrecisionRadix | int getPrecisionRadix()(Code) | | Indicates radix used to compute maximum number of significant digits for this
datatype, as returned by
DataType.getPrecision .
radix used to compute value of DataType.getPrecision, typically 2 or 10. |
makeNewInstance | DataType makeNewInstance()(Code) | | Creates a new instance of this DataType implementation.
new instance of this DataType implementation. |
supportsSuccessor | boolean supportsSuccessor()(Code) | | Returns true if the
DataType.successor method is supported, false
otherwise.
|
|
|