it.eng.spagobi.kpi.threshold.dao
Class ThresholdValueDAOImpl

java.lang.Object
  extended by it.eng.spagobi.commons.dao.AbstractHibernateDAO
      extended by it.eng.spagobi.kpi.threshold.dao.ThresholdValueDAOImpl
All Implemented Interfaces:
ISpagoBIDao, IThresholdValueDAO

public class ThresholdValueDAOImpl
extends AbstractHibernateDAO
implements IThresholdValueDAO


Field Summary
 
Fields inherited from class it.eng.spagobi.commons.dao.AbstractHibernateDAO
TENANT_FILTER_NAME
 
Constructor Summary
ThresholdValueDAOImpl()
           
 
Method Summary
 boolean deleteThresholdValue(java.lang.Integer thresholdValueId)
           
 java.util.List getThresholdValues(KpiInstance k)
           
 java.lang.Integer insertThresholdValue(ThresholdValue toCreate)
           
 SbiThresholdValue loadSbiThresholdValueById(java.lang.Integer id)
           
 ThresholdValue loadThresholdValueById(java.lang.Integer id)
           
 java.util.List loadThresholdValueList(java.lang.Integer thresholdId, java.lang.String fieldOrder, java.lang.String typeOrder)
           
 java.util.List loadThresholdValuesByThresholdId(java.lang.Integer id)
           
 void modifyThresholdValue(ThresholdValue thresholdValue)
           
 java.lang.Integer saveOrUpdateThresholdValue(ThresholdValue thresholdValue)
           
 ThresholdValue toThresholdValue(SbiThresholdValue t)
           
 
Methods inherited from class it.eng.spagobi.commons.dao.AbstractHibernateDAO
commitIfActiveAndClose, disableTenantFilter, enableTenantFilter, getSession, getTenant, getUserProfile, logException, rollbackIfActiveAndClose, setTenant, 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, setTenant, setUserID, setUserProfile
 

Constructor Detail

ThresholdValueDAOImpl

public ThresholdValueDAOImpl()
Method Detail

loadThresholdValuesByThresholdId

public java.util.List loadThresholdValuesByThresholdId(java.lang.Integer id)
                                                throws it.eng.spago.error.EMFUserError
Specified by:
loadThresholdValuesByThresholdId in interface IThresholdValueDAO
Throws:
it.eng.spago.error.EMFUserError

getThresholdValues

public java.util.List getThresholdValues(KpiInstance k)
                                  throws it.eng.spago.error.EMFUserError
Specified by:
getThresholdValues in interface IThresholdValueDAO
Throws:
it.eng.spago.error.EMFUserError

loadThresholdValueList

public java.util.List loadThresholdValueList(java.lang.Integer thresholdId,
                                             java.lang.String fieldOrder,
                                             java.lang.String typeOrder)
                                      throws it.eng.spago.error.EMFUserError
Specified by:
loadThresholdValueList in interface IThresholdValueDAO
Throws:
it.eng.spago.error.EMFUserError

loadThresholdValueById

public ThresholdValue loadThresholdValueById(java.lang.Integer id)
                                      throws it.eng.spago.error.EMFUserError
Specified by:
loadThresholdValueById in interface IThresholdValueDAO
Throws:
it.eng.spago.error.EMFUserError

loadSbiThresholdValueById

public SbiThresholdValue loadSbiThresholdValueById(java.lang.Integer id)
                                            throws it.eng.spago.error.EMFUserError
Specified by:
loadSbiThresholdValueById in interface IThresholdValueDAO
Throws:
it.eng.spago.error.EMFUserError

modifyThresholdValue

public void modifyThresholdValue(ThresholdValue thresholdValue)
                          throws it.eng.spago.error.EMFUserError
Specified by:
modifyThresholdValue in interface IThresholdValueDAO
Throws:
it.eng.spago.error.EMFUserError

saveOrUpdateThresholdValue

public java.lang.Integer saveOrUpdateThresholdValue(ThresholdValue thresholdValue)
                                             throws it.eng.spago.error.EMFUserError
Specified by:
saveOrUpdateThresholdValue in interface IThresholdValueDAO
Throws:
it.eng.spago.error.EMFUserError

insertThresholdValue

public java.lang.Integer insertThresholdValue(ThresholdValue toCreate)
                                       throws it.eng.spago.error.EMFUserError
Specified by:
insertThresholdValue in interface IThresholdValueDAO
Throws:
it.eng.spago.error.EMFUserError

deleteThresholdValue

public boolean deleteThresholdValue(java.lang.Integer thresholdValueId)
                             throws it.eng.spago.error.EMFUserError
Specified by:
deleteThresholdValue in interface IThresholdValueDAO
Throws:
it.eng.spago.error.EMFUserError

toThresholdValue

public ThresholdValue toThresholdValue(SbiThresholdValue t)
Specified by:
toThresholdValue in interface IThresholdValueDAO