org.squashtest.tm.service.internal.repository.hibernate
Class HibernateGenericProjectDao

java.lang.Object
  extended by org.squashtest.tm.service.internal.repository.hibernate.HibernateGenericProjectDao
All Implemented Interfaces:
CustomGenericProjectDao

@Repository(value="CustomGenericProjectDao")
public class HibernateGenericProjectDao
extends Object
implements CustomGenericProjectDao

Author:
Gregory Fouquet

Constructor Summary
HibernateGenericProjectDao()
           
 
Method Summary
 org.squashtest.tm.domain.project.Project coerceTemplateIntoProject(long templateId)
          Coerces the template of given id into a projet.
 boolean isProjectTemplate(long projectId)
          Tells whether the project of id 'projectId' is a project template or not
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibernateGenericProjectDao

public HibernateGenericProjectDao()
Method Detail

coerceTemplateIntoProject

public org.squashtest.tm.domain.project.Project coerceTemplateIntoProject(long templateId)
Description copied from interface: CustomGenericProjectDao
Coerces the template of given id into a projet. This method evicts the template from the session cache, yet it should not be invoked when the template is loaded.

Specified by:
coerceTemplateIntoProject in interface CustomGenericProjectDao
Returns:
the coerced project
See Also:
org.squashtest.tm.service.internal.repository.org.squashtest.tm.service.internal.repository.CustomGenericProjectDao#coerceTemplateIntoProject(long)

isProjectTemplate

public boolean isProjectTemplate(long projectId)
Description copied from interface: CustomGenericProjectDao
Tells whether the project of id 'projectId' is a project template or not

Specified by:
isProjectTemplate in interface CustomGenericProjectDao
Returns:


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