Package CallCenterManagement.Dao
Class AppuntamentoDAO
java.lang.Object
CallCenterManagement.Dao.AppuntamentoDAO
public class AppuntamentoDAO
extends java.lang.Object
Implementazione DAO Appuntamento
Connessione e implementazione della Base di dati con Appuntamento
- createAppuntamento()
- loginAppuntamento()
- readAppuntamento()
- readIDAppuntamentofallito()
- deleteAppuntamento()
- restoreAppuntamento()
- updateAppuntamento()
-
Constructor Summary
Constructors Constructor Description AppuntamentoDAO() -
Method Summary
Modifier and Type Method Description static voidcreateAppuntamento(Appuntamento a)static voiddeleteAppuntamento(Appuntamento a)static AppuntamentoreadAppuntamento(int ID)static intreadIDAppuntamentofallito(java.lang.String nomeAppuntamentofallito)static AppuntamentorestoreAppuntamento(java.sql.ResultSet rs)static voidupdateAppuntamento(Appuntamento a)
-
Constructor Details
-
AppuntamentoDAO
public AppuntamentoDAO()
-
-
Method Details
-
createAppuntamento
- Parameters:
Appuntamento- da aggiungere nel DB- Throws:
java.sql.SQLException
-
restoreAppuntamento
- Parameters:
ResultSet- della lettura dal Db dell'Appuntamento- Returns:
- Appuntamento creato nel programma
- Throws:
java.sql.SQLException
-
readAppuntamento
- Parameters:
ID- dell'Appuntamento- Returns:
- Agente di Vendita se non era stato aggiunto nel programma
- Throws:
java.sql.SQLException
-
readIDAppuntamentofallito
public static int readIDAppuntamentofallito(java.lang.String nomeAppuntamentofallito) throws java.sql.SQLException- Parameters:
Nome- dell'Appuntamento fallito- Returns:
- ID dell'appuntamento fallito
- Throws:
java.sql.SQLException
-
updateAppuntamento
- Parameters:
Dati- dell' Appuntamento da modificare nel DB- Throws:
java.sql.SQLException
-
deleteAppuntamento
- Parameters:
Id- dell'appunatamento da rimuovere dal db- Throws:
java.sql.SQLException
-