edu.uoc.tfc.exuoc.controladors
Class GestorMetadades
java.lang.Object
edu.uoc.tfc.exuoc.controladors.GestorMetadades
- All Implemented Interfaces:
- InterfaceGestor
public class GestorMetadades
- extends java.lang.Object
- implements InterfaceGestor
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static GestorMetadades getInstance()
openGestor
public void openGestor()
throws org.hibernate.HibernateException
- Specified by:
openGestor
in interface InterfaceGestor
- Throws:
org.hibernate.HibernateException
tancar
public void tancar()
- Specified by:
tancar
in interface InterfaceGestor
getLog
public GestorLogs getLog()
- Specified by:
getLog
in interface InterfaceGestor
setLog
public void setLog(GestorLogs log)
- Specified by:
setLog
in interface InterfaceGestor
num
public int num()
throws org.hibernate.HibernateException,
BuitException
- Specified by:
num
in interface InterfaceGestor
- Returns:
- Nombre total d'entitats de la classe
- Throws:
org.hibernate.HibernateException
BuitException
num
public int num(java.lang.String nomCercat)
throws org.hibernate.HibernateException,
BuitException
- Specified by:
num
in interface InterfaceGestor
- Returns:
- Retorna el total d'entitats que compleixen amb el camp nom indicat
- Throws:
org.hibernate.HibernateException
BuitException
llegir
public MetaDC llegir(java.lang.Long id)
throws NoExisteixException
- Throws:
NoExisteixException
llegir
public MetaDC llegir(java.lang.Class classe,
java.lang.Long id)
llistat
public java.util.Iterator<MetaDC> llistat()
throws LlistatDAOException,
BuitException
- Specified by:
llistat
in interface InterfaceGestor
- Throws:
LlistatDAOException
BuitException
llistat
public java.util.Iterator<?> llistat(int ini,
int fi)
throws LlistatDAOException,
BuitException
- Specified by:
llistat
in interface InterfaceGestor
- Throws:
LlistatDAOException
BuitException
llistat
public java.util.Iterator<?> llistat(java.lang.String camp,
java.lang.String pernom,
int ini,
int fi)
throws LlistatDAOException,
BuitException
- Specified by:
llistat
in interface InterfaceGestor
- Throws:
LlistatDAOException
BuitException