Package systole.exceptions

Examples of systole.exceptions.ExceptionDAO


            List<Analysis> list = query.list();
            this.logger.logDebug("get successfully");
            return list;
        } catch (HibernateException e) {
            this.logger.logError("error on get analysis to upload, msg: " + e.getMessage());
            throw new ExceptionDAO("No se pudieron obtener los análisis", e.fillInStackTrace());
        }
    }
View Full Code Here


            AnalysisRemote analysisRemote = (AnalysisRemote) criteria.uniqueResult();
            this.logger.logDebug("get successfully");
            return (analysisRemote != null ? analysisRemote.getAnalysis() : null);
        } catch (HibernateException e) {
            this.logger.logError("error on get analysis by remote id, msg: " + e.getMessage());
            throw new ExceptionDAO("No se pudieron obtener los análisis", e.fillInStackTrace());
        }
    }
View Full Code Here

            AnalysisRemote sportRemote = (AnalysisRemote) criteria.uniqueResult();
            this.logger.logDebug("get successfully");
            return sportRemote;
        } catch (HibernateException e) {
            this.logger.logError("error on get remote analysis by analysis, msg: " + e.getMessage());
            throw new ExceptionDAO("No se pudieron obtener los análisis", e.fillInStackTrace());
        }
    }
View Full Code Here

            AnalysisRemote analysisRemote = (AnalysisRemote) criteria.uniqueResult();
            this.logger.logDebug("get successfully");
            return (analysisRemote != null ? analysisRemote.getRemoteId() : -1);
        } catch (HibernateException e) {
            this.logger.logError("error on get last remote analysis synchronized, msg: " + e.getMessage());
            throw new ExceptionDAO("No se pudieron obtener los análisis", e.fillInStackTrace());
        }
    }
View Full Code Here

            this.logger.logDebug("get averages successfully");
            Averages averages = new Averages(listFemale, listMale);
            return averages;
        } catch (HibernateException e) {
            this.logger.logError("error on get averages, msg: " + e.getMessage());
            throw new ExceptionDAO("No se pudieron obtener los promedios", e.fillInStackTrace());
        }
    }
View Full Code Here

            List<AverageByDecade> list = currentSession.createCriteria(AverageByDecade.class).addOrder(Order.asc("decade")).list();
            this.logger.logDebug("get averages successfully");
            return list;
        } catch (HibernateException e) {
            this.logger.logError("error on get averages, msg: " + e.getMessage());
            throw new ExceptionDAO("No se pudieron obtener los promedios", e.fillInStackTrace());
        }
    }
View Full Code Here

            List<AverageByDecadeFemale> listFemale = currentSession.createCriteria(AverageByDecadeFemale.class).addOrder(Order.asc("decade")).list();
            this.logger.logDebug("get female averages successfully");
            return listFemale;
        } catch (HibernateException e) {
            this.logger.logError("error on get female averages, msg: " + e.getMessage());
            throw new ExceptionDAO("No se pudieron obtener los promedios", e.fillInStackTrace());
        }
    }
View Full Code Here

            List<AverageByDecadeMale> listMale = currentSession.createCriteria(AverageByDecadeMale.class).addOrder(Order.asc("decade")).list();
            this.logger.logDebug("get male averages successfully");
            return listMale;
        } catch (HibernateException e) {
            this.logger.logError("error on get male averages, msg: " + e.getMessage());
            throw new ExceptionDAO("No se pudieron obtener los promedios", e.fillInStackTrace());
        }
    }
View Full Code Here

            List<AverageByDecade> list = currentSession.createCriteria(AverageByDecade.class).add(Restrictions.eq("decade", decade)).list();
            this.logger.logDebug("get male averages successfully");
            return list;
        } catch (HibernateException e) {
            this.logger.logError("error on get male averages, msg: " + e.getMessage());
            throw new ExceptionDAO("No se pudieron obtener los promedios", e.fillInStackTrace());
        }
    }
View Full Code Here

            AverageByDecadeFemale female = (AverageByDecadeFemale) currentSession.createCriteria(AverageByDecadeFemale.class).add(Restrictions.eq("decade", decade)).setMaxResults(1).uniqueResult();
            this.logger.logDebug("get female average successfully");
            return female;
        } catch (HibernateException e) {
            this.logger.logError("error on get female average, msg: " + e.getMessage());
            throw new ExceptionDAO("No se pudo obtener el promedio", e.fillInStackTrace());
        }
    }
View Full Code Here

TOP

Related Classes of systole.exceptions.ExceptionDAO

Copyright © 2018 www.massapicom. 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.