Javatator - Documentation
[ http://www.javaphilia.com/ ]
Configuration
All configurable options are placed in the database.properties file. Here is a list of possible options:
db.mysql.name=MySQL
This simply creates an option to connect to a new database product. Replace the mysql with whatever you want.
e.g. db.psql.name=PostgreSQL
That would create an option to connect to a database product called "PostgreSQL". The other values such as the driver to be used can be specified using "psql" as part of the "db." identifier - see the other options below, and replace "mysql" with the identifier, e.g. "psql".
db.mysql.connector=com.netspade.javatator.MySQLConnector
This specifies the custom Connector for Javatator to use when interacting with the database. The default is the com.netspade.javatator.JDBCConnector, which uses all the standard methods in the driver. However, many drivers are not fully implemented so these "connector" classes must be used.
db.mysql.driver=org.gjt.mm.mysql.Driver
This specifies the driver to use when accessing the database.
db.mysql.url=jdbc:mysql://%h:%p/%d
This specifies how the URL to access the database is created. %h is the hostname, %p is the port and %d is the name of the database you want to access.
db.mysql.host.deny=
Use this if you want to deny access to certain hosts.
db.mysql.defaultport=3306
This specifies the default port to be used.
db.mysql.port=
This restricts access to this port only.
db.*.connections=32
This a global config option. The connections are on a per product+hostname+port+username+password+database basis. These are maximum number of connections only, unused ones are cleaned up.
db.*.hostname=
If provided, limits access to this host.
db.*.username=
If provided, limits access to this account.
db.*.password=
If provided, the password will not be prompted for.
db.*.database=
If provided, limits access to this database.
db.*.dbproduct=
If provided, limits access to this product.