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
Constructor Summary |
StorableType(int typeCode)
|
StorableType(int typeCode,
int count)
Count is only used for certain SQL types, eg. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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)
getTypeCode
public int getTypeCode()
getCount
public int getCount()