org.zeroexchange.dao.role
Class RoleDAOImpl

java.lang.Object
  extended by org.zeroexchange.dao.HibernateSessionHolder
      extended by org.zeroexchange.dao.BaseHibernateDAO<String,T>
          extended by org.zeroexchange.dao.BaseStringPKDAO<Role>
              extended by org.zeroexchange.dao.role.RoleDAOImpl
All Implemented Interfaces:
DAO<String,Role>, RoleDAO, StringPKDAO<Role>

public class RoleDAOImpl
extends BaseStringPKDAO<Role>
implements RoleDAO

Role DAO implementation.

Author:
black

Constructor Summary
RoleDAOImpl()
           
 
Method Summary
 Class<Role> getEntityClass()
          
 Role getRole(String roleId)
          Returns role by id of throws an exception if not exists.
 
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

RoleDAOImpl

public RoleDAOImpl()
Method Detail

getEntityClass

public Class<Role> getEntityClass()

Specified by:
getEntityClass in class BaseHibernateDAO<String,Role>

getRole

public Role getRole(String roleId)
             throws DAOOperationException
Returns role by id of throws an exception if not exists.

Specified by:
getRole in interface RoleDAO
Throws:
DAOOperationException


Copyright © 2013. All Rights Reserved.