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

java.lang.Object
  extended by it.eng.spagobi.commons.dao.AbstractHibernateDAO
      extended by it.eng.spagobi.behaviouralmodel.analyticaldriver.dao.BIObjectParameterDAOHibImpl
All Implemented Interfaces:
IBIObjectParameterDAO

public class BIObjectParameterDAOHibImpl
extends AbstractHibernateDAO
implements IBIObjectParameterDAO

Defines the Hibernate implementations for all DAO methods, for a BI Object Parameter.

Author:
Zoppello

Constructor Summary
BIObjectParameterDAOHibImpl()
           
 
Method Summary
 void eraseBIObjectParameter(BIObjectParameter aBIObjectParameter)
          Erase bi object parameter.
 java.util.List getDocumentLabelsListUsingParameter(java.lang.Integer parId)
          Gets the document labels list using parameter.
 void insertBIObjectParameter(BIObjectParameter aBIObjectParameter)
          Insert bi object parameter.
 java.util.List loadBIObjectParametersById(java.lang.Integer biObjectID)
          Load bi object parameters by id.
 SbiObjPar loadById(java.lang.Integer id)
          Load by id.
 BIObjectParameter loadForDetailByObjParId(java.lang.Integer objParId)
          Load for detail by obj par id.
 void modifyBIObjectParameter(BIObjectParameter aBIObjectParameter)
          Modify bi object parameter.
 void recalculateBiParametersPriority(java.lang.Integer biObjectID, org.hibernate.Session aSession)
          Recalculates the priority of all the BiParameters of the document, identified by its biObjectID, in the Hibernate session passed at input.
 BIObjectParameter toBIObjectParameter(SbiObjPar hiObjPar)
          From the hibernate BI object parameter at input, gives the corrispondent BIObjectParameter object.
 
Methods inherited from class it.eng.spagobi.commons.dao.AbstractHibernateDAO
getSession, logException, rollbackIfActiveAndClose
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BIObjectParameterDAOHibImpl

public BIObjectParameterDAOHibImpl()
Method Detail

loadById

public SbiObjPar loadById(java.lang.Integer id)
                   throws it.eng.spago.error.EMFUserError
Load by id.

Specified by:
loadById in interface IBIObjectParameterDAO
Parameters:
id - the id
Returns:
the sbi obj par
Throws:
it.eng.spago.error.EMFUserError - the EMF user error
See Also:
IBIObjectParameterDAO.loadById(java.lang.Integer)

loadForDetailByObjParId

public BIObjectParameter loadForDetailByObjParId(java.lang.Integer objParId)
                                          throws it.eng.spago.error.EMFUserError
Load for detail by obj par id.

Specified by:
loadForDetailByObjParId in interface IBIObjectParameterDAO
Parameters:
objParId - the obj par id
Returns:
the BI object parameter
Throws:
it.eng.spago.error.EMFUserError - the EMF user error
See Also:
IBIObjectParameterDAO.loadForDetailByObjParId(java.lang.Integer)

modifyBIObjectParameter

public void modifyBIObjectParameter(BIObjectParameter aBIObjectParameter)
                             throws it.eng.spago.error.EMFUserError
Modify bi object parameter.

Specified by:
modifyBIObjectParameter in interface IBIObjectParameterDAO
Parameters:
aBIObjectParameter - the a bi object parameter
Throws:
it.eng.spago.error.EMFUserError - the EMF user error
See Also:
IBIObjectParameterDAO.modifyBIObjectParameter(it.eng.spagobi.behaviouralmodel.analyticaldriver.bo.BIObjectParameter)

insertBIObjectParameter

public void insertBIObjectParameter(BIObjectParameter aBIObjectParameter)
                             throws it.eng.spago.error.EMFUserError
Insert bi object parameter.

Specified by:
insertBIObjectParameter in interface IBIObjectParameterDAO
Parameters:
aBIObjectParameter - the a bi object parameter
Throws:
it.eng.spago.error.EMFUserError - the EMF user error
See Also:
IBIObjectParameterDAO.insertBIObjectParameter(it.eng.spagobi.behaviouralmodel.analyticaldriver.bo.BIObjectParameter)

eraseBIObjectParameter

public void eraseBIObjectParameter(BIObjectParameter aBIObjectParameter)
                            throws it.eng.spago.error.EMFUserError
Erase bi object parameter.

Specified by:
eraseBIObjectParameter in interface IBIObjectParameterDAO
Parameters:
aBIObjectParameter - the a bi object parameter
Throws:
it.eng.spago.error.EMFUserError - the EMF user error
See Also:
IBIObjectParameterDAO.eraseBIObjectParameter(it.eng.spagobi.behaviouralmodel.analyticaldriver.bo.BIObjectParameter)

getDocumentLabelsListUsingParameter

public java.util.List getDocumentLabelsListUsingParameter(java.lang.Integer parId)
                                                   throws it.eng.spago.error.EMFUserError
Gets the document labels list using parameter.

Specified by:
getDocumentLabelsListUsingParameter in interface IBIObjectParameterDAO
Parameters:
parId - the par id
Returns:
the document labels list using parameter
Throws:
it.eng.spago.error.EMFUserError - the EMF user error
See Also:
IBIObjectParameterDAO.getDocumentLabelsListUsingParameter(java.lang.Integer)

loadBIObjectParametersById

public java.util.List loadBIObjectParametersById(java.lang.Integer biObjectID)
                                          throws it.eng.spago.error.EMFUserError
Load bi object parameters by id.

Specified by:
loadBIObjectParametersById in interface IBIObjectParameterDAO
Parameters:
biObjectID - the bi object id
Returns:
the list
Throws:
it.eng.spago.error.EMFUserError - the EMF user error
See Also:
IBIObjectParameterDAO.loadBIObjectParametersById(java.lang.Integer)

recalculateBiParametersPriority

public void recalculateBiParametersPriority(java.lang.Integer biObjectID,
                                            org.hibernate.Session aSession)
Recalculates the priority of all the BiParameters of the document, identified by its biObjectID, in the Hibernate session passed at input.

Parameters:
biObjectID - The id of the document
aSession - The Hibernate session

toBIObjectParameter

public BIObjectParameter toBIObjectParameter(SbiObjPar hiObjPar)
From the hibernate BI object parameter at input, gives the corrispondent BIObjectParameter object.

Parameters:
hiObjPar - The hybernate BI object parameter
Returns:
The corrispondent BIObjectParameter