|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgistoolkit.features.AttributeType
This class keeps a record of the type of object that the column represents. There are a set of types that are known to the toolkit, these have names like STRING, INTEGER, FLOAT, TIMESTAMP, and BOOLEAN. Additional types can be added by giving them a new type name. An editor should be provided for these types as well.
Field Summary | |
static java.lang.String |
BOOLEAN
The type used for boolean, or true/false data. |
static java.lang.String |
FLOAT
The type used for floating point data. |
static java.lang.String |
INTEGER
The type used for integer data, or number data not including a decimal point. |
static java.lang.String |
STRING
The type used for string data, or character data, mapps to Char, Varchar, etc. |
static java.lang.String |
TIMESTAMP
The type used for date and time information. |
static java.lang.String |
UNKNOWN
The type used for Types that are unknown to this toolkit |
Constructor Summary | |
AttributeType(java.lang.String inName)
Creates new AttributeType with the given name and no lengths. |
|
AttributeType(java.lang.String inName,
int inLength)
Creates new AttributeType with the given name and length. |
|
AttributeType(java.lang.String inName,
int inLength,
int inAuxLength)
Creates new AttributeType with the given name and lengths. |
Method Summary | |
int |
getAuxLength()
This is an additional nength. |
int |
getLength()
This is the maximum length of the attribute. |
java.lang.String |
getType()
Return the type of this attribute. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String STRING
public static final java.lang.String INTEGER
public static final java.lang.String FLOAT
public static final java.lang.String TIMESTAMP
public static final java.lang.String BOOLEAN
public static final java.lang.String UNKNOWN
Constructor Detail |
public AttributeType(java.lang.String inName)
public AttributeType(java.lang.String inName, int inLength)
public AttributeType(java.lang.String inName, int inLength, int inAuxLength)
Method Detail |
public java.lang.String getType()
public int getLength()
public int getAuxLength()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |