Maintains the parameters used during the database synchronization process.
public class SyncParms
All members of SyncParms class, including all inherited members.
Name | Description |
---|---|
To create a SyncParms object, use Connection.createSyncParms. | |
Determines if the remote sends download acknowledgements. | |
Returns parameters provided to a custom user authentication script. | |
Returns the liveness timeout length, in seconds. | |
Returns the new MobiLink password for the user specified with setUserName. | |
Returns the MobiLink password for the user specified with setUserName. | |
Returns the publications to be synchronized. | |
Returns true if column names are sent to the MobiLink server. | |
Returns the parameters used to configure the synchronization stream. | |
Returns the current SyncObserver. | |
Returns the SyncResult object that contains the status of the synchronization. | |
Returns the order in which tables should be uploaded to the consolidated database. | |
Returns the MobiLink user name that uniquely identifies the client to the MobiLink server. | |
Returns the synchronization script to use. | |
Determines if the synchronization is download-only. | |
Determines if the synchronization pings the MobiLink server instead of performing a synchronization. | |
Determines if the synchronization is upload-only. | |
Indicates if the remote should send a download acknowledgement. | |
Specifies parameters for a custom user authentication script (MobiLink authenticate_parameters connection event). | |
Sets the synchronization as download-only. | |
Sets the liveness timeout length, in seconds. | |
Sets a new MobiLink password for the user specified with setUserName. | |
Sets the MobiLink password for the user specified with setUserName. | |
Sets the synchronization to ping the MobiLink server instead of performing a synchronization. | |
Sets the publications to be synchronized. | |
Sets whether column names are sent to the MobiLink server during a sync. | |
Sets a SyncObserver object to monitor the progress of the synchronization. | |
Sets the order in which tables should be uploaded to the consolidated database. | |
Sets the synchronization as upload-only. | |
Sets the MobiLink user name that uniquely identifies the client to the MobiLink server. | |
Sets the synchronization script to use. | |
Creates a SyncParms object for HTTP synchronizations. | |
Creates a SyncParms object for secure HTTPS synchronizations. |
This interface is invoked using the createSyncParms method of a Connection object.
You can only set one synchronization command at a time. These commands are specified using the setDownloadOnly, setPingOnly, and setUploadOnly methods. By setting one of these methods to true, you set the other methods to false.
The UserName and Version parameters must be set. The UserName must be unique for each client database.
The communication stream is configured using the getStreamParms method based on the type of SyncParms object. For example, the following code prepares and performs an HTTP synchronization:
SyncParms syncParms = myConnection.createSyncParms( SyncParms.HTTP_STREAM, "MyUniqueMLUserID", "MyMLScriptVersion" ); syncParms.setPassword("ThePWDforMyUniqueMLUserID"); syncParms.getStreamParms().setHost("MyMLHost"); myConnection.synchronize(syncParms); |
Comma Separated ListsAuthenticationParms, Publications, and TableOrder parameters are all specified using a string value that contains a comma separated list of values. Values within the list may be quoted using either single quotes or double quotes, but there are no escape characters. Leading and trailling spaces in values are ignored unless quoted. For example:
syncParms.setTableOrder("'Table A',\"Table B,D\",Table C" ); specifies "Table A" then "Table B,D" and then "Table C". |
SyncParms constructor
getAcknowledgeDownload method
getAuthenticationParms method
getLivenessTimeout method
getNewPassword method
getPassword method
getPublications method
getSendColumnNames method
getStreamParms method
getSyncObserver method
getSyncResult method
getTableOrder method
getUserName method
getVersion method
isDownloadOnly method
isPingOnly method
isUploadOnly method
setAcknowledgeDownload method
setAuthenticationParms method
setDownloadOnly method
setLivenessTimeout method
setNewPassword method
setPassword method
setPingOnly method
setPublications method
setSendColumnNames method
setSyncObserver method
setTableOrder method
setUploadOnly method
setUserName method
setVersion method
HTTP_STREAM variable
HTTPS_STREAM variable
Discuss this page in DocCommentXchange.
|
Copyright © 2010, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.0 |