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, HibernateCampaignDao, HibernateCampaignFolderDao, HibernateCampaignLibraryNodeDao, HibernateCampaignTestPlanItemDao, HibernateExecutionDao, HibernateExecutionStepDao, HibernateIssueDao, HibernateItemTestPlanDao, HibernateIterationDao, HibernateProjectDao, HibernateProjectFilterDao, HibernateRequirementDao, HibernateRequirementFolderDao, HibernateRequirementLibraryNodeDao, HibernateTestCaseDao, HibernateTestCaseFolderDao, HibernateTestCaseLibraryNodeDao, HibernateUserDao, HibernateUsersGroupDao

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


Field Summary
 
Fields inherited from class org.squashtest.csp.tm.internal.repository.hibernate.HibernateDao
entityType
 
Constructor Summary
HibernateEntityDao()
           
 
Method Summary
 List<ENTITY_TYPE> findAllByIdList(List<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, 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>

findAllByIdList

public List<ENTITY_TYPE> findAllByIdList(List<Long> ids)
Specified by:
findAllByIdList 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 Squashtest TM, Squashtest.org. All Rights Reserved.