Package systole.exceptions

Examples of systole.exceptions.ExceptionDAO


            List<Medic> medics = currentSession.createQuery("from Medic m order by upper(m.surname)").list();
            this.logger.logDebug("getting medics successfully");
            return medics;
        } catch (HibernateException e) {
            this.logger.logError("error on get all medics, msg: " + e.getMessage());
            throw new ExceptionDAO("No se pudieron obtener los Médicos", e.fillInStackTrace());
        }
    }
View Full Code Here


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

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

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

            List list = criteria.list();
            this.logger.logDebug("exist identity card successfully");
            return !list.isEmpty();
        } catch (HibernateException e) {
            this.logger.logError("error on exist identity card, msg: " + e.getMessage());
            throw new ExceptionDAO("No se pudo verificar el Tipo y Número de Documento", e.fillInStackTrace());
        }
    }
View Full Code Here

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

            List<PathologyPatient> list = currentSession.createCriteria(PathologyPatient.class).add(Restrictions.and(Restrictions.eq("patient", patient), Restrictions.eq("pathology", pathology))).list();
            this.logger.logDebug("exist pathology by patient successfully");
            return !list.isEmpty();
        } catch (HibernateException e) {
            this.logger.logError("error on exist pathology by patient, msg: " + e.getMessage());
            throw new ExceptionDAO("No se verificar si ya existe la patología del paciente", e.fillInStackTrace());
        }
    }
View Full Code Here

            List<PathologyPatient> list = currentSession.createCriteria(PathologyPatient.class).add(Restrictions.eq("patient", patient)).list();
            this.logger.logDebug("get patient pathology");
            return list;
        } catch (HibernateException e) {
            this.logger.logError("error on get all patient pathology, msg: " + e.getMessage());
            throw new ExceptionDAO("No se pudieron obtener las patologías del paciente", e.fillInStackTrace());
        }
    }
View Full Code Here

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

            Session currentSession = FacadeDB.getInstance().getCurrentSession();
            currentSession.update(pathologyPatient);
            this.logger.logDebug("updated patient pathology");
        } catch (HibernateException e) {
            this.logger.logError("error on update patient pathology, msg: " + e.getMessage());
            throw new ExceptionDAO(ErrorMessages.CHANGES_NOT_SAVE, 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.