it.eng.spagobi.kpi.config.dao
Interface IKpiInstanceDAO

All Superinterfaces:
ISpagoBIDao
All Known Implementing Classes:
KpiInstanceDAOImpl

public interface IKpiInstanceDAO
extends ISpagoBIDao


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<SbiKpiComments> loadCommentsByKpiInstanceId(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
 java.lang.Integer saveKpiComment(java.lang.Integer idKpiInstance, java.lang.String comment, java.lang.String owner)
           
 void setKpiInstanceFromKPI(KpiInstance kpiInstance, java.lang.Integer kpiId)
           
 KpiInstance toKpiInstance(SbiKpiInstance kpiInst)
           
 
Methods inherited from interface it.eng.spagobi.commons.dao.ISpagoBIDao
getUserProfile, setUserID, setUserProfile
 

Method Detail

loadKpiInstanceById

KpiInstance loadKpiInstanceById(java.lang.Integer id)
                                throws it.eng.spago.error.EMFUserError
Returns the KpiInstance of the referred id

Parameters:
id - of the KpiInstance
Returns:
KpiInstance of the referred id
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred

loadSbiKpiInstanceById

SbiKpiInstance loadSbiKpiInstanceById(java.lang.Integer id)
                                      throws it.eng.spago.error.EMFUserError
Returns the SbiKpiInstance of the referred id

Parameters:
id - of the KpiInstance
Returns:
KpiInstance of the referred id
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred

loadKpiInstanceByIdFromHistory

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

Parameters:
id - of the KpiInstance
Date - of when the KpiInstance has to be valid
Returns:
KpiInstance of the referred id valid in date d
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred

getThresholds

java.util.List getThresholds(KpiInstance k)
                             throws it.eng.spago.error.EMFUserError
Returns a List of all the the Threshols of the KpiInstance

Parameters:
KpiInstance - k
Returns:
List of all the the Threshols of the KpiInstance
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred

toKpiInstance

KpiInstance toKpiInstance(SbiKpiInstance kpiInst)
                          throws it.eng.spago.error.EMFUserError
Throws:
it.eng.spago.error.EMFUserError

setKpiInstanceFromKPI

void setKpiInstanceFromKPI(KpiInstance kpiInstance,
                           java.lang.Integer kpiId)
                           throws it.eng.spago.error.EMFUserError
Throws:
it.eng.spago.error.EMFUserError

isKpiInstUnderAlramControl

java.lang.Boolean isKpiInstUnderAlramControl(java.lang.Integer kpiInstID)
                                             throws it.eng.spago.error.EMFUserError
Throws:
it.eng.spago.error.EMFUserError

getChartType

java.lang.String getChartType(java.lang.Integer kpiInstanceID)
                              throws it.eng.spago.error.EMFUserError
Throws:
it.eng.spago.error.EMFUserError

loadKpiAlarmInstances

java.util.List<KpiAlarmInstance> loadKpiAlarmInstances()
                                                       throws it.eng.spago.error.EMFUserError
Throws:
it.eng.spago.error.EMFUserError

loadCommentsByKpiInstanceId

java.util.List<SbiKpiComments> loadCommentsByKpiInstanceId(java.lang.Integer kpiInstId)
                                                           throws java.lang.Exception
Throws:
java.lang.Exception

saveKpiComment

java.lang.Integer saveKpiComment(java.lang.Integer idKpiInstance,
                                 java.lang.String comment,
                                 java.lang.String owner)
                                 throws it.eng.spago.error.EMFUserError
Throws:
it.eng.spago.error.EMFUserError