New Topic: Adding new datatype via the ServiceLocator

View: New views
1 Messages — Rating Filter:   Alert me  

New Topic: Adding new datatype via the ServiceLocator

by LiquiBase Community Forum :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

A new topic, 'Adding new datatype via the ServiceLocator', has been made on a board you are watching.

You can see it at
http://liquibase.org/forum/index.php?topic=164.new#new

The text of the topic is shown below:

Hi,

I wonder what the best way is to add a new data type to Liquibase. Lets say that in the changelog XML I have columns of type DECIMAL, for Oracle these must be converted to NUMBER. I created a new class extending OracleTypeConverter overriding the getDataType(String, Boolean) method. In case I need to change a datatype for one of the supported types I override the getXXXType() method.

The class is pushed into Liquibase using the ServiceLocator.addPackageToScan(String) method. When the changelog is parsed and processed Liquibase uses my class instead of the original OracleTypeConvertor.

Is this the intended approach to extend datatypes?


Chris

Unsubscribe to new topics from this board by clicking here: http://liquibase.org/forum/index.php?action=notifyboard;board=2.0

Regards,
The LiquiBase Community Forum Team.
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Liquibase-devel mailing list
Liquibase-devel@...
https://lists.sourceforge.net/lists/listinfo/liquibase-devel