Package org.dbunit.database

Examples of org.dbunit.database.DatabaseDataSet


    }

    private void clearDataBase() throws Exception {
        LOGGER.info("Clean Database except SEQUENCE table");
        IDataSet dataset = new DatabaseDataSet(connection, false, new ExcludeTableFilter(new String[]{"SEQUENCE"}));
        disableReferentialIntegrity(connection);
        DatabaseOperation.DELETE_ALL.execute(connection, dataset);
        enableReferentialIntegrity(connection);
        connection.getConnection().commit();
    }
View Full Code Here


    private void clearDataBase() throws Exception {
        LOGGER.info("Clean Database except SEQUENCE table");
        userTransaction.begin();
        try {
            IDataSet dataset = new DatabaseDataSet(connection, false, new ExcludeTableFilter(new String[]{"SEQUENCE"}));
            disableReferentialIntegrity(connection);
            DatabaseOperation.DELETE_ALL.execute(connection, dataset);
            enableReferentialIntegrity(connection);
            em.flush();
            em.clear();
View Full Code Here

    }

    private void clearDataBase() throws Exception {
        LOGGER.info("Clean Database except SEQUENCE table");
        IDataSet dataset = new DatabaseDataSet(connection, false, new ExcludeTableFilter(new String[]{"SEQUENCE"}));
        disableReferentialIntegrity(connection);
        DatabaseOperation.DELETE_ALL.execute(connection, dataset);
        enableReferentialIntegrity(connection);
        connection.getConnection().commit();
    }
View Full Code Here

TOP

Related Classes of org.dbunit.database.DatabaseDataSet

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.