This chapter is composed of :
EclipseDatabase comes with a set of predefined known databases.
However, users should be able to:
Once you add a new Database definition, you could add templates to be used with the following wizards :
In the %ECLIPSE_HOME%/plugins/com.soyatec.database_x.y.z/data directory
you should see a file called
database.xml
Most of the time when you want to modify an existing Database definition you need to modify either its jdbcClass or its jdbcURL definition.
Other values should remain untouched, otherwise strange side effects could occur.
Edit the database.xml file and patch the needed values.
Restart your Eclipse Platform to see the updated values.
If you want to add a new Database definition, cut and paste an existing Database definition and modify the needed values.
Attribute values should be encoded with numerical entities.
Name is the internal EclipseDatabase key.
This value should be unique among Database definitions.
Label is the EclipseDatabase displayed label.
This value should be unique for a better understanding.
jdbcClass is the corresponding JDBC Java Class.
jdbcURL is the corresponding JDBC Connection URL pattern.
jdbcLevel is the corresponding JDBC Driver level.
Valid values should be :
This value is used with the OJB Code Generator.
torqueAdapter is the name used to discriminate Templates.
Below your Plugin Templates or MyTemplates you should see the following directories.
Torque/sql/id-table
Torque/sql/load
ojbPlatform is the targeted OJB Platform when you use the Object Relational Bridge Resources wizard.
The DatabaseExplorer provides a shortcut through MyEclipseDTD to access the OJB's DTD.
In the Object Relational Bridge DTD you should see the valid platform values :