Rev 31 |
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
();
/**
* Delete a term
*
* @param termId
* Term ID
*/
void deleteTerm
(int termId
);
/**
* Retrieves a term by ID
*
* @param termId
* @return
*/
Term getTermById
(int termId
);
/**
* Executes the query to save the term
*
* @param term
* Domain object to be saved
* @return <code>true</code> if successful, <code>false</code> otherwise
*/
boolean saveOrUpdate
(Term term
);
}