org.jSyncManager.Conduit
Class DefaultConduit
- Serializable
public class DefaultConduit
The default jConduit. This jConduit is always used during synchronization.
It provides backup and restore capabilities for database flagged as
requiring backup.
static int | CANCEL_OPTION- A value to represent the selection of the 'Cancel' option.
|
static int | NO_OPTION- A value to represent the selection of the 'No' option.
|
static int | NO_TO_ALL_OPTION- A value to represent the 'No to All' option.
|
static int | YES_OPTION- A value to represent the selection of the 'Yes' option.
|
static int | YES_TO_ALL_OPTION- A value to represent the selection of the 'Yes to All' option.
|
constructConfigPanel, doInitialization, getConduitDescription, getConduitName, getConduitResourceBundle, getConfigurationPanel, getPriority, getResourceBundleName, initialize, jConduitDialogActionPerformed, startSync, toString |
CANCEL_OPTION
public static final int CANCEL_OPTION
A value to represent the selection of the 'Cancel' option.
NO_OPTION
public static final int NO_OPTION
A value to represent the selection of the 'No' option.
NO_TO_ALL_OPTION
public static final int NO_TO_ALL_OPTION
A value to represent the 'No to All' option.
YES_OPTION
public static final int YES_OPTION
A value to represent the selection of the 'Yes' option.
YES_TO_ALL_OPTION
public static final int YES_TO_ALL_OPTION
A value to represent the selection of the 'Yes to All' option.
DefaultConduit
public DefaultConduit()
Constructs a new Default jConduit instance.
constructConfigPanel
protected JPanel constructConfigPanel()
Constructs a configuration panel for this jConduit.
This jConduit doesn't require a configuration panel.
- constructConfigPanel in interface AbstractConduit
getResourceBundleName
protected String getResourceBundleName()
Retrieves the name of the class to use as the Conduits Resource Bundle.
This method should return a String containing the fully-qualified classname
of the class to use for this jConduits textual resources.
You may return null from this method, however if you do so you're expected to
override the getConduitName and getConduitDescription methods to return suitable data.
We suggest using Resource Bundles to ensure that your jConduits can be translated to other
languages.
- getResourceBundleName in interface AbstractConduit
- the fully-qualified classname of the class to use as this jConduits resource bundle.
showRestoreVerifyDialog
protected int showRestoreVerifyDialog(String dbName)
Displays the database restore dialog.
This method displays a dialog to the user to allow them to selectively restore missing databases.
This method supports the property jsyncman.defaultconduit.restoreall. When set to "true",
this method will automatically return YES_TO_ALL_OPTION. If set to any other value, it will return
NO_TO_ALL_OPTION. If not set, it will display the dialog to the user as expected.
dbName - the name of the database to be restored.
- an integer representing the return code.