org.squashtest.csp.tm.internal.repository.hibernate
Class HibernateEntityDao<ENTITY_TYPE>

java.lang.Object
  extended by org.squashtest.csp.tm.internal.repository.hibernate.HibernateDao<ENTITY_TYPE>
      extended by org.squashtest.csp.tm.internal.repository.hibernate.HibernateEntityDao<ENTITY_TYPE>
All Implemented Interfaces:
EntityDao<ENTITY_TYPE>
Direct Known Subclasses:
HibernateAttachmentContentDao, HibernateAttachmentDao, HibernateAttachmentListDao, HibernateBugTrackerBindingDao, HibernateBugTrackerDao, HibernateCampaignDao, HibernateCampaignFolderDao, HibernateCampaignLibraryNodeDao, HibernateCampaignTestPlanItemDao, HibernateExecutionDao, HibernateExecutionStepDao, HibernateIssueDao, HibernateItemTestPlanDao, HibernateIterationDao, HibernateProjectDao, HibernateProjectFilterDao, HibernateRequirementDao, HibernateRequirementFolderDao, HibernateRequirementLibraryNodeDao, HibernateTestCaseDao, HibernateTestCaseFolderDao, HibernateTestCaseLibraryNodeDao, HibernateTestSuiteDao, HibernateUserDao, HibernateUsersGroupDao

public class HibernateEntityDao<ENTITY_TYPE>
extends HibernateDao<ENTITY_TYPE>
implements EntityDao<ENTITY_TYPE>


Nested Class Summary
protected static class HibernateEntityDao.ContainerIdNameStartParameterCallback
           
 
Field Summary
 
Fields inherited from class org.squashtest.csp.tm.internal.repository.hibernate.HibernateDao
entityType
 
Constructor Summary
HibernateEntityDao()
           
 
Method Summary
 List<ENTITY_TYPE> findAll()
           
 List<ENTITY_TYPE> findAllByIds(Collection<Long> ids)
           
 ENTITY_TYPE findById(long id)
           
 void flush()
           
 String getIdPropertyName()
           
 void persist(ENTITY_TYPE transientEntity)
           
 void persist(List<ENTITY_TYPE> transientEntities)
           
 void remove(ENTITY_TYPE entity)
           
 
Methods inherited from class org.squashtest.csp.tm.internal.repository.hibernate.HibernateDao
currentSession, executeEntityNamedQuery, executeEntityNamedQuery, executeEntityNamedQuery, executeListNamedQuery, executeListNamedQuery, executeListNamedQuery, getEntity, persistEntity, removeEntity
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibernateEntityDao

public HibernateEntityDao()
Method Detail

findById

public final ENTITY_TYPE findById(long id)
Specified by:
findById in interface EntityDao<ENTITY_TYPE>

findAll

public List<ENTITY_TYPE> findAll()
Specified by:
findAll in interface EntityDao<ENTITY_TYPE>
Returns:
a list of all entities found in the database with no restriction

findAllByIds

public List<ENTITY_TYPE> findAllByIds(Collection<Long> ids)
Specified by:
findAllByIds in interface EntityDao<ENTITY_TYPE>

getIdPropertyName

public String getIdPropertyName()

persist

public final void persist(ENTITY_TYPE transientEntity)
Specified by:
persist in interface EntityDao<ENTITY_TYPE>

remove

public final void remove(ENTITY_TYPE entity)
Specified by:
remove in interface EntityDao<ENTITY_TYPE>

flush

public final void flush()
Specified by:
flush in interface EntityDao<ENTITY_TYPE>

persist

public void persist(List<ENTITY_TYPE> transientEntities)
Specified by:
persist in interface EntityDao<ENTITY_TYPE>


Copyright © 2010-2012 Henix, henix.fr. All Rights Reserved.