@Repository(value="resolvedTopicToTopicDao") public class ResolvedTopicToTopicDaoImpl extends HibernateDaoImpl<ResolvedTopicToTopic> implements ResolvedTopicToTopicDao
Constructor and Description |
---|
ResolvedTopicToTopicDaoImpl()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
connect(Long parentTopicId,
Long childTopicId)
This method connects the both topics, means builds the needed structure.
|
int |
disconnect(Long topicId)
This method removes all connections for the given topic.
|
int |
disconnect(Long parentTopicId,
Long childTopicId)
This method removes the given child topic as child from the given parent topic.
|
boolean |
isChild(Long parentTopicId,
Long childTopicId) |
create, create, evict, load, loadAll, postConstruct, remove, remove, remove, update, update
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory
public int connect(Long parentTopicId, Long childTopicId)
connect
in interface ResolvedTopicToTopicDao
parentTopicId
- The parents topic id.public int disconnect(Long topicId)
disconnect
in interface ResolvedTopicToTopicDao
topicId
- Id of the topic.public int disconnect(Long parentTopicId, Long childTopicId)
disconnect
in interface ResolvedTopicToTopicDao
parentTopicId
- Id of the parent topic.childTopicId
- Id of the child topic.public boolean isChild(Long parentTopicId, Long childTopicId)
isChild
in interface ResolvedTopicToTopicDao
parentTopicId
- Id of the parent.childTopicId
- Id of the child.Copyright © 2019 Communote team. All rights reserved.