DataTypeFactory

You can replace the default DbUnit DataTypeFactory to get custom data types support. DbUnit provides factories, located in ''org.dbunit.ext'' subpackages, for some RDBMS.

OracleDataTypeFactory | MySqlDataTypeFactory | Db2DataTypeFactory | MsSqlDataTypeFactory | H2DataTypeFactory

Don't hesitate to contribute if you encounter types not currently supported by DbUnit.


This sample demonstrate how to setup the OracleDatabase factory:

IDatabaseConnection connection = new DatabaseConnection(jdbcConnection, schema);
DatabaseConfig config = connection.getConfig();
config.setProperty(DatabaseConfig.PROPERTY_DATATYPE_FACTORY,
            new OracleDataTypeFactory());
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License