|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.prorefactor.treeparser.DataType
public class DataType
One static instance of DataType is created for each data type in the 4GL. You can access each of those through this class's public static final variables. This class was created just so that we could look up, and store, an object instead of a String or int to represent data type. For example, we'll be adding datatype support into Field and schemaLoad next.
Field Summary | |
---|---|
static DataType |
BIGINT
|
static DataType |
BLOB
|
static DataType |
BYTE
|
static DataType |
CHARACTER
|
static DataType |
CLASS
|
static DataType |
CLOB
|
static DataType |
COMHANDLE
|
static DataType |
DATE
|
static DataType |
DATETIME
|
static DataType |
DATETIMETZ
|
static DataType |
DECIMAL
|
static DataType |
DOUBLE
|
static DataType |
FIXCHAR
|
static DataType |
FLOAT
|
static DataType |
HANDLE
|
static DataType |
INT64
|
static DataType |
INTEGER
|
static DataType |
LOGICAL
|
static DataType |
LONG
|
static DataType |
LONGCHAR
|
static DataType |
MEMPTR
|
static DataType |
NUMERIC
|
static DataType |
RAW
|
static DataType |
RECID
|
static DataType |
ROWID
|
static DataType |
SHORT
|
static DataType |
TIME
|
static DataType |
TIMESTAMP
|
static DataType |
TYPE_NAME
|
static DataType |
UNSIGNEDSHORT
|
static DataType |
WIDGETHANDLE
|
Constructor Summary | |
---|---|
DataType()
Only to be used for persistence/serialization. |
Method Summary | |
---|---|
static DataType |
getDataType(int tokenType)
Get the DataType object for an integer token type. |
static DataType |
getDataType(java.lang.String progressCapsName)
Get the DataType object for a String "progress data type name", ex: "COM-HANDLE". |
java.lang.String |
getProgressName()
The progress name for the data type is all caps, ex: "COM-HANDLE" |
int |
getTokenType()
Returns the Proparse integer token type, ex: TokenTypes.COMHANDLE |
java.lang.String |
toString()
Same as getProgressName. |
void |
writeXferBytes(DataXferStream out)
Implement Xferable. |
void |
writeXferSchema(DataXferStream out)
Implement Xferable. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final DataType BIGINT
public static final DataType BLOB
public static final DataType BYTE
public static final DataType CHARACTER
public static final DataType CLASS
public static final DataType CLOB
public static final DataType COMHANDLE
public static final DataType DATE
public static final DataType DATETIME
public static final DataType DATETIMETZ
public static final DataType DECIMAL
public static final DataType DOUBLE
public static final DataType FIXCHAR
public static final DataType FLOAT
public static final DataType HANDLE
public static final DataType INTEGER
public static final DataType INT64
public static final DataType LONG
public static final DataType LONGCHAR
public static final DataType LOGICAL
public static final DataType MEMPTR
public static final DataType NUMERIC
public static final DataType RAW
public static final DataType RECID
public static final DataType ROWID
public static final DataType SHORT
public static final DataType TIME
public static final DataType TIMESTAMP
public static final DataType TYPE_NAME
public static final DataType UNSIGNEDSHORT
public static final DataType WIDGETHANDLE
Constructor Detail |
---|
public DataType()
Method Detail |
---|
public static DataType getDataType(int tokenType)
public static DataType getDataType(java.lang.String progressCapsName)
public java.lang.String getProgressName()
public int getTokenType()
public java.lang.String toString()
toString
in class java.lang.Object
getProgressName()
public void writeXferBytes(DataXferStream out) throws java.io.IOException
writeXferBytes
in interface Xferable
java.io.IOException
public void writeXferSchema(DataXferStream out) throws java.io.IOException
writeXferSchema
in interface Xferable
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |