View Javadoc

1   /*
2   Copyright 2010 James Pether Sörling Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. 
3   	$Id
4   */
5   
6   package com.hack23.cia.service.dao;
7   
8   import java.util.List;
9   
10  import com.hack23.cia.model.sweden.impl.Ballot;
11  
12  /***
13   * The Interface BallotDAO.
14   */
15  public interface BallotDAO extends GenericDAO<Ballot, Long> {
16  
17      /***
18       * Gets the all completed.
19       *
20       * @return the all completed
21       */
22      List<Ballot> getAllCompleted();
23  
24      /***
25       * Gets the all created.
26       *
27       * @return the all created
28       */
29      List<Ballot> getAllCreated();
30  
31      /***
32       * Gets the all ordered by week.
33       *
34       * @return the all ordered by week
35       */
36      List<Ballot> getAllOrderedByWeek();
37  
38      /***
39       * Gets the last.
40       *
41       * @return the last
42       */
43      Ballot getLast();
44  }