Package systole.exceptions

Examples of systole.exceptions.ExceptionDAO


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


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

            List<Analysis> analysis = criteria.list();
            this.logger.logDebug("Anaysis get successfully");
            return analysis;
        } catch (HibernateException e) {
            this.logger.logError("error on get analysis, msg: " + e.getMessage());
            throw new ExceptionDAO("No se pudieron obtener los Análisis", e.fillInStackTrace());
        }
    }
View Full Code Here

            List<Analysis> analysis = criteria.list();
            this.logger.logDebug("Anaysis get successfully");
            return analysis;
        } catch (HibernateException e) {
            this.logger.logError("error on get analysis, msg: " + e.getMessage());
            throw new ExceptionDAO("No se pudieron obtener los Análisis", e.fillInStackTrace());
        }
    }
View Full Code Here

                this.logger.logDebug("Analysis found");
            }
            return instance;
        } catch (HibernateException e) {
            this.logger.logError("error on get analysis, msg: " + e.getMessage());
            throw new ExceptionDAO("No se pudo obtener el Análisis", e.fillInStackTrace());
        }
    }
View Full Code Here

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

            Session currentSession = FacadeDB.getInstance().getCurrentSession();
            currentSession.update(analisys);
            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<Analysis> list = currentSession.createCriteria(Analysis.class).addOrder(Order.desc("analysisDay")).list();
            this.logger.logDebug("get analysis successfully");
            return list;
        } catch (HibernateException e) {
            this.logger.logError("error on get analysis, msg: " + e.getMessage());
            throw new ExceptionDAO("No se pudieron obtener los análisis", e.fillInStackTrace());
        }
    }
View Full Code Here

            List<Analysis> list = criteria.list();
            this.logger.logDebug("get analysis successfully");
            return list;
        } catch (HibernateException e) {
            this.logger.logError("error on get analysis by patint, medic and date, msg: " + e.getMessage());
            throw new ExceptionDAO("No se pudieron obtener los análisis", e.fillInStackTrace());
        }
    }
View Full Code Here

            Session currentSession = FacadeDB.getInstance().getCurrentSession();
            currentSession.save(analysisRemote);
            this.logger.logDebug("remote analysis saved");
        } catch (HibernateException e) {
            this.logger.logError("error on save analysis remote, msg: " + e.getMessage());
            throw new ExceptionDAO("No se pudieron guardar los cambios", 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.