org.axiondb.types
Class CharacterVaryingType
java.lang.Object
org.axiondb.types.BaseDataType
org.axiondb.types.CharacterType
org.axiondb.types.CharacterVaryingType
- All Implemented Interfaces:
- Serializable, Comparator, DataType, DataType.NonFixedPrecision, DataTypeFactory
public class CharacterVaryingType
- extends CharacterType
- implements DataType.NonFixedPrecision
A DataType
representing a String
value with a user-specified maximum
length.
- Version:
- $Revision: 1.2 $ $Date: 2005/12/20 18:32:42 $
- See Also:
- Serialized Form
Methods inherited from class org.axiondb.types.CharacterType |
accepts, compare, convert, getColumnDisplaySize, getComparator, getLiteralPrefix, getLiteralSuffix, getPrecision, getPreferredValueClassName, getSearchableCode, isCaseSensitive, read, rightTrim, setPrecision, successor, supportsSuccessor, toByteArray, truncateIfLegal, write |
Methods inherited from class org.axiondb.types.BaseDataType |
getNullableCode, getPrecisionRadix, getScale, isCurrency, isUnsigned, toBigDecimal, toBigInteger, toBlob, toBoolean, toByte, toClob, toDate, toDouble, toFloat, toInt, toLong, toNumber, toShort, toString, toTime, toTimestamp, toURL |
Methods inherited from interface org.axiondb.DataType |
accepts, convert, getColumnDisplaySize, getLiteralPrefix, getLiteralSuffix, getNullableCode, getPrecision, getPrecisionRadix, getPreferredValueClassName, getScale, getSearchableCode, isCaseSensitive, isCurrency, isUnsigned, read, successor, supportsSuccessor, toBigDecimal, toBigInteger, toBlob, toBoolean, toByte, toByteArray, toClob, toDate, toDouble, toFloat, toInt, toLong, toShort, toString, toTime, toTimestamp, toURL, write |
CharacterVaryingType
public CharacterVaryingType()
CharacterVaryingType
public CharacterVaryingType(int maxSize)
getJdbcType
public int getJdbcType()
- Description copied from interface:
DataType
- Returns the JDBC
type code
most closely matching this type.
- Specified by:
getJdbcType
in interface DataType
- Overrides:
getJdbcType
in class CharacterType
- Returns:
Types.CHAR
toString
public String toString()
- Description copied from class:
CharacterType
- Returns
"character"
- Overrides:
toString
in class CharacterType
- Returns:
"character"
makeNewInstance
public DataType makeNewInstance()
- Description copied from interface:
DataType
- Creates a new instance of this DataType implementation.
- Specified by:
makeNewInstance
in interface DataType
- Specified by:
makeNewInstance
in interface DataTypeFactory
- Overrides:
makeNewInstance
in class CharacterType
- Returns:
- new instance of this DataType implementation.
process
protected String process(String value)
throws AxionException
- Overrides:
process
in class CharacterType
- Throws:
AxionException