br.com.arsmachina.authentication.dao.hibernate
Class PermissionGroupDAOImpl

java.lang.Object
  extended by br.com.arsmachina.dao.hibernate.GenericDAOImpl<br.com.arsmachina.authentication.entity.PermissionGroup,Integer>
      extended by br.com.arsmachina.authentication.dao.hibernate.PermissionGroupDAOImpl
All Implemented Interfaces:
br.com.arsmachina.authentication.dao.PermissionGroupDAO, br.com.arsmachina.dao.DAO<br.com.arsmachina.authentication.entity.PermissionGroup,Integer>, br.com.arsmachina.dao.ReadableDAO<br.com.arsmachina.authentication.entity.PermissionGroup,Integer>, br.com.arsmachina.dao.WriteableDAO<br.com.arsmachina.authentication.entity.PermissionGroup,Integer>

public class PermissionGroupDAOImpl
extends br.com.arsmachina.dao.hibernate.GenericDAOImpl<br.com.arsmachina.authentication.entity.PermissionGroup,Integer>
implements br.com.arsmachina.authentication.dao.PermissionGroupDAO

PermissionGroupDAO implementation using Hibernate.

Author:
Thiago H. de Paula Figueiredo

Constructor Summary
PermissionGroupDAOImpl(org.hibernate.SessionFactory sessionFactory)
          Single constructor of this class.
 
Method Summary
 br.com.arsmachina.authentication.entity.PermissionGroup findByName(String name)
           
 br.com.arsmachina.dao.SortCriterion[] getDefaultSortCriteria()
          Returns Constants.ASCENDING_NAME_SORT_CRITERIA.
 
Methods inherited from class br.com.arsmachina.dao.hibernate.GenericDAOImpl
addSortCriteria, addSortCriteria, countAll, createCriteria, createCriteria, createCriteria, createExample, delete, delete, evict, findAll, findAll, findByExample, findById, findByIds, getClassMetadata, getEntityClass, getPrimaryKeyPropertyName, getSession, getSessionFactory, isPersistent, reattach, refresh, save, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface br.com.arsmachina.dao.ReadableDAO
countAll, findAll, findAll, findByExample, findById, findByIds, reattach, refresh
 
Methods inherited from interface br.com.arsmachina.dao.WriteableDAO
delete, delete, evict, isPersistent, save, update
 

Constructor Detail

PermissionGroupDAOImpl

public PermissionGroupDAOImpl(org.hibernate.SessionFactory sessionFactory)
Single constructor of this class.

Parameters:
sessionFactory - a SessionFactory. It cannot be null.
Method Detail

findByName

public br.com.arsmachina.authentication.entity.PermissionGroup findByName(String name)
Specified by:
findByName in interface br.com.arsmachina.authentication.dao.PermissionGroupDAO
See Also:
PermissionGroupDAO.findByName(java.lang.String)

getDefaultSortCriteria

public br.com.arsmachina.dao.SortCriterion[] getDefaultSortCriteria()
Returns Constants.ASCENDING_NAME_SORT_CRITERIA.

Specified by:
getDefaultSortCriteria in interface br.com.arsmachina.dao.ReadableDAO<br.com.arsmachina.authentication.entity.PermissionGroup,Integer>
Overrides:
getDefaultSortCriteria in class br.com.arsmachina.dao.hibernate.GenericDAOImpl<br.com.arsmachina.authentication.entity.PermissionGroup,Integer>
See Also:
GenericDAOImpl.getDefaultSortCriteria()


Copyright © 2008-2009 Thiago H. de Paula Figueiredo. All Rights Reserved.