org.zeroexchange.dao.resource
Class CategoryDAOImpl

java.lang.Object
  extended by org.zeroexchange.dao.HibernateSessionHolder
      extended by org.zeroexchange.dao.BaseHibernateDAO<Integer,T>
          extended by org.zeroexchange.dao.BaseIntegerPKDAO<Category>
              extended by org.zeroexchange.dao.resource.CategoryDAOImpl
All Implemented Interfaces:
DAO<Integer,Category>, IntegerPKDAO<Category>, CategoryDAO

public class CategoryDAOImpl
extends BaseIntegerPKDAO<Category>
implements CategoryDAO

Author:
black

Constructor Summary
CategoryDAOImpl()
           
 
Method Summary
 DataSet<Category> getCategoriesByTitle(String query)
          Returns categories by the title.
 DataSet<Category> getChildCategories(Category parent)
          Returns subcategories for the specified parent.
protected  Class<Category> getEntityClass()
          
 
Methods inherited from class org.zeroexchange.dao.BaseHibernateDAO
getById, removeById, save
 
Methods inherited from class org.zeroexchange.dao.HibernateSessionHolder
getSession
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.zeroexchange.dao.DAO
getById, removeById, save
 

Constructor Detail

CategoryDAOImpl

public CategoryDAOImpl()
Method Detail

getEntityClass

protected Class<Category> getEntityClass()

Specified by:
getEntityClass in class BaseHibernateDAO<Integer,Category>

getChildCategories

public DataSet<Category> getChildCategories(Category parent)
Returns subcategories for the specified parent.

Specified by:
getChildCategories in interface CategoryDAO

getCategoriesByTitle

public DataSet<Category> getCategoriesByTitle(String query)
Returns categories by the title.

Specified by:
getCategoriesByTitle in interface CategoryDAO


Copyright © 2013. All Rights Reserved.