@Repository
public class DaoVaixell
extends org.springframework.jdbc.core.support.JdbcDaoSupport
Constructor and Description |
---|
DaoVaixell(javax.sql.DataSource dataSource) |
Modifier and Type | Method and Description |
---|---|
Vaixell |
cercarVaixell(java.lang.Integer idVaixell)
Mètode que serveix per a cercar un vaixell a partir del seu identificador.
|
Vaixell |
cercarVaixell(java.lang.String nomVaixell)
Mètode que serveix per a cercar un vaixell a partir del seu nom.
|
java.util.List<Vaixell> |
obtenirLlistatVaixells()
Mètode que serveix per a obtenir un llistat dels vaixells.
|
java.lang.Boolean |
vaixellExisteix(java.lang.String nomVaixell)
Mètode que serveix per a comprovar si existeix un vaixell a partir del seu nom.
|
public java.lang.Boolean vaixellExisteix(java.lang.String nomVaixell) throws ExcepcioPlanificacio
nomVaixell
- objecte que conté el nom del vaixell.ExcepcioPlanificacio
public java.util.List<Vaixell> obtenirLlistatVaixells() throws ExcepcioPlanificacio
ExcepcioPlanificacio
public Vaixell cercarVaixell(java.lang.String nomVaixell) throws ExcepcioPlanificacio
nomVaixell
- objecte que conté el nom del vaixell.ExcepcioPlanificacio
public Vaixell cercarVaixell(java.lang.Integer idVaixell) throws ExcepcioInformacio
idVaixell
- objecte que conté el identificador del vaixell.ExcepcioInformacio