it.eng.spagobi.behaviouralmodel.analyticaldriver.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)
          Delete all the parameter use modes associated to the input parameter id.
 void eraseParameterUseByParIdSameSession(java.lang.Integer parId, org.hibernate.Session sessionCurrDB)
          Delete from hibernate session a parameter use
 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.
 SbiParuse loadById(java.lang.Integer id)
          Loads all detail information for a parameter use mode identified by its id.
 ParameterUse loadByParameterIdandRole(java.lang.Integer parameterId, java.lang.String roleName)
          Loads all detail information for a parameter use mode identified by a parameter id and a role name.
 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)
          Loads the list of parameter use modes associated to the input parameter id.
 void modifyParameterUse(ParameterUse aParameterUse)
          Implements the query to modify a parameter use mode.
 

Method Detail

loadById

SbiParuse loadById(java.lang.Integer id)
                   throws it.eng.spago.error.EMFUserError
Loads all detail information for a parameter use mode identified by its id. All these information, achived by a query to the DB, are stored into aSbiParuse object, which is returned.

Parameters:
id - The id for the parameter use mode to load
Returns:
A SbiParuse object containing all loaded information
Throws:
it.eng.spago.error.EMFUserError - EMFUserError If an Exception occurred

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

loadByParameterIdandRole

ParameterUse loadByParameterIdandRole(java.lang.Integer parameterId,
                                      java.lang.String roleName)
                                      throws it.eng.spago.error.EMFUserError
Loads all detail information for a parameter use mode identified by a parameter id and a role name. All these information, achived by a query to the DB, are stored into aParameterUse object, which is returned.

Parameters:
parameterId - The id for the parameter associated
roleName - The role name associated
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 a parameter use
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 - the a parameter use
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

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
Loads the list of parameter use modes associated to the input parameter id.

Parameters:
parId - the par id
Returns:
A list of ParameterUse objects
Throws:
it.eng.spago.error.EMFUserError - EMFUserError If an Exception occurred

eraseParameterUseByParId

void eraseParameterUseByParId(java.lang.Integer parId)
                              throws it.eng.spago.error.EMFUserError
Delete all the parameter use modes associated to the input parameter id.

Parameters:
parId - the par id
Throws:
it.eng.spago.error.EMFUserError - EMFUserError If an Exception occurred

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 - the EMF user error

eraseParameterUseByParIdSameSession

void eraseParameterUseByParIdSameSession(java.lang.Integer parId,
                                         org.hibernate.Session sessionCurrDB)
                                         throws it.eng.spago.error.EMFUserError
Delete from hibernate session a parameter use

Parameters:
Session - hibernate Session
Throws:
it.eng.spago.error.EMFUserError - the EMF user error