Package systole.exceptions

Examples of systole.exceptions.ExceptionDAO


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


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

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

            IdentityCardTypeRemote identityCardTypeRemote = (IdentityCardTypeRemote) criteria.uniqueResult();
            this.logger.logDebug("get successfully");
            return (identityCardTypeRemote != null ? identityCardTypeRemote.getCardType() : null);
        } catch (HibernateException e) {
            this.logger.logError("error on get identity card by remote id, msg: " + e.getMessage());
            throw new ExceptionDAO("No se pudieron obtener los documentos", e.fillInStackTrace());
        }
    }
View Full Code Here

            IdentityCardTypeRemote identityCardTypeRemote = (IdentityCardTypeRemote) criteria.uniqueResult();
            this.logger.logDebug("get successfully");
            return identityCardTypeRemote;
        } catch (HibernateException e) {
            this.logger.logError("error on get remote identity card, msg: " + e.getMessage());
            throw new ExceptionDAO("No se pudieron obtener los documentos", e.fillInStackTrace());
        }
    }
View Full Code Here

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

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

            List<SurgeryPatient> list = currentSession.createCriteria(SurgeryPatient.class).add(Restrictions.eq("patient", patient)).list();
            this.logger.logDebug("get patient surgery");
            return list;
        } catch (HibernateException e) {
            this.logger.logError("error on get all patient surgery, msg: " + e.getMessage());
            throw new ExceptionDAO("No se pudieron obtener las intervención quirúrgicas del paciente", e.fillInStackTrace());
        }
    }
View Full Code Here

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

            Session currentSession = FacadeDB.getInstance().getCurrentSession();
            currentSession.update(surgeryPatient);
            this.logger.logDebug("updated patient surgery");
        } catch (HibernateException e) {
            this.logger.logError("error on update patient surgery, 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.