/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. package com.google.ie.business.dao;
  16. import com.google.ie.business.domain.Developer;
  17. import com.google.ie.business.domain.Idea;
  18. import com.google.ie.dto.RetrievalInfo;
  19. import java.util.List;
  20. /**
  21. * A data access object specification for Developer entity.
  22. *
  23. * @author gmaurya
  24. */
  25. public interface DeveloperDao extends BaseDao {
  26. /**
  27. * Saves a {@link Developer} which is being created from a published
  28. * {@link Idea}, into the data store.
  29. *
  30. * @param Developer {@link Developer} object
  31. * @return Returns the saved Developer.
  32. */
  33. Developer saveDeveloper(Developer developer);
  34. /**
  35. * Retrieves the list of developers associated with a project.
  36. *
  37. * @param projectKey primary key of entity project
  38. * @return List list of {@link Developer} objects
  39. */
  40. List<Developer> getDevelopersByProjectKey(String projectKey);
  41. /**
  42. * Retrieves the list of developers associated with a user.
  43. *
  44. * @param userKey primary key of entity User
  45. * @param retrievalInfo retrieval information detail
  46. * @return List list of {@link Developer} objects
  47. */
  48. List<Developer> getDevelopersByUserKey(String userKey, RetrievalInfo retrievalInfo);
  49. }