it.eng.spagobi.bo.dao
Interface IParameterUseDAO

All Known Implementing Classes:
ParameterUseDAOHibImpl

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.
 java.util.List getParameterUsesAssociatedToLov(java.lang.Integer lovId)
          Gets the list of parameter uses associated to the lov identified by the lovId at input
 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

ParameterUse loadByUseID(java.lang.Integer useID)
                         throws it.eng.spago.error.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:
it.eng.spago.error.EMFUserError - EMFUserError If an Exception occurred

fillAssociatedChecksForParUse

void fillAssociatedChecksForParUse(ParameterUse aParameterUse)
                                   throws it.eng.spago.error.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:
it.eng.spago.error.EMFUserError - if an Exception occurred.

fillRolesForParUse

void fillRolesForParUse(ParameterUse aParameterUse)
                        throws it.eng.spago.error.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:
it.eng.spago.error.EMFUserError

modifyParameterUse

void modifyParameterUse(ParameterUse aParameterUse)
                        throws it.eng.spago.error.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:
it.eng.spago.error.EMFUserError - If an Exception occurred

insertParameterUse

void insertParameterUse(ParameterUse aParameterUse)
                        throws it.eng.spago.error.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:
it.eng.spago.error.EMFUserError - If an Exception occurred

eraseParameterUse

void eraseParameterUse(ParameterUse aParameterUse)
                       throws it.eng.spago.error.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:
it.eng.spago.error.EMFUserError - If an Exception occurred

hasParUseModes

boolean hasParUseModes(java.lang.String parId)
                       throws it.eng.spago.error.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:
it.eng.spago.error.EMFUserError - If an Exception occurred

loadParametersUseByParId

java.util.List loadParametersUseByParId(java.lang.Integer parId)
                                        throws it.eng.spago.error.EMFUserError
Throws:
it.eng.spago.error.EMFUserError

eraseParameterUseByParId

void eraseParameterUseByParId(java.lang.Integer parId)
                              throws it.eng.spago.error.EMFUserError
Throws:
it.eng.spago.error.EMFUserError

getParameterUsesAssociatedToLov

java.util.List getParameterUsesAssociatedToLov(java.lang.Integer lovId)
                                               throws it.eng.spago.error.EMFUserError
Gets the list of parameter uses associated to the lov identified by the lovId at input

Parameters:
lovId - The integer id of the lov
Returns:
The list of parameter uses associated to the lov identified by the lovId at input
Throws:
it.eng.spago.error.EMFUserError