Package systole.exceptions

Examples of systole.exceptions.ExceptionDAO


            Session currentSession = FacadeDB.getInstance().getCurrentSession();
            currentSession.delete(surgeryPatient);
            this.logger.logDebug("deleted patient surgery");
        } catch (HibernateException e) {
            this.logger.logError("error on delete patient surgery, msg: " + e.getMessage());
            throw new ExceptionDAO("No se pudo eliminar", e.fillInStackTrace());
        }
    }
View Full Code Here


            this.logger.logDebug("exist sport by patient successfully");
            return !list.isEmpty();
        } catch (HibernateException e) {
            this.logger.logError("error on exist sport by patient, msg: "
                    + e.getMessage());
            throw new ExceptionDAO(
                    "No se verificar si ya existe la actividad física del paciente",
                    e.fillInStackTrace());
        }
    }
View Full Code Here

            this.logger.logDebug("get patient sports");
            return list;
        } catch (HibernateException e) {
            this.logger.logError("error on get all patient sports, msg: "
                    + e.getMessage());
            throw new ExceptionDAO(
                    "No se pudieron obtener las actividades físicas del paciente",
                    e.fillInStackTrace());
        }
    }
View Full Code Here

            currentSession.save(sportPatient);
            this.logger.logDebug("saved patient sport");
        } catch (HibernateException e) {
            this.logger.logError("error on save patient sport, msg: "
                    + e.getMessage());
            throw new ExceptionDAO(ErrorMessages.CHANGES_NOT_SAVE, e.fillInStackTrace());
        }
    }
View Full Code Here

            currentSession.update(sportPatient);
            this.logger.logDebug("updated patient sport");
        } catch (HibernateException e) {
            this.logger.logError("error on update patient sport, msg: "
                    + e.getMessage());
            throw new ExceptionDAO(ErrorMessages.CHANGES_NOT_SAVE, e.fillInStackTrace());
        }
    }
View Full Code Here

            currentSession.delete(sportPatient);
            this.logger.logDebug("deleted patient sport");
        } catch (HibernateException e) {
            this.logger.logError("error on delete patient sport, msg: "
                    + e.getMessage());
            throw new ExceptionDAO("No se pudo eliminar", e.fillInStackTrace());
        }
    }
View Full Code Here

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

            List<ClinicalInformation> list = query.list();
            this.logger.logDebug("get successfully");
            return list;
        } catch (HibernateException e) {
            this.logger.logError("error on get clinical info to upload, msg: " + e.getMessage());
            throw new ExceptionDAO("No se pudieron obtener los informes clínicos", e.fillInStackTrace());
        }
    }
View Full Code Here

            ClinicalInfoRemote clinicalInfoRemote = (ClinicalInfoRemote) criteria.uniqueResult();
            this.logger.logDebug("get successfully");
            return (clinicalInfoRemote != null ? clinicalInfoRemote.getClinicalInformation() : null);
        } catch (HibernateException e) {
            this.logger.logError("error on get clinical info by remote id, msg: " + e.getMessage());
            throw new ExceptionDAO("No se pudieron obtener los informes clínicos", e.fillInStackTrace());
        }
    }
View Full Code Here

            ClinicalInfoRemote sportRemote = (ClinicalInfoRemote) criteria.uniqueResult();
            this.logger.logDebug("get successfully");
            return sportRemote;
        } catch (HibernateException e) {
            this.logger.logError("error on get remote clinical info by clinical info, msg: " + e.getMessage());
            throw new ExceptionDAO("No se pudieron obtener los informes clínicos", 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.