Subversion Repositories WebE

Rev

Rev 33 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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