com.neidetcher.petunia.service
Class KnowledgeDaoImpl
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.ibatis.support.SqlMapClientDaoSupport
com.neidetcher.petunia.service.KnowledgeDaoImpl
- All Implemented Interfaces:
- KnowledgeDao, org.springframework.beans.factory.InitializingBean
public class KnowledgeDaoImpl
- extends org.springframework.orm.ibatis.support.SqlMapClientDaoSupport
- implements KnowledgeDao
Field Summary |
protected org.apache.commons.logging.Log |
log
|
Fields inherited from class org.springframework.dao.support.DaoSupport |
logger |
Methods inherited from class org.springframework.orm.ibatis.support.SqlMapClientDaoSupport |
checkDaoConfig, getDataSource, getSqlMapClient, getSqlMapClientTemplate, setDataSource, setSqlMapClient, setSqlMapClientTemplate |
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 |
log
protected org.apache.commons.logging.Log log
KnowledgeDaoImpl
public KnowledgeDaoImpl()
save
public Knowledge save(Knowledge knowledge)
- Specified by:
save
in interface KnowledgeDao
find
public Knowledge find(java.lang.Integer id)
- Specified by:
find
in interface KnowledgeDao
findByTagName
public java.util.List<Knowledge> findByTagName(java.lang.String tagName)
- Specified by:
findByTagName
in interface KnowledgeDao
findByCategoryId
public java.util.List<Knowledge> findByCategoryId(java.lang.Integer categoryId)
- Specified by:
findByCategoryId
in interface KnowledgeDao
findTags
public java.util.List<java.lang.String> findTags(java.lang.Integer knowledgeId)
- Specified by:
findTags
in interface KnowledgeDao
addTag
public void addTag(java.lang.Integer knowledgeId,
java.lang.String tagName)
- Specified by:
addTag
in interface KnowledgeDao
removeTag
public void removeTag(java.lang.Integer knowledgeId,
java.lang.String tagName)
- Specified by:
removeTag
in interface KnowledgeDao
Copyright © 2008. All Rights Reserved.