com.neidetcher.petunia.service
Class KnowledgeDaoImpl

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.ibatis.support.SqlMapClientDaoSupport
          extended by 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
 
Constructor Summary
KnowledgeDaoImpl()
           
 
Method Summary
 void addTag(java.lang.Integer knowledgeId, java.lang.String tagName)
           
 Knowledge find(java.lang.Integer id)
           
 java.util.List<Knowledge> findByCategoryId(java.lang.Integer categoryId)
           
 java.util.List<Knowledge> findByTagName(java.lang.String tagName)
           
 java.util.List<java.lang.String> findTags(java.lang.Integer knowledgeId)
           
 void removeTag(java.lang.Integer knowledgeId, java.lang.String tagName)
           
 Knowledge save(Knowledge knowledge)
           
 
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
 

Field Detail

log

protected org.apache.commons.logging.Log log
Constructor Detail

KnowledgeDaoImpl

public KnowledgeDaoImpl()
Method Detail

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.