Package model.DAO
Class UtenteDAO
java.lang.Object
model.DAO.UtenteDAO
public final class UtenteDAO extends java.lang.Object implements DAO<Utente>
-
Constructor Summary
Constructors Constructor Description UtenteDAO()
-
Method Summary
Modifier and Type Method Description boolean
delete(Utente entity)
Utente
doLogin(Utente utente)
Metodo che permette il login.Utente
extract(java.sql.ResultSet resultSet)
int
fillPreparedStatement(java.sql.PreparedStatement preparedStatement, Utente entity)
Riempe il preparedStatement.java.util.List<Utente>
getAll()
Utente
getById(int id)
boolean
save(Utente entity)
boolean
update(Utente entity)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
UtenteDAO
public UtenteDAO()
-
-
Method Details
-
getById
-
doLogin
Metodo che permette il login.- Parameters:
utente
- Il bean contenete alcune informazioni sull'utente che intende effettuare il login- Returns:
- Il bean dell'utente presente nel database
-
getAll
-
update
-
save
-
delete
-
extract
-
fillPreparedStatement
public int fillPreparedStatement(java.sql.PreparedStatement preparedStatement, Utente entity) throws java.sql.SQLExceptionRiempe il preparedStatement.- Parameters:
preparedStatement
- il preparedStatement da riempireentity
- l'entità da dove prelevare le informazioni- Returns:
- l'indice del prossimo campo da riempire
- Throws:
java.sql.SQLException
- l'eccezione
-