it.eng.spagobi.bo.dao
Interface IParameterUseDAO

All Known Implementing Classes:
ParameterUseDAOHibImpl, ParameterUseDAOImpl

public interface IParameterUseDAO

Defines the interfaces for all methods needed to insert, modify and deleting a parameter use mode.

Author:
zoppello

Method Summary
 void eraseParameterUse(ParameterUse aParameterUse)
          Implements the query to erase a ParameterUse mode.
 void eraseParameterUseByParId(java.lang.Integer parId)
           
 void fillAssociatedChecksForParUse(ParameterUse aParameterUse)
          Given at input a ParameterUse objects, asks for all possible Checks associated whith it and fills the AssociatedChecks object's list.
 void fillRolesForParUse(ParameterUse aParameterUse)
          Given at input a ParameterUse objects, asks for all possible Roles associated whith it and fills the ListRoles object's list.
 boolean hasParUseModes(java.lang.String parId)
          Controls if a parameter has some use modes associated or not.
 void insertParameterUse(ParameterUse aParameterUse)
          Implements the query to insert a parameter use mode.
 ParameterUse loadByUseID(java.lang.Integer useID)
          Loads all detail information for a parameter use mode identified by its useID.
 java.util.List loadParametersUseByParId(java.lang.Integer parId)
           
 void modifyParameterUse(ParameterUse aParameterUse)
          Implements the query to modify a parameter use mode.
 

Method Detail

loadByUseID

public ParameterUse loadByUseID(java.lang.Integer useID)
                         throws EMFUserError
Loads all detail information for a parameter use mode identified by its useID. All these information, achived by a query to the DB, are stored into aParameterUse object, which is returned.

Parameters:
useID - The id for the parameter use mode to load
Returns:
A ParameterUse object containing all loaded information
Throws:
EMFUserError - EMFUserError If an Exception occurred

fillAssociatedChecksForParUse

public void fillAssociatedChecksForParUse(ParameterUse aParameterUse)
                                   throws EMFUserError
Given at input a ParameterUse objects, asks for all possible Checks associated whith it and fills the AssociatedChecks object's list.

Parameters:
aParameterUse - The ParameterUse object to fill the Checks list in
Throws:
EMFUserError - if an Exception occurred.

fillRolesForParUse

public void fillRolesForParUse(ParameterUse aParameterUse)
                        throws EMFUserError
Given at input a ParameterUse objects, asks for all possible Roles associated whith it and fills the ListRoles object's list.

Parameters:
aParameterUse -
Throws:
EMFUserError

modifyParameterUse

public void modifyParameterUse(ParameterUse aParameterUse)
                        throws EMFUserError
Implements the query to modify a parameter use mode. All information needed is stored into the input ParameterUse object.

Parameters:
aParameterUse - The object containing all modify information
Throws:
EMFUserError - If an Exception occurred

insertParameterUse

public void insertParameterUse(ParameterUse aParameterUse)
                        throws EMFUserError
Implements the query to insert a parameter use mode. All information needed is stored into the input ParameterUse object.

Parameters:
aParameterUse - The object containing all insert information
Throws:
EMFUserError - If an Exception occurred

eraseParameterUse

public void eraseParameterUse(ParameterUse aParameterUse)
                       throws EMFUserError
Implements the query to erase a ParameterUse mode. All information needed is stored into the input ParameterUse object.

Parameters:
aParameterUse - The object containing all erase information
Throws:
EMFUserError - If an Exception occurred

hasParUseModes

public boolean hasParUseModes(java.lang.String parId)
                       throws EMFUserError
Controls if a parameter has some use modes associated or not. It is useful because a parameter can be deleted only if it hasn't any use mode associated.

Parameters:
parId - The parameter id
Returns:
True if the parameter has one or more modes associated; false if it hasn't any
Throws:
EMFUserError - If an Exception occurred

loadParametersUseByParId

public java.util.List loadParametersUseByParId(java.lang.Integer parId)
                                        throws EMFUserError
Throws:
EMFUserError

eraseParameterUseByParId

public void eraseParameterUseByParId(java.lang.Integer parId)
                              throws EMFUserError
Throws:
EMFUserError