org.apache.continuum.dao
Class ProjectDaoImpl

java.lang.Object
  extended by org.apache.continuum.dao.AbstractDao
      extended by org.apache.continuum.dao.ProjectDaoImpl
All Implemented Interfaces:
ProjectDao

@Repository(value="projectDao")
public class ProjectDaoImpl
extends AbstractDao
implements ProjectDao

Version:
$Id: ProjectDaoImpl.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
ProjectDaoImpl()
           
 
Method Summary
 List<Project> getAllProjectsByName()
           
 List<Project> getAllProjectsByNameWithBuildDetails()
           
 List<Project> getAllProjectsByNameWithDependencies()
           
 Project getProject(int projectId)
           
 Project getProject(String groupId, String artifactId, String version)
           
 Project getProjectByName(String name)
           
 ProjectGroup getProjectGroupByProjectId(int projectId)
           
 List<Project> getProjectsInGroup(int projectGroupId)
           
 List<Project> getProjectsInGroupWithDependencies(int projectGroupId)
           
 Map<Integer,ProjectGroupSummary> getProjectsSummary()
           
 List<Project> getProjectsWithDependenciesByGroupId(int projectGroupId)
           
 Project getProjectWithAllDetails(int projectId)
           
 Project getProjectWithBuildDetails(int projectId)
           
 Project getProjectWithBuilds(int projectId)
           
 Project getProjectWithCheckoutResult(int projectId)
           
 Project getProjectWithDependencies(int projectId)
           
 void removeProject(Project project)
           
 void updateProject(Project project)
           
 
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

ProjectDaoImpl

public ProjectDaoImpl()
Method Detail

removeProject

public void removeProject(Project project)
Specified by:
removeProject in interface ProjectDao

updateProject

public void updateProject(Project project)
                   throws ContinuumStoreException
Specified by:
updateProject in interface ProjectDao
Throws:
ContinuumStoreException

getProject

public Project getProject(int projectId)
                   throws ContinuumStoreException
Specified by:
getProject in interface ProjectDao
Throws:
ContinuumStoreException

getProject

public Project getProject(String groupId,
                          String artifactId,
                          String version)
                   throws ContinuumStoreException
Specified by:
getProject in interface ProjectDao
Throws:
ContinuumStoreException

getProjectByName

public Project getProjectByName(String name)
                         throws ContinuumStoreException
Specified by:
getProjectByName in interface ProjectDao
Throws:
ContinuumStoreException

getProjectsWithDependenciesByGroupId

public List<Project> getProjectsWithDependenciesByGroupId(int projectGroupId)
Specified by:
getProjectsWithDependenciesByGroupId in interface ProjectDao

getProjectWithBuilds

public Project getProjectWithBuilds(int projectId)
                             throws ContinuumStoreException
Specified by:
getProjectWithBuilds in interface ProjectDao
Throws:
ContinuumStoreException

getProjectWithBuildDetails

public Project getProjectWithBuildDetails(int projectId)
                                   throws ContinuumStoreException
Specified by:
getProjectWithBuildDetails in interface ProjectDao
Throws:
ContinuumStoreException

getProjectWithCheckoutResult

public Project getProjectWithCheckoutResult(int projectId)
                                     throws ContinuumStoreException
Specified by:
getProjectWithCheckoutResult in interface ProjectDao
Throws:
ContinuumStoreException

getProjectsInGroup

public List<Project> getProjectsInGroup(int projectGroupId)
                                 throws ContinuumStoreException
Specified by:
getProjectsInGroup in interface ProjectDao
Throws:
ContinuumStoreException

getProjectsInGroupWithDependencies

public List<Project> getProjectsInGroupWithDependencies(int projectGroupId)
                                                 throws ContinuumStoreException
Specified by:
getProjectsInGroupWithDependencies in interface ProjectDao
Throws:
ContinuumStoreException

getProjectWithAllDetails

public Project getProjectWithAllDetails(int projectId)
                                 throws ContinuumStoreException
Specified by:
getProjectWithAllDetails in interface ProjectDao
Throws:
ContinuumStoreException

getAllProjectsByName

public List<Project> getAllProjectsByName()
Specified by:
getAllProjectsByName in interface ProjectDao

getAllProjectsByNameWithDependencies

public List<Project> getAllProjectsByNameWithDependencies()
Specified by:
getAllProjectsByNameWithDependencies in interface ProjectDao

getAllProjectsByNameWithBuildDetails

public List<Project> getAllProjectsByNameWithBuildDetails()
Specified by:
getAllProjectsByNameWithBuildDetails in interface ProjectDao

getProjectGroupByProjectId

public ProjectGroup getProjectGroupByProjectId(int projectId)
                                        throws ContinuumObjectNotFoundException
Specified by:
getProjectGroupByProjectId in interface ProjectDao
Throws:
ContinuumObjectNotFoundException

getProjectWithDependencies

public Project getProjectWithDependencies(int projectId)
                                   throws ContinuumStoreException
Specified by:
getProjectWithDependencies in interface ProjectDao
Throws:
ContinuumStoreException

getProjectsSummary

public Map<Integer,ProjectGroupSummary> getProjectsSummary()
Specified by:
getProjectsSummary in interface ProjectDao


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