org.apache.continuum.dao
Class BuildDefinitionTemplateDaoImpl

java.lang.Object
  extended by org.apache.continuum.dao.AbstractDao
      extended by org.apache.continuum.dao.BuildDefinitionTemplateDaoImpl
All Implemented Interfaces:
BuildDefinitionTemplateDao

@Repository(value="buildDefinitionTemplateDao")
public class BuildDefinitionTemplateDaoImpl
extends AbstractDao
implements BuildDefinitionTemplateDao

Version:
$Id: BuildDefinitionTemplateDaoImpl.java 1372260 2012-08-13 04:29:09Z brett $
Author:
Emmanuel Venisse

Field Summary
 
Fields inherited from class org.apache.continuum.dao.AbstractDao
BUILD_RESULT_WITH_DETAILS_FETCH_GROUP, BUILD_TEMPLATE_BUILD_DEFINITIONS, PROJECT_ALL_DETAILS_FETCH_GROUP, PROJECT_BUILD_DETAILS_FETCH_GROUP, PROJECT_DEPENDENCIES_FETCH_GROUP, PROJECT_WITH_BUILDS_FETCH_GROUP, PROJECT_WITH_CHECKOUT_RESULT_FETCH_GROUP, PROJECTGROUP_PROJECTS_FETCH_GROUP
 
Constructor Summary
BuildDefinitionTemplateDaoImpl()
           
 
Method Summary
 BuildDefinitionTemplate addBuildDefinitionTemplate(BuildDefinitionTemplate buildDefinitionTemplate)
           
 List<BuildDefinitionTemplate> getAllBuildDefinitionTemplate()
           
 BuildDefinitionTemplate getBuildDefinitionTemplate(int id)
           
 List<BuildDefinitionTemplate> getBuildDefinitionTemplatesWithType(String type)
           
 List<BuildDefinitionTemplate> getContinuumBuildDefinitionTemplates()
           
 BuildDefinitionTemplate getContinuumBuildDefinitionTemplateWithType(String type)
           
 List<BuildDefinitionTemplate> getContinuumDefaultdDefinitions()
          the list returned will contains only continuumDefaults BuildDefinition
 void removeBuildDefinitionTemplate(BuildDefinitionTemplate buildDefinitionTemplate)
           
 BuildDefinitionTemplate updateBuildDefinitionTemplate(BuildDefinitionTemplate buildDefinitionTemplate)
           
 
Methods inherited from class org.apache.continuum.dao.AbstractDao
addObject, attachAndDelete, getAllObjectsDetached, getAllObjectsDetached, getAllObjectsDetached, getAllObjectsDetached, getContinuumPersistenceManagerFactory, getObjectById, getObjectById, getObjectFromQuery, getPersistenceManager, makePersistent, removeObject, rollback, updateObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildDefinitionTemplateDaoImpl

public BuildDefinitionTemplateDaoImpl()
Method Detail

getAllBuildDefinitionTemplate

public List<BuildDefinitionTemplate> getAllBuildDefinitionTemplate()
                                                            throws ContinuumStoreException
Specified by:
getAllBuildDefinitionTemplate in interface BuildDefinitionTemplateDao
Throws:
ContinuumStoreException

getContinuumBuildDefinitionTemplates

public List<BuildDefinitionTemplate> getContinuumBuildDefinitionTemplates()
                                                                   throws ContinuumStoreException
Specified by:
getContinuumBuildDefinitionTemplates in interface BuildDefinitionTemplateDao
Throws:
ContinuumStoreException

getBuildDefinitionTemplate

public BuildDefinitionTemplate getBuildDefinitionTemplate(int id)
                                                   throws ContinuumStoreException
Specified by:
getBuildDefinitionTemplate in interface BuildDefinitionTemplateDao
Throws:
ContinuumStoreException

addBuildDefinitionTemplate

public BuildDefinitionTemplate addBuildDefinitionTemplate(BuildDefinitionTemplate buildDefinitionTemplate)
                                                   throws ContinuumStoreException
Specified by:
addBuildDefinitionTemplate in interface BuildDefinitionTemplateDao
Throws:
ContinuumStoreException

updateBuildDefinitionTemplate

public BuildDefinitionTemplate updateBuildDefinitionTemplate(BuildDefinitionTemplate buildDefinitionTemplate)
                                                      throws ContinuumStoreException
Specified by:
updateBuildDefinitionTemplate in interface BuildDefinitionTemplateDao
Throws:
ContinuumStoreException

removeBuildDefinitionTemplate

public void removeBuildDefinitionTemplate(BuildDefinitionTemplate buildDefinitionTemplate)
                                   throws ContinuumStoreException
Specified by:
removeBuildDefinitionTemplate in interface BuildDefinitionTemplateDao
Throws:
ContinuumStoreException

getBuildDefinitionTemplatesWithType

public List<BuildDefinitionTemplate> getBuildDefinitionTemplatesWithType(String type)
                                                                  throws ContinuumStoreException
Specified by:
getBuildDefinitionTemplatesWithType in interface BuildDefinitionTemplateDao
Throws:
ContinuumStoreException

getContinuumBuildDefinitionTemplateWithType

public BuildDefinitionTemplate getContinuumBuildDefinitionTemplateWithType(String type)
                                                                    throws ContinuumStoreException
Specified by:
getContinuumBuildDefinitionTemplateWithType in interface BuildDefinitionTemplateDao
Returns:
BuildDefinitionTemplate null if not found
Throws:
ContinuumStoreException

getContinuumDefaultdDefinitions

public List<BuildDefinitionTemplate> getContinuumDefaultdDefinitions()
                                                              throws ContinuumStoreException
Description copied from interface: BuildDefinitionTemplateDao
the list returned will contains only continuumDefaults BuildDefinition

Specified by:
getContinuumDefaultdDefinitions in interface BuildDefinitionTemplateDao
Returns:
List
Throws:
ContinuumStoreException


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.