Return-Path: Delivered-To: apmail-db-ddlutils-dev-archive@www.apache.org Received: (qmail 22983 invoked from network); 18 Mar 2006 10:30:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Mar 2006 10:30:35 -0000 Received: (qmail 97633 invoked by uid 500); 18 Mar 2006 10:30:35 -0000 Delivered-To: apmail-db-ddlutils-dev-archive@db.apache.org Received: (qmail 97604 invoked by uid 500); 18 Mar 2006 10:30:34 -0000 Mailing-List: contact ddlutils-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ddlutils-dev@db.apache.org Delivered-To: mailing list ddlutils-dev@db.apache.org Received: (qmail 97593 invoked by uid 99); 18 Mar 2006 10:30:34 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Mar 2006 02:30:34 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Mar 2006 02:30:34 -0800 Received: from ajax.apache.org (localhost.localdomain [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 72CEFD49FE for ; Sat, 18 Mar 2006 10:30:13 +0000 (GMT) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Apache Wiki To: ddlutils-dev@db.apache.org Date: Sat, 18 Mar 2006 10:30:13 -0000 Message-ID: <20060318103013.21547.26576@ajax.apache.org> Subject: [Db-ddlutils Wiki] Update of "How to create other database implementations" by MartinvandenBemt X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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