Package org.jtester.module.database.util

Examples of org.jtester.module.database.util.ConstraintsDisabler


  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();
  }
View Full Code Here

TOP

Related Classes of org.jtester.module.database.util.ConstraintsDisabler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.