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

java.lang.Object
  extended by it.eng.spagobi.bo.dao.hibernate.AbstractHibernateDAO
      extended by it.eng.spagobi.bo.dao.hibernate.ParameterDAOHibImpl
All Implemented Interfaces:
IParameterDAO

public class ParameterDAOHibImpl
extends AbstractHibernateDAO
implements IParameterDAO

Defines the Hibernate implementations for all DAO methods, for a parameter

Author:
zoppello

Constructor Summary
ParameterDAOHibImpl()
           
 
Method Summary
 void eraseParameter(Parameter aParameter)
          Implements the query to erase a parameter.
 void insertParameter(Parameter aParameter)
          Implements the query to insert a parameter.
 java.util.List loadAllParameters()
          Loads all detail information for all parameters.
 Parameter loadForDetailByParameterID(java.lang.Integer parameterID)
          Loads all detail information for a parameter identified by its parameterID.
 Parameter loadForExecutionByParameterIDandRoleName(java.lang.Integer parameterID, java.lang.String roleName)
           
 void modifyParameter(Parameter aParameter)
          Implements the query to modify a parameter.
 Parameter toParameter(SbiParameters hibParameters)
          From the hibernate parametes at input, gives the corrispondent Parameter 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

ParameterDAOHibImpl

public ParameterDAOHibImpl()
Method Detail

loadForDetailByParameterID

public Parameter loadForDetailByParameterID(java.lang.Integer parameterID)
                                     throws EMFUserError
Description copied from interface: IParameterDAO
Loads all detail information for a parameter identified by its parameterID. All these information, are stored into a Parameter object, which is returned.

Specified by:
loadForDetailByParameterID in interface IParameterDAO
Parameters:
parameterID - The id for the parameter to load
Returns:
A Parameter object containing all loaded information
Throws:
EMFUserError - If an Exception occurred
See Also:
IParameterDAO.loadForDetailByParameterID(java.lang.Integer)

loadForExecutionByParameterIDandRoleName

public Parameter loadForExecutionByParameterIDandRoleName(java.lang.Integer parameterID,
                                                          java.lang.String roleName)
                                                   throws EMFUserError
Specified by:
loadForExecutionByParameterIDandRoleName in interface IParameterDAO
Throws:
EMFUserError
See Also:
IParameterDAO.loadForExecutionByParameterIDandRoleName(java.lang.Integer, java.lang.String)

loadAllParameters

public java.util.List loadAllParameters()
                                 throws EMFUserError
Description copied from interface: IParameterDAO
Loads all detail information for all parameters. For each of them, detail information is stored into a Parameter object. After that, all parameters are stored into a List, which is returned.

Specified by:
loadAllParameters in interface IParameterDAO
Returns:
A list containing all parameters objects
Throws:
EMFUserError - If an Exception occurred
See Also:
IParameterDAO.loadAllParameters()

modifyParameter

public void modifyParameter(Parameter aParameter)
                     throws EMFUserError
Description copied from interface: IParameterDAO
Implements the query to modify a parameter. All information needed is stored into the input Parameter object.

Specified by:
modifyParameter in interface IParameterDAO
Parameters:
aParameter - The object containing all modify information
Throws:
EMFUserError - If an Exception occurred
See Also:
IParameterDAO.modifyParameter(it.eng.spagobi.bo.Parameter)

insertParameter

public void insertParameter(Parameter aParameter)
                     throws EMFUserError
Description copied from interface: IParameterDAO
Implements the query to insert a parameter. All information needed is stored into the input Parameter object.

Specified by:
insertParameter in interface IParameterDAO
Parameters:
aParameter - The object containing all insert information
Throws:
EMFUserError - If an Exception occurred
See Also:
IParameterDAO.insertParameter(it.eng.spagobi.bo.Parameter)

eraseParameter

public void eraseParameter(Parameter aParameter)
                    throws EMFUserError
Description copied from interface: IParameterDAO
Implements the query to erase a parameter. All information needed is stored into the input Parameter object.

Specified by:
eraseParameter in interface IParameterDAO
Parameters:
aParameter - The object containing all delete information
Throws:
EMFUserError - If an Exception occurred
See Also:
IParameterDAO.eraseParameter(it.eng.spagobi.bo.Parameter)

toParameter

public Parameter toParameter(SbiParameters hibParameters)
From the hibernate parametes at input, gives the corrispondent Parameter object.

Parameters:
hibParameters - The hybernate parameter
Returns:
The corrispondent Parameter object