Subversion Repositories WebE

Rev

Rev 33 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
31 PointedEar 1
package ch.ffhs.webE.dao;
2
 
3
import java.util.List;
4
 
5
import ch.ffhs.webE.domain.Term;
6
 
7
/**
8
 * Defines methods all term DAO implementations must implement
9
 *
10
 * @author pelinux
11
 */
12
public interface TermDAO
13
{
14
  /**
15
   * @return
16
   */
34 PointedEar 17
  List<Term> getTerms();
31 PointedEar 18
 
19
  /**
20
   * Delete a term
21
   *
22
   * @param termId
23
   *          Term ID
24
   */
25
  void deleteTerm(int termId);
26
 
27
  /**
33 PointedEar 28
   * Retrieves a term by ID
29
   *
31 PointedEar 30
   * @param termId
31
   * @return
32
   */
33 PointedEar 33
  Term getTermById(int termId);
31 PointedEar 34
 
35
  /**
36
   * Executes the query to save the term
37
   *
38
   * @param term
39
   *          Domain object to be saved
33 PointedEar 40
   * @return <code>true</code> if successful, <code>false</code> otherwise
31 PointedEar 41
   */
33 PointedEar 42
  boolean saveOrUpdate(Term term);
31 PointedEar 43
}