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.
 boolean hasObjParameters(java.lang.String parId)
          Controls if a BI object parameter has one or more parameters associated.
 void insertBIObjectParameter(BIObjectParameter aBIObjectParameter)
          Implements the query to insert a BI Object Parameter.
 BIObjectParameter loadBIObjectParameterForDetail(java.lang.Integer biObjectID, java.lang.Integer paramaterID)
          Loads all detail information for a BI Object Parameter identified by its biObjectId and by its parameterID.
 java.util.List loadBIObjectParametersById(java.lang.Integer biObjectID)
          Returns the list of all BIObject parameters associated to a BIObject, known its biObjectID>/code>
 void modifyBIObjectParameter(BIObjectParameter aBIObjectParameter)
          Implements the query to modify a BI Object parameter.
 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

loadBIObjectParameterForDetail

public BIObjectParameter loadBIObjectParameterForDetail(java.lang.Integer biObjectID,
                                                        java.lang.Integer paramaterID)
                                                 throws EMFUserError
Description copied from interface: IBIObjectParameterDAO
Loads all detail information for a BI Object Parameter identified by its biObjectId and by its parameterID. All these information, achived by a query to the DB, are stored into a BIObjectParameter object, which is returned.

Specified by:
loadBIObjectParameterForDetail in interface IBIObjectParameterDAO
Parameters:
biObjectID - The id for the BI object parameter to load
paramaterID - The parameter-id for the BI object parameter to load
Returns:
A BIObjectParameter object containing all loaded information
Throws:
EMFUserError - If an Exception occurred
See Also:
IBIObjectParameterDAO.loadBIObjectParameterForDetail(java.lang.Integer, java.lang.Integer)

modifyBIObjectParameter

public void modifyBIObjectParameter(BIObjectParameter aBIObjectParameter)
                             throws 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:
EMFUserError - If an Exception occurred
See Also:
IBIObjectParameterDAO.modifyBIObjectParameter(it.eng.spagobi.bo.BIObjectParameter)

insertBIObjectParameter

public void insertBIObjectParameter(BIObjectParameter aBIObjectParameter)
                             throws 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:
EMFUserError - If an Exception occurred
See Also:
IBIObjectParameterDAO.insertBIObjectParameter(it.eng.spagobi.bo.BIObjectParameter)

eraseBIObjectParameter

public void eraseBIObjectParameter(BIObjectParameter aBIObjectParameter)
                            throws 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:
EMFUserError - If an Exception occurred
See Also:
IBIObjectParameterDAO.eraseBIObjectParameter(it.eng.spagobi.bo.BIObjectParameter)

hasObjParameters

public boolean hasObjParameters(java.lang.String parId)
                         throws EMFUserError
Description copied from interface: IBIObjectParameterDAO
Controls if a BI object parameter has one or more parameters associated. It is useful because a parameter cannot be erased if it has some BIObjects parameters associated

Specified by:
hasObjParameters in interface IBIObjectParameterDAO
Parameters:
parId - The BI object Parameter id
Returns:
True if there are parameters associaated, else false
Throws:
EMFUserError - If an Exception occurred
See Also:
IBIObjectParameterDAO.hasObjParameters(java.lang.String)

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

loadBIObjectParametersById

public java.util.List loadBIObjectParametersById(java.lang.Integer biObjectID)
                                          throws 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:
EMFUserError - If any exception occurred
See Also:
IBIObjectParameterDAO.loadBIObjectParametersById(java.lang.Integer)