Contents Index Transactions Constructors

MobiLink Synchronization User's Guide
  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 synchronization server automatically adds this package to your classpath if it is not already present.

However, when you compile your class you need to add the path of java\mlscript.jar, from your SQL Anywhere Studio installation directory.


Contents Index Transactions Constructors