Creating a Synchronized System
Page 4 of 6

Determining the Database Type

You can determine whether an existing database is a source, target, or standard (non synchronization-enabled) database. To determine the type of database, use the COM.cloudscape.database.PropertyInfo.getDatabaseProperty method.

For example, for a target database, the following query returns true; for a non-target database, it returns false:

VALUES PropertyInfo.getDatabaseProperty('cloudscape.database.target')

For a source database, the following query returns true; for a non-source database, it returns false:

VALUES PropertyInfo.getDatabaseProperty('cloudscape.database.source')