it.eng.spagobi.bo.dao.jdbc
Class ParameterDAOImpl

java.lang.Object
  extended byit.eng.spagobi.bo.dao.jdbc.AbstractJdbcDAO
      extended byit.eng.spagobi.bo.dao.jdbc.ParameterDAOImpl
All Implemented Interfaces:
IParameterDAO

public class ParameterDAOImpl
extends AbstractJdbcDAO
implements IParameterDAO

Defines the JDBC implementations for all DAO methods, for a parameter.

Author:
zoppello

Constructor Summary
ParameterDAOImpl()
           
 
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.
 
Methods inherited from class it.eng.spagobi.bo.dao.jdbc.AbstractJdbcDAO
getConnection
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParameterDAOImpl

public ParameterDAOImpl()
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)