Identifying Genero data types in Java code

Java data types and Genero data types are different. To identify Genero types in Java code, you can use the com.fourjs.fgl.lang.FglTypes class implemented in $FGLDIR/lib/fgl.jar.

You can, for example, identify the data type of a member of an FglRecord object.

You must add $FGLDIR/lib/fgl.jar to the class path in order to compile Java code with com.fourjs.fgl.lang.FglType class.

The com.fourjs.fgl.lang.FglTypes class implements the following:

Table 1. Fields of the com.fourjs.fgl.lang.FglTypes class
Field Corresponding data type
final static int ARRAY
ARRAY object
final static int BIGINT
BIGINT
final static int BOOLEAN
BOLEAN
final static int BYTE
BYTE
final static int CHAR
CHAR
final static int DATE
DATE
final static int DATETIME
DATETIME
final static int DECIMAL
DECIMAL
final static int FGL_OBJECT
An FGL object like base.Channel.
final static int FLOAT
FLOAT
final static int INT
INTEGER
final static int INTERVAL
INTERVAL
final static int JAVA_OBJECT
A Java object like java.lang.String.
final static int MONEY
MONEY
final static int RECORD
RECORD structure
final static int SMALLFLOAT
SMALLFLOAT
final static int SMALLINT
SMALLINT
final static int STRING
STRING
final static int TEXT
TEXT
final static int TINYINT
TINYINT
final static int VARCHAR
VARCHAR