it.eng.spagobi.behaviouralmodel.lov.dao
Class LovDAOHibImpl

java.lang.Object
  extended by it.eng.spagobi.commons.dao.AbstractHibernateDAO
      extended by it.eng.spagobi.behaviouralmodel.lov.dao.LovDAOHibImpl
All Implemented Interfaces:
IModalitiesValueDAO, ISpagoBIDao

public class LovDAOHibImpl
extends AbstractHibernateDAO
implements IModalitiesValueDAO

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

Author:
sulis

Constructor Summary
LovDAOHibImpl()
           
 
Method Summary
 void eraseModalitiesValue(ModalitiesValue aModalitiesValue)
          Erase modalities value.
 boolean hasParameters(java.lang.String lovId)
          Checks for parameters.
 void insertModalitiesValue(ModalitiesValue aModalitiesValue)
          Insert modalities value.
 java.util.List loadAllModalitiesValue()
          Load all modalities value.
 java.util.List loadAllModalitiesValueOrderByCode()
          Load all modalities value order by code.
 ModalitiesValue loadModalitiesValueByID(java.lang.Integer modalitiesValueID)
          Load modalities value by id.
 ModalitiesValue loadModalitiesValueByLabel(java.lang.String label)
          Load modalities value by label.
 void modifyModalitiesValue(ModalitiesValue aModalitiesValue)
          Modify modalities value.
 
Methods inherited from class it.eng.spagobi.commons.dao.AbstractHibernateDAO
commitIfActiveAndClose, getSession, getUserProfile, logException, rollbackIfActiveAndClose, setUserID, setUserProfile, updateSbiCommonInfo4Insert, updateSbiCommonInfo4Update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface it.eng.spagobi.commons.dao.ISpagoBIDao
getUserProfile, setUserID, setUserProfile
 

Constructor Detail

LovDAOHibImpl

public LovDAOHibImpl()
Method Detail

loadModalitiesValueByID

public ModalitiesValue loadModalitiesValueByID(java.lang.Integer modalitiesValueID)
                                        throws it.eng.spago.error.EMFUserError
Load modalities value by id.

Specified by:
loadModalitiesValueByID in interface IModalitiesValueDAO
Parameters:
modalitiesValueID - the modalities value id
Returns:
the modalities value
Throws:
it.eng.spago.error.EMFUserError - the EMF user error
See Also:
IModalitiesValueDAO.loadModalitiesValueByID(Integer)

loadModalitiesValueByLabel

public ModalitiesValue loadModalitiesValueByLabel(java.lang.String label)
                                           throws it.eng.spago.error.EMFUserError
Load modalities value by label.

Specified by:
loadModalitiesValueByLabel in interface IModalitiesValueDAO
Parameters:
label - the label
Returns:
the modalities value
Throws:
it.eng.spago.error.EMFUserError - the EMF user error
See Also:
IModalitiesValueDAO.loadModalitiesValueByID(Integer)

modifyModalitiesValue

public void modifyModalitiesValue(ModalitiesValue aModalitiesValue)
                           throws it.eng.spago.error.EMFUserError
Modify modalities value.

Specified by:
modifyModalitiesValue in interface IModalitiesValueDAO
Parameters:
aModalitiesValue - the a modalities value
Throws:
it.eng.spago.error.EMFUserError - the EMF user error
See Also:
IModalitiesValueDAO.modifyModalitiesValue(it.eng.spagobi.behaviouralmodel.lov.bo.ModalitiesValue)

insertModalitiesValue

public void insertModalitiesValue(ModalitiesValue aModalitiesValue)
                           throws it.eng.spago.error.EMFUserError
Insert modalities value.

Specified by:
insertModalitiesValue in interface IModalitiesValueDAO
Parameters:
aModalitiesValue - the a modalities value
Throws:
it.eng.spago.error.EMFUserError - the EMF user error
See Also:
IModalitiesValueDAO.insertModalitiesValue(it.eng.spagobi.behaviouralmodel.lov.bo.ModalitiesValue)

eraseModalitiesValue

public void eraseModalitiesValue(ModalitiesValue aModalitiesValue)
                          throws it.eng.spago.error.EMFUserError
Erase modalities value.

Specified by:
eraseModalitiesValue in interface IModalitiesValueDAO
Parameters:
aModalitiesValue - the a modalities value
Throws:
it.eng.spago.error.EMFUserError - the EMF user error
See Also:
IModalitiesValueDAO.eraseModalitiesValue(it.eng.spagobi.behaviouralmodel.lov.bo.ModalitiesValue)

loadAllModalitiesValue

public java.util.List loadAllModalitiesValue()
                                      throws it.eng.spago.error.EMFUserError
Load all modalities value.

Specified by:
loadAllModalitiesValue in interface IModalitiesValueDAO
Returns:
the list
Throws:
it.eng.spago.error.EMFUserError - the EMF user error
See Also:
IModalitiesValueDAO.loadAllModalitiesValue()

loadAllModalitiesValueOrderByCode

public java.util.List loadAllModalitiesValueOrderByCode()
                                                 throws it.eng.spago.error.EMFUserError
Load all modalities value order by code.

Specified by:
loadAllModalitiesValueOrderByCode in interface IModalitiesValueDAO
Returns:
the list
Throws:
it.eng.spago.error.EMFUserError - the EMF user error
See Also:
IModalitiesValueDAO.loadAllModalitiesValueOrderByCode()

hasParameters

public boolean hasParameters(java.lang.String lovId)
                      throws it.eng.spago.error.EMFUserError
Checks for parameters.

Specified by:
hasParameters in interface IModalitiesValueDAO
Parameters:
lovId - the lov id
Returns:
true, if checks for parameters
Throws:
it.eng.spago.error.EMFUserError - the EMF user error
See Also:
IModalitiesValueDAO.hasParameters(java.lang.String)