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

java.lang.Object
  extended by it.eng.spagobi.bo.dao.jdbc.AbstractJdbcDAO
      extended by it.eng.spagobi.bo.dao.jdbc.ModalitiesValueDAOImpl
All Implemented Interfaces:
IModalitiesValueDAO

public class ModalitiesValueDAOImpl
extends AbstractJdbcDAO
implements IModalitiesValueDAO

Defines the JDBC implementations for all DAO methods, for a list of values.

Author:
zoppello

Constructor Summary
ModalitiesValueDAOImpl()
           
 
Method Summary
 void erase(java.lang.Object obj)
           
 void eraseModalitiesValue(ModalitiesValue aModalitiesValue)
          Implements the query to erase a value.
 boolean hasParameters(java.lang.String lovId)
          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
 java.lang.String loadLovId(java.lang.String name)
          Gives a list of values id known its name.
 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 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

ModalitiesValueDAOImpl

public ModalitiesValueDAOImpl()
Method Detail

loadAllModalitiesValue

public java.util.List loadAllModalitiesValue()
                                      throws EMFUserError
Description copied from interface: IModalitiesValueDAO
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.

Specified by:
loadAllModalitiesValue in interface IModalitiesValueDAO
Returns:
The list containing all values
Throws:
EMFUserError - If an exception occurs
See Also:
IModalitiesValueDAO.loadModalitiesValueByID(java.lang.Integer)

loadModalitiesValueByID

public ModalitiesValue loadModalitiesValueByID(java.lang.Integer modalitiesValueID)
                                        throws EMFUserError
Description copied from interface: IModalitiesValueDAO
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.

Specified by:
loadModalitiesValueByID in interface IModalitiesValueDAO
Parameters:
modalitiesValueID - The id for the value to load
Returns:
A ModalitiesValue object containing all loaded information
Throws:
EMFUserError - If an Exception occurred
See Also:
IModalitiesValueDAO.loadAllModalitiesValue()

modifyModalitiesValue

public void modifyModalitiesValue(ModalitiesValue aModalitiesValue)
                           throws EMFUserError
Description copied from interface: IModalitiesValueDAO
Implements the query to modify a value. All information needed is stored into the input ModalitiesValue object.

Specified by:
modifyModalitiesValue in interface IModalitiesValueDAO
Parameters:
aModalitiesValue - The object containing all modify information
Throws:
EMFUserError - If an Exception occurred
See Also:
IModalitiesValueDAO.modifyModalitiesValue(it.eng.spagobi.bo.ModalitiesValue)

insertModalitiesValue

public void insertModalitiesValue(ModalitiesValue aModalitiesValue)
                           throws EMFUserError
Description copied from interface: IModalitiesValueDAO
Implements the query to insert a value. All information needed is stored into the input ModalitiesValue object.

Specified by:
insertModalitiesValue in interface IModalitiesValueDAO
Parameters:
aModalitiesValue - The object containing all insert information
Throws:
EMFUserError - If an Exception occurred
See Also:
IModalitiesValueDAO.insertModalitiesValue(it.eng.spagobi.bo.ModalitiesValue)

eraseModalitiesValue

public void eraseModalitiesValue(ModalitiesValue aModalitiesValue)
                          throws EMFUserError
Description copied from interface: IModalitiesValueDAO
Implements the query to erase a value. All information needed is stored into the input ModalitiesValue object.

Specified by:
eraseModalitiesValue in interface IModalitiesValueDAO
Parameters:
aModalitiesValue - The object containing all delete information
Throws:
EMFUserError - If an Exception occurred
See Also:
IModalitiesValueDAO.eraseModalitiesValue(it.eng.spagobi.bo.ModalitiesValue)

erase

public void erase(java.lang.Object obj)
           throws EMFUserError
Throws:
EMFUserError

loadLovId

public java.lang.String loadLovId(java.lang.String name)
                           throws EMFUserError
Gives a list of values id known its name.

Parameters:
name - The String representing the lov name
Returns:
A string representing the lov ID
Throws:
EMFUserError - If any Exception occurred

loadAllModalitiesValueOrderByCode

public java.util.List loadAllModalitiesValueOrderByCode()
                                                 throws EMFUserError
Description copied from interface: IModalitiesValueDAO
Select all ModalitiesValue object ordered by code

Specified by:
loadAllModalitiesValueOrderByCode in interface IModalitiesValueDAO
Throws:
EMFUserError - If an Exception occurred
See Also:
IModalitiesValueDAO.loadAllModalitiesValueOrderByCode()

hasParameters

public boolean hasParameters(java.lang.String lovId)
                      throws EMFUserError
Description copied from interface: IModalitiesValueDAO
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.

Specified by:
hasParameters in interface IModalitiesValueDAO
Parameters:
lovId - The value id
Returns:
True if the value has one or more parameters associated; false if it hasn't any
Throws:
EMFUserError - If an Exception occurred
See Also:
IModalitiesValueDAO.hasParameters(java.lang.String)

loadModalitiesValueByLabel

public ModalitiesValue loadModalitiesValueByLabel(java.lang.String label)
                                           throws EMFUserError
Description copied from interface: IModalitiesValueDAO
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.

Specified by:
loadModalitiesValueByLabel in interface IModalitiesValueDAO
Parameters:
label - The label for the value to load
Returns:
A ModalitiesValue object containing all loaded information
Throws:
EMFUserError - If an Exception occurred