agave-uuids/uuids-api/src/test/java/org/iplantc/service/uuid/AbstractUuidTest.java
/**
     * Clears all systems and related entity tables from db
     * @throws Exception if something goes wrong
     */
Clears all systems and related entity tables from db
@throws Exception if something goes wrong
Clears all systems and related entity tables from db @throws Exception if something goes wrong
protected void clearSystems() throws Exception {
        Session session = null;
        try {
            HibernateUtil.beginTransaction();
            session = HibernateUtil.getSession();
            session.clear();
            HibernateUtil.disableAllFilters();
            session.createQuery("delete RemoteSystem").executeUpdate();
            session.createQuery("delete BatchQueue").executeUpdate();
            session.createQuery("delete StorageConfig").executeUpdate();
            session.createQuery("delete LoginConfig").executeUpdate();
            session.createQuery("delete AuthConfig").executeUpdate();
            session.createQuery("delete SystemRole").executeUpdate();
            session.createQuery("delete CredentialServer").executeUpdate();
            session.flush();
        } catch (Throwable t) {
            t.printStackTrace();
        } finally {
            try { HibernateUtil.commitTransaction(); } catch (Exception ignored) {}
        }
    }
protected void clearSystems ( ) throws Exception { Session session = null ; try { HibernateUtil . beginTransaction ( ) ; session = HibernateUtil . getSession ( ) ; session . clear ( ) ; HibernateUtil . disableAllFilters ( ) ; session . createQuery ( "delete RemoteSystem" ) . executeUpdate ( ) ; session . createQuery ( "delete BatchQueue" ) . executeUpdate ( ) ; session . createQuery ( "delete StorageConfig" ) . executeUpdate ( ) ; session . createQuery ( "delete LoginConfig" ) . executeUpdate ( ) ; session . createQuery ( "delete AuthConfig" ) . executeUpdate ( ) ; session . createQuery ( "delete SystemRole" ) . executeUpdate ( ) ; session . createQuery ( "delete CredentialServer" ) . executeUpdate ( ) ; session . flush ( ) ; } catch ( Throwable t ) { t . printStackTrace ( ) ; } finally { try { HibernateUtil . commitTransaction ( ) ; } catch ( Exception ignored ) { } } }
Clears all systems and related entity tables from db
 @throws Exception if something goes wrong
Clears all systems and related entity tables from db @throws Exception if something goes wrong