|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.eng.spagobi.commons.dao.AbstractHibernateDAO
it.eng.spagobi.kpi.config.dao.KpiDAOImpl
public class KpiDAOImpl
Constructor Summary | |
---|---|
KpiDAOImpl()
|
Method Summary | |
---|---|
boolean |
deleteKpi(java.lang.Integer kpiId)
|
void |
deleteResource(java.lang.Integer resouceId)
|
java.lang.String |
getChartType(java.lang.Integer kpiInstanceID)
Returns the ChartType of the specific KpiInstance (it could also be null) |
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)
Returns the DatasetConfig for the KPI with id 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 |
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.util.List |
getKpiValue(SbiKpiInstance kpi,
java.util.Date d)
|
java.lang.Integer |
getPeriodicitySeconds(java.lang.Integer periodicityId)
Returns an Integer representing the seconds of the Periodicity with id periodicityId |
java.util.List |
getThresholds(KpiInstance k)
Returns a List of all the the Threshols of the KpiInstance |
java.lang.Integer |
insertKpi(Kpi kpi)
|
void |
insertKpiValue(KpiValue value)
Inserts a new KPI Value with its date, value period and thresholds |
java.lang.Integer |
insertResource(Resource toCreate)
|
void |
isAlarmingValue(KpiValue value)
For the specific KpiValue verifies if it is ok with every threshold and if not writes an alarm event in the AlarmEvent table so that later on an alarm will be sent |
java.lang.Boolean |
isKpiInstUnderAlramControl(java.lang.Integer kpiInstID)
Returns True if the KPIInstance with id kpiInstID is under AlarmControl, false if it is not |
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 |
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 |
java.util.List |
loadKpiList()
Returns the list of Kpi. |
java.util.List |
loadKpiList(java.lang.String fieldOrder,
java.lang.String typeOrder)
|
ModelInstanceNode |
loadModelInstanceById(java.lang.Integer id,
java.util.Date requestedDate)
Returns the ModelInstance of the referred id |
ModelInstanceNode |
loadModelInstanceByLabel(java.lang.String label,
java.util.Date requestedDate)
Returns the ModelInstance of the referred label |
Resource |
loadResourceById(java.lang.Integer id)
Returns the Resource of the referred id |
java.util.List |
loadResourcesList(java.lang.String fieldOrder,
java.lang.String typeOrder)
|
java.util.List |
loadThresholdsById(java.lang.Integer id)
Loads the list of Threshold interval for the threshold with id 'id' |
void |
modifyKpi(Kpi kpi)
|
void |
modifyResource(Resource resource)
|
void |
setKpiInstanceFromKPI(KpiInstance kpiInstance,
java.lang.Integer kpiId)
|
Kpi |
toKpi(SbiKpi kpi)
|
Threshold |
toThreshold(SbiThresholdValue t)
|
Methods inherited from class it.eng.spagobi.commons.dao.AbstractHibernateDAO |
---|
getSession, logException |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KpiDAOImpl()
Method Detail |
---|
public ModelInstanceNode loadModelInstanceByLabel(java.lang.String label, java.util.Date requestedDate) throws it.eng.spago.error.EMFUserError
IKpiDAO
loadModelInstanceByLabel
in interface IKpiDAO
label
- of the ModelInstance
it.eng.spago.error.EMFUserError
- If an Exception occurredpublic ModelInstanceNode loadModelInstanceById(java.lang.Integer id, java.util.Date requestedDate) throws it.eng.spago.error.EMFUserError
IKpiDAO
loadModelInstanceById
in interface IKpiDAO
id
- of the ModelInstance
it.eng.spago.error.EMFUserError
- If an Exception occurredpublic KpiInstance loadKpiInstanceById(java.lang.Integer id) throws it.eng.spago.error.EMFUserError
IKpiDAO
loadKpiInstanceById
in interface IKpiDAO
id
- of the KpiInstance
it.eng.spago.error.EMFUserError
- If an Exception occurredpublic KpiInstance loadKpiInstanceByIdFromHistory(java.lang.Integer id, java.util.Date d) throws it.eng.spago.error.EMFUserError
IKpiDAO
loadKpiInstanceByIdFromHistory
in interface IKpiDAO
id
- of the KpiInstance
it.eng.spago.error.EMFUserError
- If an Exception occurredpublic java.util.List loadThresholdsById(java.lang.Integer id) throws it.eng.spago.error.EMFUserError
IKpiDAO
loadThresholdsById
in interface IKpiDAO
it.eng.spago.error.EMFUserError
- If an Exception occurredpublic Kpi loadKpiDefinitionById(java.lang.Integer id) throws it.eng.spago.error.EMFUserError
IKpiDAO
loadKpiDefinitionById
in interface IKpiDAO
id
- of the Kpi
it.eng.spago.error.EMFUserError
- If an Exception occurredpublic Kpi loadKpiById(java.lang.Integer id) throws it.eng.spago.error.EMFUserError
IKpiDAO
loadKpiById
in interface IKpiDAO
id
- of the Kpi
it.eng.spago.error.EMFUserError
- If an Exception occurredpublic java.lang.String getKpiTrendXmlResult(java.lang.Integer resId, java.lang.Integer kpiInstId, java.util.Date endDate) throws it.eng.spago.base.SourceBeanException
IKpiDAO
getKpiTrendXmlResult
in interface IKpiDAO
it.eng.spago.base.SourceBeanException
public Resource loadResourceById(java.lang.Integer id) throws it.eng.spago.error.EMFUserError
IKpiDAO
loadResourceById
in interface IKpiDAO
id
- of the Resource
it.eng.spago.error.EMFUserError
- If an Exception occurredpublic java.util.List getKpiValue(SbiKpiInstance kpi, java.util.Date d) throws it.eng.spago.error.EMFUserError
it.eng.spago.error.EMFUserError
public java.lang.Integer getPeriodicitySeconds(java.lang.Integer periodicityId) throws it.eng.spago.error.EMFUserError
IKpiDAO
getPeriodicitySeconds
in interface IKpiDAO
it.eng.spago.error.EMFUserError
- If an Exception occurredpublic void insertKpiValue(KpiValue value) throws it.eng.spago.error.EMFUserError
IKpiDAO
insertKpiValue
in interface IKpiDAO
it.eng.spago.error.EMFUserError
- If an Exception occurredpublic java.util.List getThresholds(KpiInstance k) throws it.eng.spago.error.EMFUserError
IKpiDAO
getThresholds
in interface IKpiDAO
it.eng.spago.error.EMFUserError
- If an Exception occurredpublic java.lang.Boolean isKpiInstUnderAlramControl(java.lang.Integer kpiInstID) throws it.eng.spago.error.EMFUserError
IKpiDAO
isKpiInstUnderAlramControl
in interface IKpiDAO
kpiInstID
- of the KPIInstance that we want to monitor
it.eng.spago.error.EMFUserError
- if an Exception occurspublic void isAlarmingValue(KpiValue value) throws it.eng.spago.error.EMFUserError
IKpiDAO
isAlarmingValue
in interface IKpiDAO
it.eng.spago.error.EMFUserError
- if an Exception occurspublic it.eng.spagobi.tools.dataset.bo.IDataSet getDsFromKpiId(java.lang.Integer kpiId) throws it.eng.spago.error.EMFUserError
IKpiDAO
getDsFromKpiId
in interface IKpiDAO
kpiId
- of the KPI
it.eng.spago.error.EMFUserError
- if an Exception occurspublic KpiValue getKpiValue(java.lang.Integer kpiInstanceId, java.util.Date d, Resource r) throws it.eng.spago.error.EMFUserError
IKpiDAO
getKpiValue
in interface IKpiDAO
it.eng.spago.error.EMFUserError
- if an Exception occurspublic KpiValue getDisplayKpiValue(java.lang.Integer kpiInstanceId, java.util.Date d, Resource r) throws it.eng.spago.error.EMFUserError
IKpiDAO
getDisplayKpiValue
in interface IKpiDAO
it.eng.spago.error.EMFUserError
- if an Exception occurspublic Kpi toKpi(SbiKpi kpi) throws it.eng.spago.error.EMFUserError
it.eng.spago.error.EMFUserError
public Threshold toThreshold(SbiThresholdValue t)
public java.lang.String getChartType(java.lang.Integer kpiInstanceID) throws it.eng.spago.error.EMFUserError
IKpiDAO
getChartType
in interface IKpiDAO
it.eng.spago.error.EMFUserError
- if an Exception occurspublic java.util.List loadKpiList(java.lang.String fieldOrder, java.lang.String typeOrder) throws it.eng.spago.error.EMFUserError
loadKpiList
in interface IKpiDAO
it.eng.spago.error.EMFUserError
public java.util.List loadKpiList() throws it.eng.spago.error.EMFUserError
IKpiDAO
loadKpiList
in interface IKpiDAO
it.eng.spago.error.EMFUserError
- if an Exception occurspublic void modifyResource(Resource resource) throws it.eng.spago.error.EMFUserError
modifyResource
in interface IKpiDAO
it.eng.spago.error.EMFUserError
public java.lang.Integer insertResource(Resource toCreate) throws it.eng.spago.error.EMFUserError
insertResource
in interface IKpiDAO
it.eng.spago.error.EMFUserError
public void setKpiInstanceFromKPI(KpiInstance kpiInstance, java.lang.Integer kpiId) throws it.eng.spago.error.EMFUserError
setKpiInstanceFromKPI
in interface IKpiDAO
it.eng.spago.error.EMFUserError
public void deleteResource(java.lang.Integer resouceId) throws it.eng.spago.error.EMFUserError
deleteResource
in interface IKpiDAO
it.eng.spago.error.EMFUserError
public void modifyKpi(Kpi kpi) throws it.eng.spago.error.EMFUserError
modifyKpi
in interface IKpiDAO
it.eng.spago.error.EMFUserError
public java.lang.Integer insertKpi(Kpi kpi) throws it.eng.spago.error.EMFUserError
insertKpi
in interface IKpiDAO
it.eng.spago.error.EMFUserError
public boolean deleteKpi(java.lang.Integer kpiId) throws it.eng.spago.error.EMFUserError
deleteKpi
in interface IKpiDAO
it.eng.spago.error.EMFUserError
public java.util.List loadResourcesList(java.lang.String fieldOrder, java.lang.String typeOrder) throws it.eng.spago.error.EMFUserError
loadResourcesList
in interface IKpiDAO
it.eng.spago.error.EMFUserError
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |