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

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

public class ObjParviewDAOHibImpl
extends AbstractHibernateDAO
implements IObjParviewDAO

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

Author:
gavardi

Constructor Summary
ObjParviewDAOHibImpl()
           
 
Method Summary
 void eraseObjParview(ObjParview aObjParview)
          Erase obj parview.
 void eraseObjParview(ObjParview aObjParview, org.hibernate.Session aSession)
          Implements the query to erase a ObjParview preserving the session.
 java.util.List getAllDependenciesForParameterview(java.lang.Integer viewId)
          Gets the all dependencies for parameter view.
 java.util.List getDependencies(java.lang.Integer objParFatherId)
          Gets the dependencies.
 java.util.List getDocumentLabelsListWithAssociatedDependencies(java.lang.Integer viewId)
          Gets the document labels list with associated dependencies.
 void insertObjParview(ObjParview aObjParview)
          Insert obj parview.
 java.util.List loadObjParview(java.lang.Integer objParId, java.lang.Integer parviewId)
          Load obj parview.
 java.util.List<ObjParview> loadObjParviews(java.lang.Integer objParId)
          Load obj parviews.
 void modifyObjParview(ObjParview aObjParview)
          Modify obj parview.
 ObjParview toObjParview(SbiObjParview aSbiObjParview)
          From the hibernate SbiObjParview at input, gives the corrispondent ObjParview object.
 
Methods inherited from class it.eng.spagobi.commons.dao.AbstractHibernateDAO
commitIfActiveAndClose, getSession, getUserProfile, logException, rollbackIfActiveAndClose, 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, setUserID, setUserProfile
 

Constructor Detail

ObjParviewDAOHibImpl

public ObjParviewDAOHibImpl()
Method Detail

modifyObjParview

public void modifyObjParview(ObjParview aObjParview)
                      throws it.eng.spago.error.EMFUserError
Modify obj parview.

Specified by:
modifyObjParview in interface IObjParviewDAO
Parameters:
aObjParview - the a obj parview
Throws:
it.eng.spago.error.EMFUserError - the EMF user error
See Also:
IObjParviewDAO.modifyObjParview(it.eng.spagobi.behaviouralmodel.analyticaldriver.bo.ObjParview)

insertObjParview

public void insertObjParview(ObjParview aObjParview)
                      throws it.eng.spago.error.EMFUserError
Insert obj parview.

Specified by:
insertObjParview in interface IObjParviewDAO
Parameters:
aObjParview - the a obj parview
Throws:
EMFviewrError - the EMF user error
it.eng.spago.error.EMFUserError - If an Exception occurred
See Also:
IObjParuseDAO.insertObjParuse(it.eng.spagobi.behaviouralmodel.analyticaldriver.bo.ObjParuse)

eraseObjParview

public void eraseObjParview(ObjParview aObjParview)
                     throws it.eng.spago.error.EMFUserError
Erase obj parview.

Specified by:
eraseObjParview in interface IObjParviewDAO
Parameters:
aObjParview - the a obj parview
Throws:
it.eng.spago.error.EMFUserError - the EMF user error
See Also:
IObjParviewDAO.eraseObjParview(ObjParview)

eraseObjParview

public void eraseObjParview(ObjParview aObjParview,
                            org.hibernate.Session aSession)
                     throws it.eng.spago.error.EMFUserError
Description copied from interface: IObjParviewDAO
Implements the query to erase a ObjParview preserving the session. All information needed is stored into the input ObjParview object.

Specified by:
eraseObjParview in interface IObjParviewDAO
Throws:
it.eng.spago.error.EMFUserError

loadObjParviews

public java.util.List<ObjParview> loadObjParviews(java.lang.Integer objParId)
                                           throws it.eng.spago.error.EMFUserError
Load obj parviews.

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

toObjParview

public ObjParview toObjParview(SbiObjParview aSbiObjParview)
From the hibernate SbiObjParview at input, gives the corrispondent ObjParview object.

Parameters:
aSbiObjParview - The hybernate SbiObjParview
Returns:
The corrispondent ObjParview

getDependencies

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

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

getAllDependenciesForParameterview

public java.util.List getAllDependenciesForParameterview(java.lang.Integer viewId)
                                                  throws it.eng.spago.error.EMFUserError
Gets the all dependencies for parameter view.

Specified by:
getAllDependenciesForParameterview in interface IObjParviewDAO
Parameters:
viewId - the view id
Returns:
the all dependencies for parameter view
Throws:
EMFviewrError - the EMF user error
it.eng.spago.error.EMFUserError - the EMF user error
See Also:
IObjParviewDAO.getAllDependenciesForParameterview(java.lang.Integer)

getDocumentLabelsListWithAssociatedDependencies

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

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

loadObjParview

public java.util.List loadObjParview(java.lang.Integer objParId,
                                     java.lang.Integer parviewId)
                              throws it.eng.spago.error.EMFUserError
Load obj parview.

Specified by:
loadObjParview in interface IObjParviewDAO
Parameters:
objParId - the obj par id
parviewId - the parview id
Returns:
the list
Throws:
EMFviewrError - the EMF user error
it.eng.spago.error.EMFUserError - If an Exception occurred
See Also:
IObjParviewDAO.loadObjParview(java.lang.Integer, java.lang.Integer)