PageRenderTime 243ms CodeModel.GetById 104ms app.highlight 2ms RepoModel.GetById 136ms app.codeStats 0ms

/src/main/java/com/google/ie/business/dao/DeveloperDao.java

http://thoughtsite.googlecode.com/
Java | 57 lines | 10 code | 8 blank | 39 comment | 0 complexity | dcc89f27d7e1c1b39570d3532da73ac7 MD5 | raw file
 1/* Copyright 2010 Google Inc.
 2 * 
 3 * Licensed under the Apache License, Version 2.0 (the "License");
 4 * you may not use this file except in compliance with the License.
 5 * You may obtain a copy of the License at
 6 * 
 7 *      http://www.apache.org/licenses/LICENSE-2.0
 8 * 
 9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS.
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License
14 */
15
16package com.google.ie.business.dao;
17
18import com.google.ie.business.domain.Developer;
19import com.google.ie.business.domain.Idea;
20import com.google.ie.dto.RetrievalInfo;
21
22import java.util.List;
23
24/**
25 * A data access object specification for Developer entity.
26 * 
27 * @author gmaurya
28 */
29public interface DeveloperDao extends BaseDao {
30
31    /**
32     * Saves a {@link Developer} which is being created from a published
33     * {@link Idea}, into the data store.
34     * 
35     * @param Developer {@link Developer} object
36     * @return Returns the saved Developer.
37     */
38    Developer saveDeveloper(Developer developer);
39
40    /**
41     * Retrieves the list of developers associated with a project.
42     * 
43     * @param projectKey primary key of entity project
44     * @return List list of {@link Developer} objects
45     */
46    List<Developer> getDevelopersByProjectKey(String projectKey);
47
48    /**
49     * Retrieves the list of developers associated with a user.
50     * 
51     * @param userKey primary key of entity User
52     * @param retrievalInfo retrieval information detail
53     * @return List list of {@link Developer} objects
54     */
55    List<Developer> getDevelopersByUserKey(String userKey, RetrievalInfo retrievalInfo);
56}
57