Package org.hibernate.tool.hbm2ddl

Examples of org.hibernate.tool.hbm2ddl.SchemaExport.drop()


     */
    public void dropSchema(Properties properties) throws EvolizerException {
        try {
            Configuration configuration = configureDataBaseConnection(properties);
            SchemaExport exporter = new SchemaExport(configuration);
            exporter.drop(false, true);
        } catch (HibernateException he) {
            throw new EvolizerException(he);
        }
    }

View Full Code Here


    export.create( true, true );
  }

  protected void runSchemaDrop() {
    SchemaExport export = new SchemaExport( cfg );
    export.drop( true, true );
  }

  private void reportSkip(Skip skip) {
    reportSkip( skip.reason, skip.testDescription );
  }
View Full Code Here

    ensureIndexesAreEmpty();
  }

  protected void tearDown() throws Exception {
    SchemaExport export = new SchemaExport( cfg );
    export.drop( false, true );
  }

  @SuppressWarnings("unchecked")
  protected Directory getDirectory(Class clazz) {
    return getLuceneEventListener().getSearchFactoryImplementor().getDirectoryProviders( clazz )[0].getDirectory();
View Full Code Here

    export.create( true, true );
  }

  protected void runSchemaDrop() {
    SchemaExport export = new SchemaExport( cfg );
    export.drop( true, true );
  }

  private void reportSkip(Skip skip) {
    reportSkip( skip.reason, skip.testDescription );
  }
View Full Code Here

    StringTokenizer tokenizer = new StringTokenizer(actions, ",");
    while (tokenizer.hasMoreTokens()) {
      String action = tokenizer.nextToken();

      if ("drop".equalsIgnoreCase(action)) {
        schemaExport.drop(!quiet, !text);

      } else if ("create".equalsIgnoreCase(action)) {
        schemaExport.create(!quiet, !text);
       
      } else if ("clean".equalsIgnoreCase(action)) {
View Full Code Here

 
  protected void tearDown() throws Exception {
    StandardServiceRegistryBuilder builder = new StandardServiceRegistryBuilder();
    builder.applySettings(getCfg().getProperties());
    SchemaExport export = new SchemaExport(builder.build(), getCfg());
    export.drop( false, true );
   
    if (export.getExceptions() != null && export.getExceptions().size() > 0){
      fail("Schema export failed");
    }
   
View Full Code Here

    // if schema validator chooses the bad db schema, then the testcase will fail (exception)
    SchemaValidator sv = new SchemaValidator(getCfg());
    sv.validate();
   
    // it's time to clean our database
    se.drop(true,true);
   
    // then the schemas and false table.

    stat.execute("DROP TABLE \"SA\".\"Team\" ");
    stat.execute(" DROP SCHEMA sa ");
View Full Code Here

    // if schema validator chooses the bad db schema, then the testcase will fail (exception)
    SchemaValidator sv = new SchemaValidator(getCfg());
    sv.validate();
   
    // it's time to clean our database
    se.drop(true,true);
   
    // then the schemas and false table.

    stat.execute("DROP TABLE \"SA\".\"Team\" ");
    stat.execute(" DROP SCHEMA sa ");
View Full Code Here

    // if schema validator chooses the bad db schema, then the testcase will fail (exception)
    SchemaValidator sv = new SchemaValidator(getCfg());
    sv.validate();
   
    // it's time to clean our database
    se.drop(true,true);
   
    // then the schemas and false table.

    stat.execute("DROP TABLE \"SA\".\"Team\" ");
    stat.execute(" DROP SCHEMA sa ");
View Full Code Here

    } catch(HibernateException he) {
     
    }
   
    // it's time to clean our database
    se.drop(true,true);
   
    // then the schemas and false table.

    stat.execute("DROP TABLE \"SA\".\"Team\" ");
    stat.execute(" DROP SCHEMA sa ");
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.