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 following:

Table 1. Fields of the com.fourjs.fgl.lang.FglTypes class
Field Corresponding data type
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 FLOAT
FLOAT
final static int INT
INTEGER
final static int SMALLFLOAT
SMALLFLOAT
final static int SMALLINT
SMALLINT
final static int VARCHAR
VARCHAR
final static int STRING
STRING
final static int RECORD
RECORD structure
final static int ARRAY
ARRAY object