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

All Known Implementing Classes:
KpiDAOImpl

public interface IKpiDAO


Method Summary
 boolean deleteKpi(java.lang.Integer kpiId)
           
 KpiValue getDisplayKpiValue(java.lang.Integer kpiInstanceId, java.util.Date d, Resource r)
          The last KpiValue for the the KpiInstance selected, for the resource selected, in the date selected or before
 it.eng.spagobi.tools.dataset.bo.IDataSet getDsFromKpiId(java.lang.Integer kpiId)
           
 java.lang.String getKpiTrendXmlResult(java.lang.Integer resId, java.lang.Integer kpiInstId, java.util.Date endDate)
          Returns a List of all the the Threshols of the KpiInstance
 java.lang.String getKpiTrendXmlResult(java.lang.Integer resId, java.lang.Integer kpiInstId, java.util.Date beginDate, java.util.Date endDate)
          Returns a List of all the the Threshols of the KpiInstance
 KpiValue getKpiValue(java.lang.Integer kpiInstanceId, java.util.Date d, Resource r)
          KpiValue valid for the the KpiInstance selected, for the resource selected, in the date selected
 java.lang.Integer insertKpi(Kpi toCreate)
           
 void insertKpiValue(KpiValue value)
          Inserts a new KPI Value with its date, value period and thresholds
 Kpi loadKpiById(java.lang.Integer id)
          Returns the Kpi of the referred id
 Kpi loadKpiDefinitionById(java.lang.Integer id)
          Returns the Kpi Definition of the referred id
 java.util.List loadKpiList()
          Returns the list of Kpi.
 java.util.List loadKpiList(java.lang.String fieldOrder, java.lang.String typeOrder)
           
 void modifyKpi(Kpi kpi)
           
 

Method Detail

insertKpiValue

void insertKpiValue(KpiValue value)
                    throws it.eng.spago.error.EMFUserError
Inserts a new KPI Value with its date, value period and thresholds

Parameters:
KpiValue - to insert
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred

getKpiTrendXmlResult

java.lang.String getKpiTrendXmlResult(java.lang.Integer resId,
                                      java.lang.Integer kpiInstId,
                                      java.util.Date endDate)
                                      throws it.eng.spago.base.SourceBeanException
Returns a List of all the the Threshols of the KpiInstance

Parameters:
Integer - resId, Integer kpiInstId, String endDate
Returns:
List of all the the Threshols of the KpiInstance
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred
it.eng.spago.base.SourceBeanException

getDsFromKpiId

it.eng.spagobi.tools.dataset.bo.IDataSet getDsFromKpiId(java.lang.Integer kpiId)
                                                        throws it.eng.spago.error.EMFUserError
Throws:
it.eng.spago.error.EMFUserError

getKpiTrendXmlResult

java.lang.String getKpiTrendXmlResult(java.lang.Integer resId,
                                      java.lang.Integer kpiInstId,
                                      java.util.Date beginDate,
                                      java.util.Date endDate)
                                      throws it.eng.spago.base.SourceBeanException
Returns a List of all the the Threshols of the KpiInstance

Parameters:
Integer - resId, Integer kpiInstId, String endDate
Returns:
List of all the the Threshols of the KpiInstance
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred
it.eng.spago.base.SourceBeanException

loadKpiById

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

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

loadKpiDefinitionById

Kpi loadKpiDefinitionById(java.lang.Integer id)
                          throws it.eng.spago.error.EMFUserError
Returns the Kpi Definition of the referred id

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

getKpiValue

KpiValue getKpiValue(java.lang.Integer kpiInstanceId,
                     java.util.Date d,
                     Resource r)
                     throws it.eng.spago.error.EMFUserError
KpiValue valid for the the KpiInstance selected, for the resource selected, in the date selected

Parameters:
KpiValue -
Returns:
KpiValue valid for the the KpiInstance selected, for the resource selected, in the date selected
Throws:
it.eng.spago.error.EMFUserError - if an Exception occurs

getDisplayKpiValue

KpiValue getDisplayKpiValue(java.lang.Integer kpiInstanceId,
                            java.util.Date d,
                            Resource r)
                            throws it.eng.spago.error.EMFUserError
The last KpiValue for the the KpiInstance selected, for the resource selected, in the date selected or before

Parameters:
KpiValue -
Returns:
The last KpiValue valid for the the KpiInstance selected, for the resource selected, in the date selected or before
Throws:
it.eng.spago.error.EMFUserError - if an Exception occurs

loadKpiList

java.util.List loadKpiList()
                           throws it.eng.spago.error.EMFUserError
Returns the list of Kpi.

Returns:
the list of all Kpi.
Throws:
it.eng.spago.error.EMFUserError - if an Exception occurs

loadKpiList

java.util.List loadKpiList(java.lang.String fieldOrder,
                           java.lang.String typeOrder)
                           throws it.eng.spago.error.EMFUserError
Throws:
it.eng.spago.error.EMFUserError

modifyKpi

void modifyKpi(Kpi kpi)
               throws it.eng.spago.error.EMFUserError
Throws:
it.eng.spago.error.EMFUserError

insertKpi

java.lang.Integer insertKpi(Kpi toCreate)
                            throws it.eng.spago.error.EMFUserError
Throws:
it.eng.spago.error.EMFUserError

deleteKpi

boolean deleteKpi(java.lang.Integer kpiId)
                  throws it.eng.spago.error.EMFUserError
Throws:
it.eng.spago.error.EMFUserError