|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate3.support.HibernateDaoSupport
org.bejug.javacareers.jobs.dao.hibernate.CommentDaoHibernateImpl
Comment Hibernate DAO implementation.
| Field Summary |
| Fields inherited from class org.springframework.dao.support.DaoSupport |
logger |
| Constructor Summary | |
CommentDaoHibernateImpl()
|
|
| Method Summary | |
void |
deleteComment(org.bejug.javacareers.jobs.model.Comment comment)
Delete the given comment. |
void |
deleteComment(java.lang.Integer id)
Delete the given comment by id. |
int |
getChildCommentCount(org.bejug.javacareers.jobs.model.Comment comment)
|
java.util.List |
getChildComments(java.lang.Integer commentId)
|
org.bejug.javacareers.jobs.model.Comment |
getComment(java.lang.Integer id)
find the given comment by id. |
org.bejug.javacareers.jobs.model.Comment |
getCommentBySubject(java.lang.Integer offerId,
java.lang.String subject)
get a comment. |
int |
getCommentCount(org.bejug.javacareers.jobs.model.Item offer)
|
java.util.List |
getComments(java.lang.Integer offerId,
boolean rootOnly)
Get all comments related to the offer. |
java.util.List |
getUserComments(org.bejug.javacareers.jobs.model.User user)
|
void |
store(org.bejug.javacareers.jobs.model.Comment comment)
Add a new comment. |
| Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport |
checkDaoConfig, closeSessionIfNecessary, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory |
| Methods inherited from class org.springframework.dao.support.DaoSupport |
afterPropertiesSet, initDao |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CommentDaoHibernateImpl()
| Method Detail |
public org.bejug.javacareers.jobs.model.Comment getCommentBySubject(java.lang.Integer offerId,
java.lang.String subject)
getCommentBySubject in interface CommentDaoofferId - The offer the comment is linked tosubject - The subject of the comment
public java.util.List getUserComments(org.bejug.javacareers.jobs.model.User user)
getUserComments in interface CommentDaouser - User
public int getChildCommentCount(org.bejug.javacareers.jobs.model.Comment comment)
getChildCommentCount in interface CommentDaocomment - Comment
public int getCommentCount(org.bejug.javacareers.jobs.model.Item offer)
getCommentCount in interface CommentDaooffer - Offer
public void store(org.bejug.javacareers.jobs.model.Comment comment)
throws org.springframework.dao.DataAccessException
store in interface CommentDaocomment - the new commment.
org.springframework.dao.DataAccessException - thrown when something goes wrong when getting
public java.util.List getComments(java.lang.Integer offerId,
boolean rootOnly)
throws org.springframework.dao.DataAccessException
getComments in interface CommentDaorootOnly - if true, return only the root comment.offerId - the id of the offer to get the comment from.
org.springframework.dao.DataAccessException - thrown when something goes wrong when getting
Todo: add offer to parameter list.
public java.util.List getChildComments(java.lang.Integer commentId)
throws org.springframework.dao.DataAccessException
getChildComments in interface CommentDaocommentId - the id of the comment to get the childcomments from.
org.springframework.dao.DataAccessException - e
public void deleteComment(org.bejug.javacareers.jobs.model.Comment comment)
throws org.springframework.dao.DataAccessException
deleteComment in interface CommentDaocomment - The comment to be removed.
org.springframework.dao.DataAccessException - thrown zhen something goes wrong when getting
public void deleteComment(java.lang.Integer id)
throws org.springframework.dao.DataAccessException
deleteComment in interface CommentDaoid - The comment id.
org.springframework.dao.DataAccessException - thrown zhen something goes wrong when getting
public org.bejug.javacareers.jobs.model.Comment getComment(java.lang.Integer id)
throws org.springframework.dao.DataAccessException
getComment in interface CommentDaoid - The commentid.
org.springframework.dao.DataAccessException - thrown zhen something goes wrong when getting
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||