agave-apps/apps-core/src/main/java/org/iplantc/service/apps/dao/SoftwareEventDao.java
/**
	 * Deletes all software events for the software with given id
	 * 
	 * @param softwareId
	 * @throws SoftwareEventPersistenceException
	 */
Deletes all software events for the software with given id

@param softwareId
@throws SoftwareEventPersistenceException
Deletes all software events for the software with given id @param softwareId @throws SoftwareEventPersistenceException
public void deleteBySoftwareId(String softwareUuid) throws SoftwareEventPersistenceException
	{
		if (StringUtils.isEmpty(softwareUuid)) {
			return;
		}
		try
		{
			Session session = getSession();
			String hql = "delete from softwareevents where software_uuid = :uuid";
			session.createQuery(hql)
					.setString("uuid", softwareUuid)
					.executeUpdate();
			session.flush();
		}
		catch (HibernateException ex)
		{
			try
			{
				if (HibernateUtil.getSession().isOpen()) {
					HibernateUtil.rollbackTransaction();
				}
			}
			catch (Exception e) {}
			throw new SoftwareEventPersistenceException("Failed to delete events for software " + softwareUuid, ex);
		}
		finally {
			try { HibernateUtil.commitTransaction(); } catch (Exception e) {}
		}
	}
public void deleteBySoftwareId ( String softwareUuid ) throws SoftwareEventPersistenceException { if ( StringUtils . isEmpty ( softwareUuid ) ) { return ; } try { Session session = getSession ( ) ; String hql = "delete from softwareevents where software_uuid = :uuid" ; session . createQuery ( hql ) . setString ( "uuid" , softwareUuid ) . executeUpdate ( ) ; session . flush ( ) ; } catch ( HibernateException ex ) { try { if ( HibernateUtil . getSession ( ) . isOpen ( ) ) { HibernateUtil . rollbackTransaction ( ) ; } } catch ( Exception e ) { } throw new SoftwareEventPersistenceException ( "Failed to delete events for software " + softwareUuid , ex ) ; } finally { try { HibernateUtil . commitTransaction ( ) ; } catch ( Exception e ) { } } }
Deletes all software events for the software with given id
Deletes all software events for the software with given id