Package systole.exceptions

Examples of systole.exceptions.ExceptionDAO


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


            Report instance = (Report) currentSession.get(Report.class, id);
            this.logger.logDebug("get successfully");
            return instance;
        } catch (HibernateException e) {
            this.logger.logError("error on get report, msg: " + e.getMessage());
            throw new ExceptionDAO("No se pudo obtener el Reporte", e.fillInStackTrace());
        }
    }
View Full Code Here

            List<Report> list = currentSession.createCriteria(Report.class).list();
            this.logger.logDebug("getting successfully");
            return list;
        } catch (HibernateException e) {
            this.logger.logError("error on get reports by patient, msg: " + e.getMessage());
            throw new ExceptionDAO("No se pudieron obtener los reportes del paciente", e.fillInStackTrace());
        }
    }
View Full Code Here

            Session currentSession = FacadeDB.getInstance().getCurrentSession();
            currentSession.save(report);
            this.logger.logDebug("save successfully");
        } catch (HibernateException e) {
            this.logger.logError("error on save report, msg: " + e.getMessage());
            throw new ExceptionDAO(ErrorMessages.CHANGES_NOT_SAVE, e.fillInStackTrace());
        }
    }
View Full Code Here

            Session currentSession = FacadeDB.getInstance().getCurrentSession();
            currentSession.update(report);
            this.logger.logDebug("update successfully");
        } catch (HibernateException e) {
            this.logger.logError("error on update report, msg: " + e.getMessage());
            throw new ExceptionDAO(ErrorMessages.CHANGES_NOT_SAVE, e.fillInStackTrace());
        }
    }
View Full Code Here

            Session currentSession = FacadeDB.getInstance().getCurrentSession();
            currentSession.save(sportRemote);
            this.logger.logDebug("remote sport saved");
        } catch (HibernateException e) {
            this.logger.logError("error on save sport remote, msg: " + e.getMessage());
            throw new ExceptionDAO("No se pudieron guardar los cambios", e.fillInStackTrace());
        }
    }
View Full Code Here

            List<Sport> list = query.list();
            this.logger.logDebug("get successfully");
            return list;
        } catch (HibernateException e) {
            this.logger.logError("error on get sport to upload, msg: " + e.getMessage());
            throw new ExceptionDAO("No se pudieron obtener las actividades físicas", e.fillInStackTrace());
        }
    }
View Full Code Here

            SportRemote sportRemote = (SportRemote) criteria.uniqueResult();
            this.logger.logDebug("get successfully");
            return (sportRemote != null ? sportRemote.getSport() : null);
        } catch (HibernateException e) {
            this.logger.logError("error on get sport by remote id, msg: " + e.getMessage());
            throw new ExceptionDAO("No se pudieron obtener las actividades físicas", e.fillInStackTrace());
        }
    }
View Full Code Here

            SportRemote sportRemote = (SportRemote) criteria.uniqueResult();
            this.logger.logDebug("get successfully");
            return sportRemote;
        } catch (HibernateException e) {
            this.logger.logError("error on get remote sport by sport, msg: " + e.getMessage());
            throw new ExceptionDAO("No se pudieron obtener las actividades físicas", e.fillInStackTrace());
        }
    }
View Full Code Here

            SportRemote sportRemote = (SportRemote) criteria.uniqueResult();
            this.logger.logDebug("get successfully");
            return (sportRemote != null ? sportRemote.getRemoteId() : -1);
        } catch (HibernateException e) {
            this.logger.logError("error on get last remote sport synchronized, msg: " + e.getMessage());
            throw new ExceptionDAO("No se pudieron obtener las actividades físicas", 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.