|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.uoc.tfc.exuoc.controladors.GestorContenidors
public class GestorContenidors
Method Summary | |
---|---|
java.lang.Long |
afegir(Contenidor nou)
|
java.lang.Long |
eliminarContenidor(Contenidor contenidor)
|
void |
evict(java.lang.Object o)
|
static GestorContenidors |
getInstance()
|
GestorLogs |
getLog()
|
Contenidor |
llegir(java.lang.Long id)
|
Contenidor |
llegirContenidor(java.lang.Class classe,
java.lang.Long id)
|
Contenidor |
llegirContenidor(java.lang.Long id)
|
Contenidor |
llegirContenidor(java.lang.String nom)
|
java.util.Iterator<Contenidor> |
llistat()
|
java.util.Iterator<Contenidor> |
llistat(int ini,
int fi)
|
java.util.Iterator<Contenidor> |
llistat(java.lang.String camp,
java.lang.String valor,
int ini,
int fi)
|
java.util.Iterator<Contenidor> |
llistatContenidors()
|
java.util.Iterator<Contenidor> |
llistatContenidors(int ini,
int fi)
|
java.util.Iterator<Contenidor> |
llistatContenidors(java.lang.String ordre,
int quants)
|
static void |
main(java.lang.String[] args)
MAIN |
Contenidor |
modificar(Contenidor actual)
|
int |
num()
Augmenta el nombre de contenidors en "augment" valor |
int |
num(java.lang.String nom)
|
int |
numContenidors()
|
int |
numContenidors(java.lang.Integer augment)
|
void |
openGestor()
|
void |
persist(java.lang.Object o)
|
void |
setLog(GestorLogs log)
|
void |
tancar()
|
void |
treureItem(java.lang.Long idItem,
java.lang.Long idContenidor)
Elimina un ítems d'un contenidor donat |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static GestorContenidors getInstance()
public void openGestor()
openGestor
in interface InterfaceGestor
public void tancar()
tancar
in interface InterfaceGestor
public GestorLogs getLog()
getLog
in interface InterfaceGestor
public void setLog(GestorLogs log)
setLog
in interface InterfaceGestor
public void evict(java.lang.Object o)
public void persist(java.lang.Object o)
public java.lang.Long afegir(Contenidor nou) throws AfegirDAOException
AfegirDAOException
public java.lang.Long eliminarContenidor(Contenidor contenidor) throws EliDAOException
EliDAOException
public void treureItem(java.lang.Long idItem, java.lang.Long idContenidor) throws org.hibernate.HibernateException, BuitException, EliDAOException
item,
- element a eliminatcontenidor,
- d'on serà eliminat
org.hibernate.HibernateException
BuitException
EliDAOException
public Contenidor modificar(Contenidor actual) throws ModDAOException
ModDAOException
public Contenidor llegir(java.lang.Long id) throws LlegirDAOException
LlegirDAOException
public Contenidor llegirContenidor(java.lang.Long id) throws LlegirDAOException
LlegirDAOException
public Contenidor llegirContenidor(java.lang.Class classe, java.lang.Long id) throws LlegirDAOException
LlegirDAOException
public Contenidor llegirContenidor(java.lang.String nom) throws LlegirDAOException
LlegirDAOException
public java.util.Iterator<Contenidor> llistat() throws LlistatDAOException
llistat
in interface InterfaceGestor
LlistatDAOException
public java.util.Iterator<Contenidor> llistat(int ini, int fi) throws LlistatDAOException
llistat
in interface InterfaceGestor
LlistatDAOException
public java.util.Iterator<Contenidor> llistat(java.lang.String camp, java.lang.String valor, int ini, int fi) throws LlistatDAOException
llistat
in interface InterfaceGestor
LlistatDAOException
public java.util.Iterator<Contenidor> llistatContenidors() throws LlistatDAOException
LlistatDAOException
public java.util.Iterator<Contenidor> llistatContenidors(int ini, int fi) throws LlistatDAOException
LlistatDAOException
public java.util.Iterator<Contenidor> llistatContenidors(java.lang.String ordre, int quants) throws LlistatDAOException
LlistatDAOException
public int numContenidors() throws org.hibernate.HibernateException, BuitException
org.hibernate.HibernateException
BuitException
public int num() throws org.hibernate.HibernateException, BuitException
num
in interface InterfaceGestor
augment
-
org.hibernate.HibernateException
BuitException
public int num(java.lang.String nom) throws org.hibernate.HibernateException, BuitException
num
in interface InterfaceGestor
nom
-
org.hibernate.HibernateException
BuitException
public int numContenidors(java.lang.Integer augment) throws org.hibernate.HibernateException, BuitException
org.hibernate.HibernateException
BuitException
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |