Examples of SqlHandler


Examples of com.volantis.synergetics.reporting.config.SqlHandler

     * Constructor
     * @param connStrategy ConnectionStrategy
     * @param report ReportElement
     */
    JDBCReportHandler(ConnectionStrategy connStrategy, ReportElement report) {
        SqlHandler handler = report.getSqlHandler();
            connectionStrategy = connStrategy;
        insertSQLStatement = prepareSQLString(handler);
        bindingPositions = prepareBindingPositions(handler);
        datasourceName = handler.getDatasourceName();
        this.bindingName = report.getBinding();
    }
View Full Code Here

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
Copyright © 2018 www.massapi.com. 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.