Improve and format APPM DAO source

merge-requests/163/head
lasanthaDLPDS 5 years ago
parent ff2524a287
commit feff5602c3

@ -43,14 +43,6 @@ public class GenericApplicationReleaseDAOImpl extends AbstractDAOImpl implements
private static final Log log = LogFactory.getLog(GenericApplicationReleaseDAOImpl.class); private static final Log log = LogFactory.getLog(GenericApplicationReleaseDAOImpl.class);
/**
* To insert the ApplicationDTO Release Details.
*
* @param appId Id of the application
* @param applicationReleaseDTO ApplicationDTO Release the properties of which that need to be inserted.
* @param tenantId Tenant Id
* @throws ApplicationManagementDAOException ApplicationDTO Management DAO Exception.
*/
@Override public ApplicationReleaseDTO createRelease(ApplicationReleaseDTO applicationReleaseDTO, int appId, int tenantId) @Override public ApplicationReleaseDTO createRelease(ApplicationReleaseDTO applicationReleaseDTO, int appId, int tenantId)
throws ApplicationManagementDAOException { throws ApplicationManagementDAOException {
Connection connection; Connection connection;
@ -109,12 +101,13 @@ public class GenericApplicationReleaseDAOImpl extends AbstractDAOImpl implements
} }
return applicationReleaseDTO; return applicationReleaseDTO;
} catch (SQLException e) { } catch (SQLException e) {
log.error("SQL Exception while trying to release an application by executing the query " + sql, e); String msg = "SQL Exception while trying to release an application by executing the query " + sql;
throw new ApplicationManagementDAOException( log.error(msg);
"SQL Exception while trying to release an application by executing the query " + sql, e); throw new ApplicationManagementDAOException(msg, e);
} catch (DBConnectionException e) { } catch (DBConnectionException e) {
throw new ApplicationManagementDAOException( String msg = "Database Connection Exception while trying to release a new version";
"Database Connection Exception while trying to release a new version", e); log.error(msg);
throw new ApplicationManagementDAOException(msg, e);
} finally { } finally {
DAOUtil.cleanupResources(statement, resultSet); DAOUtil.cleanupResources(statement, resultSet);
} }

Loading…
Cancel
Save