java.lang.Object
model.DAO.CategoriaDAO
- All Implemented Interfaces:
DAO<Categoria>
public final class CategoriaDAO
extends java.lang.Object
implements DAO<Categoria>
-
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
CategoriaDAO
public CategoriaDAO()
-
Method Details
-
getById
- Specified by:
getById
in interface DAO<Categoria>
- Parameters:
id
- rappresenta l'identificativo dell'entity
- Returns:
- null se non viene trovato nessun risultato,
un'istanza di T nel caso in cui viene trovato un risultato
-
-
save
- Specified by:
save
in interface DAO<Categoria>
- Parameters:
entity
- l'istanza da salvare
- Returns:
- false --> se l'operazione non va a buon fine,
true --> se l'operazione va a buon fine
-
update
- Specified by:
update
in interface DAO<Categoria>
- Parameters:
entity
- l'istanza da aggiornare
- Returns:
- false --> se l'operazione non va a buon fine,
true --> se l'operazione va a buon fine
-
delete
- Specified by:
delete
in interface DAO<Categoria>
- Parameters:
entity
- l'istanza da eliminare
- Returns:
- false --> se l'operazione non va a buon fine,
true --> se l'operazione va a buon fine
-