apollo.Storable
Class StorableType

java.lang.Object
  |
  +--apollo.Storable.StorableType
All Implemented Interfaces:
java.io.Serializable

public class StorableType
extends java.lang.Object
implements java.io.Serializable

This class defines an abstracted SQL type field. If you use this class to define your SQL schema data type, it will automatically be ported to the syntax of the DBAdapter you choose. For your code to be truly portable to other databases, you must use datatypes created with this abstraction class.

See Also:
Serialized Form

Field Summary
static int BLOB
           
static int CHAR
           
static int DOUBLE
           
static int FLOAT
           
static int INTEGER
           
static int INTEGER_AUTOINCREMENT
           
static int VARCHAR
           
 
Constructor Summary
StorableType(int typeCode)
           
StorableType(int typeCode, int count)
          Count is only used for certain SQL types, eg.
 
Method Summary
 int getCount()
           
 int getTypeCode()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CHAR

public static final int CHAR

VARCHAR

public static final int VARCHAR

INTEGER

public static final int INTEGER

DOUBLE

public static final int DOUBLE

FLOAT

public static final int FLOAT

BLOB

public static final int BLOB

INTEGER_AUTOINCREMENT

public static final int INTEGER_AUTOINCREMENT
Constructor Detail

StorableType

public StorableType(int typeCode)

StorableType

public StorableType(int typeCode,
                    int count)
Count is only used for certain SQL types, eg. CHAR(50) or VARCHAR(25)
Method Detail

getTypeCode

public int getTypeCode()

getCount

public int getCount()