br.com.arsmachina.dao.hibernate
Class ConcreteDAOImpl<T,K extends Serializable>

java.lang.Object
  extended by br.com.arsmachina.dao.hibernate.GenericDAOImpl<T,K>
      extended by br.com.arsmachina.dao.hibernate.ConcreteDAOImpl<T,K>
Type Parameters:
T - the entity class related to this DAO.
K - the type of the field that represents the entity class' primary key.
All Implemented Interfaces:
br.com.arsmachina.dao.DAO<T,K>, br.com.arsmachina.dao.ReadableDAO<T,K>, br.com.arsmachina.dao.WriteableDAO<T,K>

public class ConcreteDAOImpl<T,K extends Serializable>
extends GenericDAOImpl<T,K>

A concrete GenericDAOImpl subclass. It is meant to be used to instantiate a DAO for entities that need only the methods that DAO has. Never subclass ConcreteDAOImpl: subclass GenericDAOImpl instead.

Author:
Thiago H. de Paula Figueiredo

Constructor Summary
ConcreteDAOImpl(Class<T> clasz, org.hibernate.SessionFactory sessionFactory)
          Single constructor.
 
Method Summary
 
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, getDefaultSortCriteria, 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
 

Constructor Detail

ConcreteDAOImpl

public ConcreteDAOImpl(Class<T> clasz,
                       org.hibernate.SessionFactory sessionFactory)
Single constructor.

Parameters:
clasz - the entity class. It cannot be null.
sessionFactory - a SessionFactory. It cannot be null.


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