设置核心回调工具实现类
#
# the jdbc driver to use, and database url.
databasemanager.db.sharkdb.jdbcdriver=”org.hsqldb.jdbcdriver”
databasemanager.db.sharkdb.connection.url=”jdbc:hsqldb:c:/users/sasaboy/sdb/shark/output/shark/db/hsql/hsql”
# db2
#databasemanager.db.sharkdb.jdbcdriver=”com.ibm.db2.jdbc.app.db2driver”
#databasemanager.db.sharkdb.connection.url=”jdbc:db2:shark”
# hypersonicsql
#databasemanager.db.sharkdb.jdbcdriver=”org.hsqldb.jdbcdriver”
#databasemanager.db.sharkdb.connection.url=”jdbc:hsqldb:c:/users/sasaboy/shark/output/shark/db/hsql/hsql”
# informix
#databasemanager.db.sharkdb.jdbcdriver=”com.informix.jdbc.ifxdriver”
#databasemanager.db.sharkdb.connection.url=”jdbc:informix-sqli://localhost/shark”
# msql
#databasemanager.db.sharkdb.jdbcdriver=”com.microsoft.jdbc.sqlserver.sqlserverdriver”
#databasemanager.db.sharkdb.connection.url=”jdbc:microsoft:sqlserver://localhost:1433;databasename=shark;selectmethod=cursor”
# mysql
#databasemanager.db.sharkdb.jdbcdriver=”org.gjt.mm.mysql.driver”
#databasemanager.db.sharkdb.connection.url=”jdbc:mysql://localhost/shark”
# oracle
#databasemanager.db.sharkdb.jdbcdriver=”oracle.jdbc.driver.oracledriver”
#databasemanager.db.sharkdb.connection.url=”jdbc:oracle:thin:@localhost:1521:shark”
# postgresql
#databasemanager.db.sharkdb.jdbcdriver=”org.postgresql.driver”
#databasemanager.db.sharkdb.connection.url=”jdbc:postgresql://localhost/shark”
#databasemanager.objectidcolumnname=objectid
#databasemanager.versioncolumnname=objectversion
# sybase
#databasemanager.db.sharkdb.jdbcdriver=”com.ddtek.jdbc.sybase.sybasedriver”
#databasemanager.db.sharkdb.connection.url=”jdbc:sybase://localhost/shark”
选择完合适的数据库以后,你还需要设置用户名和密码,我们可以通过下列代码设置。
#
# database user name. all connection are allocated by this user.
#
databasemanager.db.sharkdb.connection.user=”sa”
# database user password.
#
databasemanager.db.sharkdb.connection.password=””
#
# default cache configuration
#
databasemanager.defaults.cache.maxcachesize=100
databasemanager.defaults.cache.maxsimplecachesize=50
databasemanager.defaults.cache.maxcomplexcachesize=25