|
|
@ -181,11 +181,14 @@ public class GenericApplicationDAOImpl extends AbstractDAOImpl implements Applic
|
|
|
|
applicationList.setApplications(applications);
|
|
|
|
applicationList.setApplications(applications);
|
|
|
|
applicationList.setPagination(pagination);
|
|
|
|
applicationList.setPagination(pagination);
|
|
|
|
} catch (SQLException e) {
|
|
|
|
} catch (SQLException e) {
|
|
|
|
throw new ApplicationManagementDAOException("Error occurred while getting application List", e);
|
|
|
|
throw new ApplicationManagementDAOException("Error occurred while getting application list for the tenant"
|
|
|
|
|
|
|
|
+ " " + tenantId + ". While executing " + sql, e);
|
|
|
|
} catch (JSONException e) {
|
|
|
|
} catch (JSONException e) {
|
|
|
|
throw new ApplicationManagementDAOException("Error occurred while parsing JSON", e);
|
|
|
|
throw new ApplicationManagementDAOException("Error occurred while parsing JSON, while getting application"
|
|
|
|
|
|
|
|
+ " list for the tenant " + tenantId, e);
|
|
|
|
} catch (DBConnectionException e) {
|
|
|
|
} catch (DBConnectionException e) {
|
|
|
|
throw new ApplicationManagementDAOException("Error occurred while obtaining the DB connection.", e);
|
|
|
|
throw new ApplicationManagementDAOException("Error occurred while obtaining the DB connection while "
|
|
|
|
|
|
|
|
+ "getting application list for the tenant " + tenantId, e);
|
|
|
|
} finally {
|
|
|
|
} finally {
|
|
|
|
Util.cleanupResources(stmt, rs);
|
|
|
|
Util.cleanupResources(stmt, rs);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -385,7 +388,7 @@ public class GenericApplicationDAOImpl extends AbstractDAOImpl implements Applic
|
|
|
|
statement.setInt(1, count);
|
|
|
|
statement.setInt(1, count);
|
|
|
|
statement.setString(2, applicationUUID);
|
|
|
|
statement.setString(2, applicationUUID);
|
|
|
|
statement.setInt(3, tenantId);
|
|
|
|
statement.setInt(3, tenantId);
|
|
|
|
|
|
|
|
statement.executeUpdate();
|
|
|
|
} catch (DBConnectionException e) {
|
|
|
|
} catch (DBConnectionException e) {
|
|
|
|
throw new ApplicationManagementDAOException("Database connection while trying to update the screen-shot "
|
|
|
|
throw new ApplicationManagementDAOException("Database connection while trying to update the screen-shot "
|
|
|
|
+ "count for the application with UUID " + applicationUUID + " for the tenant " + tenantId);
|
|
|
|
+ "count for the application with UUID " + applicationUUID + " for the tenant " + tenantId);
|
|
|
|