/** * @param commentTask * @return * @throws PersistentException */ public boolean evict(de.fhb.jproject.data.CommentTask commentTask) throws PersistentException { try { de.fhb.jproject.data.JProjectPersistentManager.instance().getSession().evict(commentTask); return true; } catch (Exception e) { _logger.error("evict(de.fhb.jproject.data.CommentTask commentTask)", e); throw new PersistentException(e); } }
/** * @param condition * @param orderBy * @return * @throws PersistentException */ public CommentTask[] listCommentTaskByQuery(String condition, String orderBy) throws PersistentException { try { PersistentSession session = de.fhb.jproject.data.JProjectPersistentManager.instance().getSession(); return listCommentTaskByQuery(session, condition, orderBy); } catch (Exception e) { _logger.error("listCommentTaskByQuery(String condition, String orderBy)", e); throw new PersistentException(e); } }
/** * @param condition * @param orderBy * @param lockMode * @return * @throws PersistentException */ public static java.util.Iterator iterateCommentTaskByQuery( String condition, String orderBy, org.hibernate.LockMode lockMode) throws PersistentException { try { PersistentSession session = de.fhb.jproject.data.JProjectPersistentManager.instance().getSession(); return iterateCommentTaskByQuery(session, condition, orderBy, lockMode); } catch (Exception e) { _logger.error("iterateCommentTaskByQuery(String condition, String orderBy)", e); throw new PersistentException(e); } }