com.xavax.xstore
Class TypeMapEntry

Object
  extended byTypeMapEntry

public class TypeMapEntry
extends Object

TypeMapEntry encapsulates a mapping from a canonical SQL type to a database specific type name.


Constructor Summary
TypeMapEntry(short type, String typename, int width)
          Construct a TypeMapEntry.
 
Method Summary
 short type()
          Returns the canonical SQL type for this type map entry.
 String typename()
          Returns the type name for this type map entry.
 int width()
          Returns the field width.
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeMapEntry

public TypeMapEntry(short type,
                    String typename,
                    int width)
Construct a TypeMapEntry.

Parameters:
type - the canonical SQL type.
typename - the database-specific type name.
width - default field width
See Also:
SQLTypes
Method Detail

type

public short type()
Returns the canonical SQL type for this type map entry.

Returns:
the canonical SQL type for this type map entry.
See Also:
SQLTypes

typename

public String typename()
Returns the type name for this type map entry.

Returns:
the type name for this type map entry.

width

public int width()
Returns the field width. This is used to map a canonical SQL type to a vendor-specific type of a specific field width. For example, SQLTypes.LONG maps to an Oracle NUMERIC column with a field width of 20.

Returns:
the field width.