📄 iservice.java
字号:
package service;
import java.sql.Date;
import java.sql.Timestamp;
import java.util.List;
import java.util.Map;
import dao.model.Categorie;
import dao.model.Contrat;
import dao.model.Plage;
import dao.model.Spot;
import exception.MetieException;
public interface IService {
/**
* ajouter un cat茅gorie
* @param c
* @throws MetieException
*/
public void addCategorie(Categorie c) throws MetieException;
/**
* mise 脿 jour de la cat茅gorie qui existe d茅j脿 dans la base de donn茅es
* @param c
* @throws MetieException
*/
public void updateCategorie(Categorie c) throws MetieException;
/**
* obtenir la cat茅gorie correspondante au nom donn茅 sous forme de parametre
* @param c
* @throws MetieException
*/
public Categorie getCategorie(String nom) throws MetieException;
/**
* rende une liste de categories
* @return
* @throws MetieException
*/
public List<Categorie> getListCategorie() throws MetieException;
/**
* retourne une liste de spots par un plage donn茅
* @param idPlage
* @return
* @throws MetieException
*/
public List<Spot> getSpotsByPlage(int idPlage)throws MetieException;
/**
* retourne une liste de contrats correspondants une information partielle sur le contrat saisi par le client
* @param like
* @return
* @throws MetieException
*/
public List<Contrat> getContrat(String like) throws MetieException;
/**
* retourne les plages correspondants un contrat
* @return
* @throws MetieException
*/
public Map<Plage, Timestamp> getPlageByContrat(int idSpot)throws MetieException;
/**
* ajouter une plage d'un journ茅e
* @param p
* @throws MetieException
*/
public void addPlage(Plage p)throws MetieException;
/**
* ajouter les spots dans un plage
* @param s
* @param p
* @param t
* @throws MetieException
*/
public void attachSpotToPlage(Spot s,Plage p,Timestamp t) throws MetieException;
/**
* retourner les plages propos茅s selon un contrat
* @param s
* @return
* @throws MetieException
*/
public Map<Categorie,List<Plage>> suggestPlageBySpot(Spot s)throws MetieException;
/**
* Retourner les plages correspondantes 脿 un jour quelconque
* @param date
* @return
* @throws MetieException
*/
List<Plage> getPlagesByJour(Date date) throws MetieException;
/**
* cr茅er un contrat
* @param c
* @param list
*/
void addContratComplete(Contrat c, Map<Plage, Timestamp> list);
/**
* retourner les plages propos茅s selon un contrat particulier
* @param duree
* @param start
* @param end
* @return
* @throws MetieException
*/
public Map<Categorie, List<Plage>> suggestPlageParticulier(int duree, Date start, Date end)
throws MetieException;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -