Subversion Repositories WebE

Rev

Rev 34 | Go to most recent revision | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed

1
package ch.ffhs.webE.dao;

import java.util.List;

import ch.ffhs.webE.domain.Term;

/**
 * Defines methods all term DAO implementations must implement
 *
 * @author pelinux
 */

public interface TermDAO
{
  /**
   * @return
   */

  List<Term> listTerm();

  /**
   * @param termName
   * @return
   */

  Term searchTerm(String termName);

  /**
   * Delete a term
   *
   * @param termId
   *          Term ID
   */

  void deleteTerm(int termId);

  /**
   * @param termId
   * @return
   */

  Term listTermById(int termId);

  /**
   * Executes the query to save the term
   *
   * @param term
   *          Domain object to be saved
   */

  void saveOrUpdate(Term term);
}