Package org.ow2.easybeans.tests.common.db

Examples of org.ow2.easybeans.tests.common.db.TableManager.deleteTable()


            // database.
            cTest00.insertTable("ds04");
            cTest01.insertTable("ds04");

            cTest00.deleteTable("ds04");
            cTest01.deleteTable("ds04");
        } catch (Exception e) {
            throw new IllegalStateException("Exception: " + e.getMessage());
        }
    }
View Full Code Here


        UserTransaction utx = TransactionHelper.getUserTransaction();
        utx.begin();
        try {
            if (!callOnlyTransaction) {
                TableManager tableManager = new TableManager(dbName);
                tableManager.deleteTable(TABLE);
            }
            utx.commit();
        } catch (Exception e) {
            utx.rollback();
            throw new TransactionException("Error during commit.", e);
View Full Code Here

            NamingException, SystemException, NotSupportedException, HeuristicRollbackException, RollbackException,
            HeuristicMixedException {
        UserTransaction utx = TransactionHelper.getUserTransaction();
        if (!callOnlyTransaction) {
            TableManager tableManager = new TableManager(dbName);
            tableManager.deleteTable(TABLE);
        }
        utx.commit();

    }
View Full Code Here

     * @throws SQLException if a database error occurs.
     */
    public void deleteTable(final String dbName, final String tableName) throws NamingException, SQLException {
         // deletes the table
        TableManager tableManager = new TableManager(dbName);
        tableManager.deleteTable(tableName);
    }

    /**
     * @see org.ow2.easybeans.tests.common.ejbs.stateless.containermanaged.ItfDatabaseManager#verifyTable(java.lang.String,
     *      java.lang.String)
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.