Configuring the SDB Creator Tool
The SDB Creator tool sets a series of default values for the properties
in the sdb.properties
file with its installation. This allows the
SDB Creator tool to work as per the default settings.
You can customise the SDB Creator tool for your requirements by
configuring the sdb.properties
file available under
<SITK_installation_directory>\SDB
. You can edit the
sdb.properties
file in a plain text editor.
The sdb.properties
file contains the following set of
properties and their default values:
# Log File Settings
sdb.log.file.enabled = true
sdb.log.file.format = %-5p [%-20.20C{1}] %-8r %4L - %m%n
sdb.log.file.path = sdb-creator/logs/sdb.log
sdb.log.file.level = INFO
# Console Log Settings
sdb.log.console.format = %m%n
sdb.log.console.level = INFO
#Default Database Settings
sdb.dbname = sdb.db
#JDBC dll location
org.sqlite.lib.path = sdb-creator/lib
com.symbian.dbms.lib.path = sdb-creator/lib
sdb.ced.location = ced/win
The properties and their values in the sdb.properties
file
are set in the following format:
<property>=<value>
For example:
sdb.dbname = sdb.db
In the preceding example, sdb.dbname
is the name of the
property and sdb.db
is the value of the property.
The following table lists the various configurable properties of the SDB
Creator tool:
Property | Switch | Description
| Default Value |
---|
Log File Settings
|
sdb.log.file.enabled
|
None
|
Enables or disables the generation of log file.
File logging should only be turned on where necessary as it slows
performance.
|
true
|
sdb.log.file.format
|
None
|
Sets patterns for the log file logging.
Example:
sdb.log.file.format = %-6p [%-24.24C{1}] %-8r %4L - %m%n
For information about the various patterns, refer to
Log4J
Javadocs.
|
%-5p [%-20.20C{1}] %-8r %4L - %m%n
|
sdb.log.file.path
|
None
|
Specifies the path of the log file.
Example:
sdb.log.file.path = D:/logs/sdb.log
|
sdb-creator/logs/sdb.log
|
sdb.log.file.level
|
None
|
Controls the log level for the file.
It can be set to DEBUG, INFO, WARN, ERROR or CRITICAL.
Example:
sdb.log.file.level = DEBUG
|
INFO
|
Console Log Settings
|
sdb.log.console.format
|
None
|
Sets the patterns for the console.
For information about the various patterns, refer to
Log4J
Javadocs.
|
%m%n
|
sdb.log.console.level
|
None
|
Sets the debugging level for the console. You can modify this
property in the command prompt.
It can be set to DEBUG, INFO, WARN, ERROR or CRITICAL.
|
INFO
|
Default Database Settings
|
sdb.dbname
|
-o
|
Specifies the default name of the database for sqlite and dbms
modes. You can modify this property in the command prompt.
|
sdb.db
|