it.eng.spagobi.behaviouralmodel.lov.dao
Interface IModalitiesValueDAO

All Superinterfaces:
ISpagoBIDao
All Known Implementing Classes:
LovDAOHibImpl

public interface IModalitiesValueDAO
extends ISpagoBIDao

Defines the interfaces for all methods needed to insert, modify and deleting a LOV value.

Author:
Zoppello

Method Summary
 void eraseModalitiesValue(ModalitiesValue aModalitiesValue)
          Implements the query to erase a value.
 boolean hasParameters(java.lang.String idLov)
          Controls if a value in the predefined LOV is associated or not with a parameter.
 void insertModalitiesValue(ModalitiesValue aModalitiesValue)
          Implements the query to insert a value.
 java.util.List loadAllModalitiesValue()
          Loads all detail information for all values .
 java.util.List loadAllModalitiesValueOrderByCode()
          Select all ModalitiesValue object ordered by code.
 ModalitiesValue loadModalitiesValueByID(java.lang.Integer modalitiesValueID)
          Loads all detail information for an value identified by its modalitiesValueID.
 ModalitiesValue loadModalitiesValueByLabel(java.lang.String label)
          Loads all detail information for a lov by its label.
 void modifyModalitiesValue(ModalitiesValue aModalitiesValue)
          Implements the query to modify a value.
 
Methods inherited from interface it.eng.spagobi.commons.dao.ISpagoBIDao
getUserProfile, setUserID, setUserProfile
 

Method Detail

loadModalitiesValueByID

ModalitiesValue loadModalitiesValueByID(java.lang.Integer modalitiesValueID)
                                        throws it.eng.spago.error.EMFUserError
Loads all detail information for an value identified by its modalitiesValueID. All these information, achived by a query to the DB, are stored into a ModalitiesValue object, which is returned.

Parameters:
modalitiesValueID - The id for the value to load
Returns:
A ModalitiesValue object containing all loaded information
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred

loadModalitiesValueByLabel

ModalitiesValue loadModalitiesValueByLabel(java.lang.String label)
                                           throws it.eng.spago.error.EMFUserError
Loads all detail information for a lov by its label. All these information, achived by a query to the DB, are stored into a ModalitiesValue object, which is returned.

Parameters:
label - The label for the value to load
Returns:
A ModalitiesValue object containing all loaded information
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred

loadAllModalitiesValue

java.util.List loadAllModalitiesValue()
                                      throws it.eng.spago.error.EMFUserError
Loads all detail information for all values . All these information, achived by a query to the DB, are stored into a list of ModalitiesValue objects, which is returned.

Returns:
The list containing all values
Throws:
it.eng.spago.error.EMFUserError - If an exception occurs

modifyModalitiesValue

void modifyModalitiesValue(ModalitiesValue aModalitiesValue)
                           throws it.eng.spago.error.EMFUserError
Implements the query to modify a value. All information needed is stored into the input ModalitiesValue object.

Parameters:
aModalitiesValue - the a modalities value
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred

insertModalitiesValue

void insertModalitiesValue(ModalitiesValue aModalitiesValue)
                           throws it.eng.spago.error.EMFUserError
Implements the query to insert a value. All information needed is stored into the input ModalitiesValue object.

Parameters:
aModalitiesValue - The object containing all insert information
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred

eraseModalitiesValue

void eraseModalitiesValue(ModalitiesValue aModalitiesValue)
                          throws it.eng.spago.error.EMFUserError
Implements the query to erase a value. All information needed is stored into the input ModalitiesValue object.

Parameters:
aModalitiesValue - The object containing all delete information
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred

loadAllModalitiesValueOrderByCode

java.util.List loadAllModalitiesValueOrderByCode()
                                                 throws it.eng.spago.error.EMFUserError
Select all ModalitiesValue object ordered by code.

Returns:
the list
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred

hasParameters

boolean hasParameters(java.lang.String idLov)
                      throws it.eng.spago.error.EMFUserError
Controls if a value in the predefined LOV is associated or not with a parameter. It is useful because a Value can be deleted only if it hasn't any parameter associated.

Parameters:
idLov - The value id
Returns:
True if the value has one or more parameters associated; false if it hasn't any
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred