org.axiondb.types
public class CharacterType extends BaseDataType implements DataType.NonFixedPrecision
Version: $Revision: 1.14 $ $Date: 2005/12/20 18:32:42 $
Constructor Summary | |
---|---|
CharacterType() | |
CharacterType(int size) |
Method Summary | |
---|---|
boolean | accepts(Object value)
Returns true iff value is null , a
Character, or a single character String. |
int | compare(Object a, Object b) |
Object | convert(Object value)
Returns an String converted from the given value , or throws
IllegalArgumentExceptionif the given value isn't
acceptable . |
int | getColumnDisplaySize() |
protected Comparator | getComparator() |
int | getJdbcType() |
String | getLiteralPrefix() |
String | getLiteralSuffix() |
int | getPrecision() |
String | getPreferredValueClassName() |
short | getSearchableCode() |
boolean | isCaseSensitive() |
DataType | makeNewInstance() |
protected String | process(String value) |
Object | read(DataInput in) |
protected String | rightTrim(String source) |
void | setPrecision(int newSize) |
Object | successor(Object value) |
boolean | supportsSuccessor() |
byte[] | toByteArray(Object value) |
String | toString()
Returns "character"
|
protected String | truncateIfLegal(String source) |
void | write(Object value, DataOutput out)
Writes the given value to the given DataOutput. |
true
iff value is null
, a
Character, or a single character String.acceptable
.Returns: Types#CHAR
See Also: CharacterType
"character"
Returns: "character"
Null
values are written as Character.MIN_VALUE
,false
.
Character.MIN_VALUE
values are written as
Character.MIN_VALUE
,true
. All other values are
written directly.
Parameters: value the value to write, which must be acceptable