org.itracker.persistence.dao
Interface ProjectScriptDAO

All Superinterfaces:
BaseDAO<ProjectScript>
All Known Implementing Classes:
ProjectScriptDAOImpl

public interface ProjectScriptDAO
extends BaseDAO<ProjectScript>

Interface to define basic operations to deal with the ProjectScript entity


Method Summary
 List<ProjectScript> findAll()
          Finds all ProjectScripts
 ProjectScript findByPrimaryKey(Integer scriptId)
          Find a ProjectScript by its primary key
 List<ProjectScript> findByProject(Integer projectId)
          Finds all scripts applied to fields on a particular project.
 List<ProjectScript> findByProjectField(Integer projectId, Integer fieldId)
          Finds all scripts applied to fields on a particular project.
 
Methods inherited from interface org.itracker.persistence.dao.BaseDAO
delete, detach, merge, refresh, save, saveOrUpdate
 

Method Detail

findByPrimaryKey

ProjectScript findByPrimaryKey(Integer scriptId)
Find a ProjectScript by its primary key

Parameters:
scriptId - system ID
Returns:
project script or null if none exists with the given id

findAll

List<ProjectScript> findAll()
Finds all ProjectScripts

Returns:
all ProjectScripts

findByProject

List<ProjectScript> findByProject(Integer projectId)
Finds all scripts applied to fields on a particular project.

Parameters:
projectId -
Returns:
list of project scripts

findByProjectField

List<ProjectScript> findByProjectField(Integer projectId,
                                       Integer fieldId)
Finds all scripts applied to fields on a particular project.

Parameters:
projectId -
fieldId -
Returns:
list of project scripts


Copyright © 2002-2012 itracker. All Rights Reserved.