Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (Français) » MobiLink - Server Administration » MobiLink Server APIs » Writing synchronization scripts in Java » Writing Java synchronization logic

 

SQL-Java data types

The following table shows SQL data types and the corresponding Java data types.

SQL data type

Corresponding Java data type

VARCHAR

java.lang.String

CHAR

java.lang.String

INTEGER

int or Integer

BINARY

byte[ ]

TIMESTAMP

java.sql.Timestamp

INOUT INTEGER

ianywhere.ml.script.InOutInteger

INOUT VARCHAR

ianywhere.ml.script.InOutString

INOUT CHAR

ianywhere.ml.script.InOutString

INOUT BYTEARRAY

ianywhere.ml.script.InOutByteArray

The MobiLink server automatically adds the ianywhere.ml.script package to your classpath if it is not already present. However, when you compile your class you need to add the path of install-dir\java\mlscript.jar.