org.axiondb.types
Class CharacterVaryingType

java.lang.Object
  extended by org.axiondb.types.BaseDataType
      extended by org.axiondb.types.CharacterType
          extended by org.axiondb.types.CharacterVaryingType
All Implemented Interfaces:
Serializable, Comparator, DataType, DataType.NonFixedPrecision, DataTypeFactory

public class CharacterVaryingType
extends CharacterType
implements DataType.NonFixedPrecision

A DataTyperepresenting a Stringvalue with a user-specified maximum length.

Version:
$Revision: 1.2 $ $Date: 2005/12/20 18:32:42 $
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.axiondb.DataType
DataType.BinaryRepresentation, DataType.ExactNumeric, DataType.NonFixedPrecision
 
Constructor Summary
CharacterVaryingType()
           
CharacterVaryingType(int maxSize)
           
 
Method Summary
 int getJdbcType()
          Returns the JDBC type codemost closely matching this type.
 DataType makeNewInstance()
          Creates a new instance of this DataType implementation.
protected  String process(String value)
           
 String toString()
          Returns "character"
 
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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.axiondb.DataType.NonFixedPrecision
setPrecision
 
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
 
Methods inherited from interface java.util.Comparator
compare, equals
 

Constructor Detail

CharacterVaryingType

public CharacterVaryingType()

CharacterVaryingType

public CharacterVaryingType(int maxSize)
Method Detail

getJdbcType

public int getJdbcType()
Description copied from interface: DataType
Returns the JDBC type codemost 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