* Disables all foreigh key and not-null constraints on the configured
* schema's.
*/
public void disableConstraints() {
DataSource dataSource = DBEnvironmentFactory.getDBEnvironment().getDataSource(false);
SQLHandler sqlHandler = new DefaultSQLHandler(dataSource);
String databaseDialect = ConfigurationHelper.getString(ConfigurationHelper.PROPKEY_DATABASE_DIALECT);
ConstraintsDisabler disabler = ConfigurationHelper.getInstanceOf(ConstraintsDisabler.class, databaseDialect);
disabler.init(sqlHandler);
disabler.disableConstraints();