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

SQL Anywhere 12.0.1 » MobiLink - Server Administration » MobiLink server APIs » Synchronization script writing in Java » Java synchronization logic



The constructor of your class may have one of two possible signatures.

public MyScriptClass( sc)


public MyScriptClass()

The synchronization context passed to you is for the connection through which the MobiLink server is synchronizing the current user.

The DBConnectionContext.getConnection method returns the same database connection that MobiLink is using to synchronize the present user. You can execute statements on this connection, but you must not commit or roll back the transaction. The MobiLink server manages the transactions.

The MobiLink server prefers to use constructors with the first signature. It only uses the non-argument constructor if a constructor with the first signature is not present.

 See also