it.eng.spagobi.bo.dao.hibernate
Class BIObjectParameterDAOHibImpl

java.lang.Object
  extended by it.eng.spagobi.bo.dao.hibernate.AbstractHibernateDAO
      extended by it.eng.spagobi.bo.dao.hibernate.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)
          Implements the query to erase a BIObjectParameter.
 java.util.List getDocumentLabelsListUsingParameter(java.lang.Integer parId)
          Returns the labels list of document using the parameter identified by the id at input
 void insertBIObjectParameter(BIObjectParameter aBIObjectParameter)
          Implements the query to insert a BI Object Parameter.
 java.util.List loadBIObjectParametersById(java.lang.Integer biObjectID)
          Returns the list of all BIObject parameters associated to a BIObject, known its biObjectID>/code>
 BIObjectParameter loadForDetailByObjParId(java.lang.Integer objParId)
          Loads all detail information for a BI Object Parameter identified by its objParId.
 void modifyBIObjectParameter(BIObjectParameter aBIObjectParameter)
          Implements the query to modify a 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.bo.dao.hibernate.AbstractHibernateDAO
getSession, logException
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BIObjectParameterDAOHibImpl

public BIObjectParameterDAOHibImpl()
Method Detail

loadForDetailByObjParId

public BIObjectParameter loadForDetailByObjParId(java.lang.Integer objParId)
                                          throws it.eng.spago.error.EMFUserError
Description copied from interface: IBIObjectParameterDAO
Loads all detail information for a BI Object Parameter identified by its objParId. All these information, achived by a query to the DB, are stored into a BIObjectParameter object, which is returned.

Specified by:
loadForDetailByObjParId in interface IBIObjectParameterDAO
Parameters:
objParId - The id for the BI object parameter to load
Returns:
A BIObjectParameter object containing all loaded information
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred
See Also:
IBIObjectParameterDAO.loadForDetailByObjParId(java.lang.Integer)

modifyBIObjectParameter

public void modifyBIObjectParameter(BIObjectParameter aBIObjectParameter)
                             throws it.eng.spago.error.EMFUserError
Description copied from interface: IBIObjectParameterDAO
Implements the query to modify a BI Object parameter. All information needed is stored into the input BIObjectParameter object.

Specified by:
modifyBIObjectParameter in interface IBIObjectParameterDAO
Parameters:
aBIObjectParameter - The object containing all modify information
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred
See Also:
IBIObjectParameterDAO.modifyBIObjectParameter(it.eng.spagobi.bo.BIObjectParameter)

insertBIObjectParameter

public void insertBIObjectParameter(BIObjectParameter aBIObjectParameter)
                             throws it.eng.spago.error.EMFUserError
Description copied from interface: IBIObjectParameterDAO
Implements the query to insert a BI Object Parameter. All information needed is stored into the input BIObjectParameter object.

Specified by:
insertBIObjectParameter in interface IBIObjectParameterDAO
Parameters:
aBIObjectParameter - The object containing all insert information
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred
See Also:
IBIObjectParameterDAO.insertBIObjectParameter(it.eng.spagobi.bo.BIObjectParameter)

eraseBIObjectParameter

public void eraseBIObjectParameter(BIObjectParameter aBIObjectParameter)
                            throws it.eng.spago.error.EMFUserError
Description copied from interface: IBIObjectParameterDAO
Implements the query to erase a BIObjectParameter. All information needed is stored into the input aBIObjectParameter object.

Specified by:
eraseBIObjectParameter in interface IBIObjectParameterDAO
Parameters:
aBIObjectParameter - The object containing all delete information
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred
See Also:
IBIObjectParameterDAO.eraseBIObjectParameter(it.eng.spagobi.bo.BIObjectParameter)

getDocumentLabelsListUsingParameter

public java.util.List getDocumentLabelsListUsingParameter(java.lang.Integer parId)
                                                   throws it.eng.spago.error.EMFUserError
Description copied from interface: IBIObjectParameterDAO
Returns the labels list of document using the parameter identified by the id at input

Specified by:
getDocumentLabelsListUsingParameter in interface IBIObjectParameterDAO
Parameters:
parId - The BI object Parameter id
Returns:
The labels lis
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred
See Also:
IBIObjectParameterDAO.getDocumentLabelsListUsingParameter(java.lang.Integer)

loadBIObjectParametersById

public java.util.List loadBIObjectParametersById(java.lang.Integer biObjectID)
                                          throws it.eng.spago.error.EMFUserError
Description copied from interface: IBIObjectParameterDAO
Returns the list of all BIObject parameters associated to a BIObject, known its biObjectID>/code>

Specified by:
loadBIObjectParametersById in interface IBIObjectParameterDAO
Parameters:
biObjectID - The input BI object id code
Returns:
The list of all BI Object Parameters associated
Throws:
it.eng.spago.error.EMFUserError - If any exception occurred
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