Package org.jtester.module.database.support

Examples of org.jtester.module.database.support.SQLHandler


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

TOP

Related Classes of org.jtester.module.database.support.SQLHandler

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.