Package systole.exceptions

Examples of systole.exceptions.ExceptionDAO


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


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

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

            List<Comparative> list = currentSession.createQuery("from Comparative c order by upper(c.name)").list();
            this.logger.logDebug("getting comparatives successfully");
            return list;
        } catch (HibernateException e) {
            this.logger.logError("error on get all comparatives, msg: " + e.getMessage());
            throw new ExceptionDAO("No se pudieron obtener las Comparaciones", e.fillInStackTrace());
        }
    }
View Full Code Here

            List<Comparative> list = criteria.list();
            this.logger.logDebug("exist comparative successfully");
            return !list.isEmpty();
        } catch (HibernateException e) {
            this.logger.logError("error on exist comparative, msg: " + e.getMessage());
            throw new ExceptionDAO("No se pudo verificar si ya existe la comparación", e.fillInStackTrace());
        }
    }
View Full Code Here

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

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

            SurgeryRemote surgeryRemote = (SurgeryRemote) criteria.uniqueResult();
            this.logger.logDebug("get successfully");
            return (surgeryRemote != null ? surgeryRemote.getSurgery() : null);
        } catch (HibernateException e) {
            this.logger.logError("error on get surgery by remote id, msg: " + e.getMessage());
            throw new ExceptionDAO("No se pudieron obtener las cirugias", e.fillInStackTrace());
        }
    }
View Full Code Here

            SurgeryRemote surgeryRemotes = (SurgeryRemote) criteria.uniqueResult();
            this.logger.logDebug("get successfully");
            return surgeryRemotes;
        } catch (HibernateException e) {
            this.logger.logError("error on get remote surgery by surgery, msg: " + e.getMessage());
            throw new ExceptionDAO("No se pudieron obtener las cirugias", e.fillInStackTrace());
        }
    }
View Full Code Here

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