org.axiondb.types
public class VarBinaryType extends BaseDataType implements Serializable, Comparator, DataType.NonFixedPrecision
Version: $Revision: 1.9 $ $Date: 2005/11/03 01:26:57 $
Constructor Summary | |
---|---|
VarBinaryType() | |
VarBinaryType(int length) Creates a new instance of VarBinaryType |
Method Summary | |
---|---|
boolean | accepts(Object value)
Return true if a field of my type can be assigned the given non-
null value , false otherwise.
|
int | compare(Object a, Object b) |
Object | convert(Object value)
Converts an acceptable value to one of the appropriate type. |
int | getColumnDisplaySize() |
Comparator | getComparator() |
int | getJdbcType()
Returns java.sql.Types#VARBINARY. |
int | getPrecision() |
DataType | makeNewInstance() |
Object | read(DataInput in)
Instantiate an object of my type from the given DataInput. |
void | setLength(int length) |
void | setPrecision(int newSize) |
Object | successor(Object value) |
boolean | supportsSuccessor() |
byte[] | toByteArray(Object value) |
String | toString(Object value) |
void | write(Object value, DataOutput out)
Write an object of my type to the given DataOutput.
|
true
if a field of my type can be assigned the given non-
null
value , false
otherwise.
Parameters: value non- null
value
acceptable
value to one of the appropriate type.DataInput
will have been
written by VarBinaryType.
Parameters: in DataInput from which to read data
Throws: IOException if error occurs during read
Parameters: value the value to write, which must be acceptable
to this
DataType
out DataOutput to receive data
Throws: IOException if error occurs while writing value, or if value
is invalid
for this type