it.eng.spagobi.kpi.config.dao
Class KpiInstanceDAOImpl

java.lang.Object
  extended by it.eng.spagobi.commons.dao.AbstractHibernateDAO
      extended by it.eng.spagobi.kpi.config.dao.KpiInstanceDAOImpl
All Implemented Interfaces:
IKpiInstanceDAO

public class KpiInstanceDAOImpl
extends AbstractHibernateDAO
implements IKpiInstanceDAO


Constructor Summary
KpiInstanceDAOImpl()
           
 
Method Summary
 java.lang.String getChartType(java.lang.Integer kpiInstanceID)
           
 java.util.List getThresholds(KpiInstance k)
          Returns a List of all the the Threshols of the KpiInstance
 java.lang.Boolean isKpiInstUnderAlramControl(java.lang.Integer kpiInstID)
           
 java.util.List<KpiAlarmInstance> loadKpiAlarmInstances()
           
 KpiInstance loadKpiInstanceById(java.lang.Integer id)
          Returns the KpiInstance of the referred id
 KpiInstance loadKpiInstanceByIdFromHistory(java.lang.Integer id, java.util.Date d)
          Returns the KpiInstance with id 'id' that was valid in date d
 SbiKpiInstance loadSbiKpiInstanceById(java.lang.Integer id)
          Returns the SbiKpiInstance of the referred id
 void setKpiInstanceFromKPI(KpiInstance kpiInstance, java.lang.Integer kpiId)
           
 KpiInstance toKpiInstance(SbiKpiInstance kpiInst)
           
 
Methods inherited from class it.eng.spagobi.commons.dao.AbstractHibernateDAO
getSession, logException, rollbackIfActiveAndClose
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KpiInstanceDAOImpl

public KpiInstanceDAOImpl()
Method Detail

loadKpiInstanceById

public KpiInstance loadKpiInstanceById(java.lang.Integer id)
                                throws it.eng.spago.error.EMFUserError
Description copied from interface: IKpiInstanceDAO
Returns the KpiInstance of the referred id

Specified by:
loadKpiInstanceById in interface IKpiInstanceDAO
Parameters:
id - of the KpiInstance
Returns:
KpiInstance of the referred id
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred

getChartType

public java.lang.String getChartType(java.lang.Integer kpiInstanceID)
                              throws it.eng.spago.error.EMFUserError
Specified by:
getChartType in interface IKpiInstanceDAO
Throws:
it.eng.spago.error.EMFUserError

isKpiInstUnderAlramControl

public java.lang.Boolean isKpiInstUnderAlramControl(java.lang.Integer kpiInstID)
                                             throws it.eng.spago.error.EMFUserError
Specified by:
isKpiInstUnderAlramControl in interface IKpiInstanceDAO
Throws:
it.eng.spago.error.EMFUserError

setKpiInstanceFromKPI

public void setKpiInstanceFromKPI(KpiInstance kpiInstance,
                                  java.lang.Integer kpiId)
                           throws it.eng.spago.error.EMFUserError
Specified by:
setKpiInstanceFromKPI in interface IKpiInstanceDAO
Throws:
it.eng.spago.error.EMFUserError

loadKpiInstanceByIdFromHistory

public KpiInstance loadKpiInstanceByIdFromHistory(java.lang.Integer id,
                                                  java.util.Date d)
                                           throws it.eng.spago.error.EMFUserError
Description copied from interface: IKpiInstanceDAO
Returns the KpiInstance with id 'id' that was valid in date d

Specified by:
loadKpiInstanceByIdFromHistory in interface IKpiInstanceDAO
Parameters:
id - of the KpiInstance
Returns:
KpiInstance of the referred id valid in date d
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred

toKpiInstance

public KpiInstance toKpiInstance(SbiKpiInstance kpiInst)
                          throws it.eng.spago.error.EMFUserError
Specified by:
toKpiInstance in interface IKpiInstanceDAO
Throws:
it.eng.spago.error.EMFUserError

getThresholds

public java.util.List getThresholds(KpiInstance k)
                             throws it.eng.spago.error.EMFUserError
Description copied from interface: IKpiInstanceDAO
Returns a List of all the the Threshols of the KpiInstance

Specified by:
getThresholds in interface IKpiInstanceDAO
Returns:
List of all the the Threshols of the KpiInstance
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred

loadKpiAlarmInstances

public java.util.List<KpiAlarmInstance> loadKpiAlarmInstances()
                                                       throws it.eng.spago.error.EMFUserError
Specified by:
loadKpiAlarmInstances in interface IKpiInstanceDAO
Throws:
it.eng.spago.error.EMFUserError

loadSbiKpiInstanceById

public SbiKpiInstance loadSbiKpiInstanceById(java.lang.Integer id)
                                      throws it.eng.spago.error.EMFUserError
Description copied from interface: IKpiInstanceDAO
Returns the SbiKpiInstance of the referred id

Specified by:
loadSbiKpiInstanceById in interface IKpiInstanceDAO
Parameters:
id - of the KpiInstance
Returns:
KpiInstance of the referred id
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred