it.eng.spagobi.behaviouralmodel.analyticaldriver.dao
Class ObjParuseDAOHibImpl

java.lang.Object
  extended by it.eng.spagobi.commons.dao.AbstractHibernateDAO
      extended by it.eng.spagobi.behaviouralmodel.analyticaldriver.dao.ObjParuseDAOHibImpl
All Implemented Interfaces:
IObjParuseDAO, ISpagoBIDao

public class ObjParuseDAOHibImpl
extends AbstractHibernateDAO
implements IObjParuseDAO

Defines the Hibernate implementations for all DAO methods, for a ObjParuse object.

Author:
Zerbetto

Field Summary
 
Fields inherited from class it.eng.spagobi.commons.dao.AbstractHibernateDAO
TENANT_FILTER_NAME
 
Constructor Summary
ObjParuseDAOHibImpl()
           
 
Method Summary
 void eraseObjParuse(ObjParuse aObjParuse)
          Erase obj paruse.
 void eraseObjParuse(ObjParuse aObjParuse, org.hibernate.Session aSession)
           
 void eraseObjParuseIfExists(ObjParuse aObjParuse, org.hibernate.Session aSession)
          Implements the query to erase a ObjParuse.
 java.util.List getAllDependenciesForParameterUse(java.lang.Integer useId)
          Gets the all dependencies for parameter use.
 java.util.List getDependencies(java.lang.Integer objParFatherId)
          Gets the dependencies.
 java.util.List getDocumentLabelsListWithAssociatedDependencies(java.lang.Integer useId)
          Gets the document labels list with associated dependencies.
 void insertObjParuse(ObjParuse aObjParuse)
          Insert obj paruse.
 java.util.List loadObjParuse(java.lang.Integer objParId, java.lang.Integer paruseId)
          Load obj paruse.
 java.util.List loadObjParuses(java.lang.Integer objParId)
          Load obj paruses.
 java.util.List loadObjParusesFather(java.lang.Integer objParId)
          Returns the list of all ObjParuse objects associated to a BIObjectParameter via a father relationship, known its objParId.
 void modifyObjParuse(ObjParuse aObjParuse)
          Modify obj paruse.
 ObjParuse toObjParuse(SbiObjParuse aSbiObjParuse)
          From the hibernate SbiObjParuse at input, gives the corrispondent ObjParuse object.
 
Methods inherited from class it.eng.spagobi.commons.dao.AbstractHibernateDAO
commitIfActiveAndClose, disableTenantFilter, enableTenantFilter, getSession, getTenant, getUserProfile, logException, rollbackIfActiveAndClose, setTenant, setUserID, setUserProfile, updateSbiCommonInfo4Insert, updateSbiCommonInfo4Update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface it.eng.spagobi.commons.dao.ISpagoBIDao
getUserProfile, setTenant, setUserID, setUserProfile
 

Constructor Detail

ObjParuseDAOHibImpl

public ObjParuseDAOHibImpl()
Method Detail

modifyObjParuse

public void modifyObjParuse(ObjParuse aObjParuse)
                     throws it.eng.spago.error.EMFUserError
Modify obj paruse.

Specified by:
modifyObjParuse in interface IObjParuseDAO
Parameters:
aObjParuse - the a obj paruse
Throws:
it.eng.spago.error.EMFUserError - the EMF user error
See Also:
IObjParuseDAO.modifyObjParuse(it.eng.spagobi.behaviouralmodel.analyticaldriver.bo.ObjParuse)

insertObjParuse

public void insertObjParuse(ObjParuse aObjParuse)
                     throws it.eng.spago.error.EMFUserError
Insert obj paruse.

Specified by:
insertObjParuse in interface IObjParuseDAO
Parameters:
aObjParuse - the a obj paruse
Throws:
it.eng.spago.error.EMFUserError - the EMF user error
See Also:
IObjParuseDAO.insertObjParuse(it.eng.spagobi.behaviouralmodel.analyticaldriver.bo.ObjParuse)

eraseObjParuse

public void eraseObjParuse(ObjParuse aObjParuse)
                    throws it.eng.spago.error.EMFUserError
Erase obj paruse.

Specified by:
eraseObjParuse in interface IObjParuseDAO
Parameters:
aObjParuse - the a obj paruse
Throws:
it.eng.spago.error.EMFUserError - the EMF user error
See Also:
IObjParuseDAO.eraseObjParuse(ObjParuse)

eraseObjParuse

public void eraseObjParuse(ObjParuse aObjParuse,
                           org.hibernate.Session aSession)
                    throws it.eng.spago.error.EMFUserError
Throws:
it.eng.spago.error.EMFUserError

loadObjParuses

public java.util.List loadObjParuses(java.lang.Integer objParId)
                              throws it.eng.spago.error.EMFUserError
Load obj paruses.

Specified by:
loadObjParuses in interface IObjParuseDAO
Parameters:
objParId - the obj par id
Returns:
the list
Throws:
it.eng.spago.error.EMFUserError - the EMF user error
See Also:
IObjParuseDAO.loadObjParuses(Integer)

toObjParuse

public ObjParuse toObjParuse(SbiObjParuse aSbiObjParuse)
From the hibernate SbiObjParuse at input, gives the corrispondent ObjParuse object.

Parameters:
aSbiObjParuse - The hybernate SbiObjParuse
Returns:
The corrispondent ObjParuse

getDependencies

public java.util.List getDependencies(java.lang.Integer objParFatherId)
                               throws it.eng.spago.error.EMFUserError
Gets the dependencies.

Specified by:
getDependencies in interface IObjParuseDAO
Parameters:
objParFatherId - the obj par father id
Returns:
the dependencies
Throws:
it.eng.spago.error.EMFUserError - the EMF user error
See Also:
IObjParuseDAO.getDependencies(Integer)

getAllDependenciesForParameterUse

public java.util.List getAllDependenciesForParameterUse(java.lang.Integer useId)
                                                 throws it.eng.spago.error.EMFUserError
Gets the all dependencies for parameter use.

Specified by:
getAllDependenciesForParameterUse in interface IObjParuseDAO
Parameters:
useId - the use id
Returns:
the all dependencies for parameter use
Throws:
it.eng.spago.error.EMFUserError - the EMF user error
See Also:
IObjParuseDAO.getAllDependenciesForParameterUse(java.lang.Integer)

getDocumentLabelsListWithAssociatedDependencies

public java.util.List getDocumentLabelsListWithAssociatedDependencies(java.lang.Integer useId)
                                                               throws it.eng.spago.error.EMFUserError
Gets the document labels list with associated dependencies.

Specified by:
getDocumentLabelsListWithAssociatedDependencies in interface IObjParuseDAO
Parameters:
useId - the use id
Returns:
the document labels list with associated dependencies
Throws:
it.eng.spago.error.EMFUserError - the EMF user error
See Also:
IObjParuseDAO.getDocumentLabelsListWithAssociatedDependencies(java.lang.Integer)

loadObjParuse

public java.util.List loadObjParuse(java.lang.Integer objParId,
                                    java.lang.Integer paruseId)
                             throws it.eng.spago.error.EMFUserError
Load obj paruse.

Specified by:
loadObjParuse in interface IObjParuseDAO
Parameters:
objParId - the obj par id
paruseId - the paruse id
Returns:
the list
Throws:
it.eng.spago.error.EMFUserError - the EMF user error
See Also:
IObjParuseDAO.loadObjParuse(java.lang.Integer, java.lang.Integer)

eraseObjParuseIfExists

public void eraseObjParuseIfExists(ObjParuse aObjParuse,
                                   org.hibernate.Session aSession)
                            throws it.eng.spago.error.EMFUserError
Description copied from interface: IObjParuseDAO
Implements the query to erase a ObjParuse. If the object does not exist does not do anything All information needed is stored into the input ObjParuse object.

Specified by:
eraseObjParuseIfExists in interface IObjParuseDAO
Parameters:
aObjParuse - The object containing all delete information
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred

loadObjParusesFather

public java.util.List loadObjParusesFather(java.lang.Integer objParId)
                                    throws it.eng.spago.error.EMFUserError
Description copied from interface: IObjParuseDAO
Returns the list of all ObjParuse objects associated to a BIObjectParameter via a father relationship, known its objParId.

Specified by:
loadObjParusesFather in interface IObjParuseDAO
Parameters:
objParId - The input BIObjectParameter id code
Returns:
The list of all ObjParuse objects associated
Throws:
it.eng.spago.error.EMFUserError - If any exception occurred