edu.uoc.tfc.exuoc.controladors
Class GestorCerques
java.lang.Object
edu.uoc.tfc.exuoc.controladors.GestorCerques
public class GestorCerques
- extends java.lang.Object
classe que contindrà totes les funcionalitats dels objectes Item,
estableix la connexió amb l'objecte DAO per obtenir/enviar els objectes
de tipus Ítem
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GestorCerques
public GestorCerques()
getLogexuoc
public GestorLogs getLogexuoc()
setLogexuoc
public void setLogexuoc(GestorLogs log)
llistatContenidors
public java.util.Iterator<Contenidor> llistatContenidors(java.lang.String camp,
java.lang.String valorCercat,
int ini,
int fi)
throws org.hibernate.HibernateException,
LlistatDAOException
- Throws:
org.hibernate.HibernateException
LlistatDAOException
llistatItems
public java.util.Iterator<Item> llistatItems()
throws org.hibernate.HibernateException,
BuitException
- Throws:
org.hibernate.HibernateException
BuitException
llistatItems
public java.util.Iterator<Item> llistatItems(int ini,
int fi)
throws org.hibernate.HibernateException,
BuitException
- Throws:
org.hibernate.HibernateException
BuitException
llistatItems
public java.util.Iterator<Item> llistatItems(java.lang.String ordre,
int quants)
throws org.hibernate.HibernateException,
BuitException
- Throws:
org.hibernate.HibernateException
BuitException
llistaTopTen
public java.util.Iterator<Item> llistaTopTen()
throws org.hibernate.HibernateException,
BuitException
- Throws:
org.hibernate.HibernateException
BuitException
llistaUltimsItems
public java.util.Iterator<Item> llistaUltimsItems()
throws org.hibernate.HibernateException,
BuitException
- Throws:
org.hibernate.HibernateException
BuitException
tancar
public void tancar()
throws org.hibernate.HibernateException
- Throws:
org.hibernate.HibernateException
numItems
public int numItems()
throws org.hibernate.HibernateException,
BuitException
- Returns:
- Nombre d'ítems del sistema
- Throws:
org.hibernate.HibernateException
BuitException
numItems
public int numItems(java.lang.Integer augment)
throws org.hibernate.HibernateException,
BuitException
- Parameters:
augment
- , 1=augmenta en 1, -1=disminueix un valor
- Returns:
- retorna el nombre d'ítems +1
- Throws:
org.hibernate.HibernateException
BuitException
mesVisita
public int mesVisita(java.lang.Long id)
throws org.hibernate.HibernateException,
NoExisteixException
- Returns:
- Tenim una visita més per a un ítem id donat
- Throws:
org.hibernate.HibernateException
NoExisteixException
nombreVisites
public int nombreVisites(java.lang.Long id)
throws org.hibernate.HibernateException,
NoExisteixException
- Throws:
org.hibernate.HibernateException
NoExisteixException