You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ddlutils-dev@db.apache.org by Apache Wiki <wi...@apache.org> on 2006/03/18 11:30:13 UTC

[Db-ddlutils Wiki] Update of "How to create other database implementations" by MartinvandenBemt

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Db-ddlutils Wiki" for change notification.

The following page has been changed by MartinvandenBemt:
http://wiki.apache.org/db-ddlutils/How_to_create_other_database_implementations

New page:
The steps that to take to implement a new platform are as follows:

* Create a package, e.g. org.apache.ddlutils.platform.informix, and
create a platform class (InformixPlatform) in it that inherits from
PlatformImplBase

* Add the jdbc driver classname and jdbc subprotocol as constants to
the platform class

* Register the platform class in PlatformFactory (including against
the driver classname and the subprotocol)

* Create in src/test a jdbc.properties.informix file with the
appropriate JDBC settings

* Get the datatype tests to run with the these tests, i.e. that they
really access the database (though they'll most likely fail)

* Add a model reader and if necessary, a sql builder implementation to
the package

* Register the native type mappings in the platform, and override
methods in the model reader/sql builder as needed so that the datatype
tests run successfully

* Override methods in the model reader and sql builder as needed so
that the constraint and alteration tests run successfully