edu.uoc.tfc.exuoc.controladors
Class grupsDAO

java.lang.Object
  extended by edu.uoc.tfc.exuoc.controladors.grupsDAO

public class grupsDAO
extends java.lang.Object

Classe que gestionarà la persistència mitjançant la classe GestorBDD (genèrica)


Constructor Summary
protected grupsDAO()
           
 
Method Summary
 Grup consulta(java.lang.Long id)
           
 Grup consulta(java.lang.String valor)
           
 java.util.Iterator<Grup> llista()
           
 java.util.Iterator<Grup> llista(int ini, int fi)
           
 java.util.Iterator<Grup> llista(java.lang.String ordre, int quants)
           
static void main(java.lang.String[] args)
           
 void modificar(Grup grup)
          S'afegeix aquest mètode per poder actualitzar la llista d'usuaris que pertanyen a un grup.
 int quants()
           
 void tancarConnexio()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

grupsDAO

protected grupsDAO()
Method Detail

tancarConnexio

public void tancarConnexio()
                    throws org.hibernate.HibernateException
Throws:
org.hibernate.HibernateException

modificar

public void modificar(Grup grup)
               throws org.hibernate.HibernateException,
                      BuitException
S'afegeix aquest mètode per poder actualitzar la llista d'usuaris que pertanyen a un grup. De moment la gestió de nous grups o eliminacions no es té en compte.

Parameters:
grup -
Throws:
org.hibernate.HibernateException
BuitException

consulta

public Grup consulta(java.lang.Long id)
              throws org.hibernate.HibernateException,
                     BuitException
Throws:
org.hibernate.HibernateException
BuitException

consulta

public Grup consulta(java.lang.String valor)
              throws org.hibernate.HibernateException,
                     BuitException,
                     java.io.UnsupportedEncodingException
Throws:
org.hibernate.HibernateException
BuitException
java.io.UnsupportedEncodingException

llista

public java.util.Iterator<Grup> llista()
                                throws org.hibernate.HibernateException,
                                       BuitException
Throws:
org.hibernate.HibernateException
BuitException

llista

public java.util.Iterator<Grup> llista(int ini,
                                       int fi)
                                throws org.hibernate.HibernateException,
                                       BuitException
Throws:
org.hibernate.HibernateException
BuitException

llista

public java.util.Iterator<Grup> llista(java.lang.String ordre,
                                       int quants)
                                throws org.hibernate.HibernateException,
                                       BuitException
Throws:
org.hibernate.HibernateException
BuitException

quants

public int quants()
           throws org.hibernate.HibernateException,
                  BuitException
Throws:
org.hibernate.HibernateException
BuitException

main

public static void main(java.lang.String[] args)