The supported type in the adapter.
TYPECODE_BIGDECIMAL
public static final short TYPECODE_BIGDECIMAL
Defines the java.util.BigDecimal type.
If you modify this value, beware about the jorm type
- 22
TYPECODE_BIGINTEGER
public static final short TYPECODE_BIGINTEGER
Defines the java.util.BigInteger type.
If you modify this value, beware about the jorm type
- 21
TYPECODE_BOOLEAN
public static final short TYPECODE_BOOLEAN
Defines the boolean type.
If you modify this value, beware about the jorm type
- 0
TYPECODE_BYTE
public static final short TYPECODE_BYTE
Defines the byte type.
If you modify this value, beware about the jorm type
- 2
TYPECODE_BYTEARRAY
public static final short TYPECODE_BYTEARRAY
Defines the byte[] type.
If you modify this value, beware about the jorm type
- 19
TYPECODE_CHAR
public static final short TYPECODE_CHAR
Defines the char type.
If you modify this value, beware about the jorm type
- 1
TYPECODE_CHARARRAY
public static final short TYPECODE_CHARARRAY
Defines the char[] type.
If you modify this value, beware about the jorm type
- 18
TYPECODE_DATE
public static final short TYPECODE_DATE
Defines the java.util.Date type.
If you modify this value, beware about the jorm type
- 17
TYPECODE_DOUBLE
public static final short TYPECODE_DOUBLE
Defines the double type.
If you modify this value, beware about the jorm type
- 7
TYPECODE_FLOAT
public static final short TYPECODE_FLOAT
Defines the float type.
If you modify this value, beware about the jorm type
- 6
TYPECODE_INT
public static final short TYPECODE_INT
Defines the int type.
If you modify this value, beware about the jorm type
- 4
TYPECODE_LONG
public static final short TYPECODE_LONG
Defines the long type.
If you modify this value, beware about the jorm type
- 5
TYPECODE_OBJBOOLEAN
public static final short TYPECODE_OBJBOOLEAN
Defines the java.lang.Boolean type.
If you modify this value, beware about the jorm type
- 8
TYPECODE_OBJBYTE
public static final short TYPECODE_OBJBYTE
Defines the java.lang.Character type.
If you modify this value, beware about the jorm type
- 10
TYPECODE_OBJCHAR
public static final short TYPECODE_OBJCHAR
Defines the java.lang.Boolean type.
If you modify this value, beware about the jorm type
- 9
TYPECODE_OBJDOUBLE
public static final short TYPECODE_OBJDOUBLE
Defines the java.lang.Double type.
If you modify this value, beware about the jorm type
- 15
TYPECODE_OBJFLOAT
public static final short TYPECODE_OBJFLOAT
Defines the java.lang.Float type.
If you modify this value, beware about the jorm type
- 14
TYPECODE_OBJINT
public static final short TYPECODE_OBJINT
Defines the java.lang.Integer type.
If you modify this value, beware about the jorm type
- 12
TYPECODE_OBJLONG
public static final short TYPECODE_OBJLONG
Defines the java.lang.Long type.
If you modify this value, beware about the jorm type
- 13
TYPECODE_OBJSHORT
public static final short TYPECODE_OBJSHORT
Defines the java.lang.Short type.
If you modify this value, beware about the jorm type
- 11
TYPECODE_SERIALIZED
public static final short TYPECODE_SERIALIZED
Defines the java.io.Serializable type.
If you modify this value, beware about the jorm type
- 20
TYPECODE_SHORT
public static final short TYPECODE_SHORT
Defines the short type.
If you modify this value, beware about the jorm type
- 3
TYPECODE_STRING
public static final short TYPECODE_STRING
Defines the java.lang.String type.
If you modify this value, beware about the jorm type
- 16
TYPE_NAMES
public static final String[] TYPE_NAMES
the name of the types
TYPE_NAMES[TYPECODE_XXX]
getSqlType
public String getSqlType(int typeCode,
boolean usedInPK,
int size,
int scale)
throws RdbAdapterException
This method returns the SQL type linked to the java type
typeCode
- is the type code of the java typeusedInPK
- indicates if the type has to be used into a Primary keysize
- can indicates the expected size of the type. If it equals to
NO_SIZE that means no size is expected. This parameter can be used for
float, BigXXX numbers, String,...scale
- can indicates the expected scale of the type. If it equals to
NO_SIZE that means no scale is expected.
getSqlTypeCode
public int getSqlTypeCode(int typeCode)
throws RdbAdapterException
This method returns the SQL type code linked to the java type
specified in parameter.
- An int constant defined in the java.sql.Types class
getSqlTypeCode
public int getSqlTypeCode(int typeCode,
String sqlColumnType)
throws RdbAdapterException
This method returns the SQL type code linked to the java type
specified in parameter.
- An int constant defined in the java.sql.Types class