Examples of ExceptionDAO


Examples of systole.exceptions.ExceptionDAO

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

Examples of systole.exceptions.ExceptionDAO

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

Examples of systole.exceptions.ExceptionDAO

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

Examples of systole.exceptions.ExceptionDAO

            List<Comment> list = currentSession.createCriteria(Comment.class).add(Restrictions.eq("male", true)).list();
            this.logger.logDebug("getting comments successfully");
            return list;
        } catch (HibernateException e) {
            this.logger.logError("error on get all male comments, msg: " + e.getMessage());
            throw new ExceptionDAO("No se pudieron obtener los Comentarios", e.fillInStackTrace());
        }
    }
View Full Code Here

Examples of systole.exceptions.ExceptionDAO

            List<Comment> list = currentSession.createCriteria(Comment.class).add(Restrictions.eq("female", true)).list();
            this.logger.logDebug("getting comments successfully");
            return list;
        } catch (HibernateException e) {
            this.logger.logError("error on get all female comments, msg: " + e.getMessage());
            throw new ExceptionDAO("No se pudieron obtener los Comentarios", e.fillInStackTrace());
        }
    }
View Full Code Here

Examples of systole.exceptions.ExceptionDAO

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

Examples of systole.exceptions.ExceptionDAO

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

Examples of systole.exceptions.ExceptionDAO

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

Examples of systole.exceptions.ExceptionDAO

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

Examples of systole.exceptions.ExceptionDAO

            ProfessionRemote medicineRemote = (ProfessionRemote) criteria.uniqueResult();
            this.logger.logDebug("get successfully");
            return medicineRemote;
        } catch (HibernateException e) {
            this.logger.logError("error on get remote profession by profession, msg: " + e.getMessage());
            throw new ExceptionDAO("No se pudieron obtener las profesiones", e.fillInStackTrace());
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.