it.eng.spagobi.kpi.config.dao
Class KpiInstanceDAOImpl
java.lang.Object
it.eng.spagobi.commons.dao.AbstractHibernateDAO
it.eng.spagobi.kpi.config.dao.KpiInstanceDAOImpl
- All Implemented Interfaces:
- ISpagoBIDao, IKpiInstanceDAO
public class KpiInstanceDAOImpl
- extends AbstractHibernateDAO
- implements IKpiInstanceDAO
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 |
KpiInstanceDAOImpl
public KpiInstanceDAOImpl()
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
loadCommentsByKpiInstanceId
public java.util.List<SbiKpiComments> loadCommentsByKpiInstanceId(java.lang.Integer kpiInstId)
throws java.lang.Exception
- Specified by:
loadCommentsByKpiInstanceId
in interface IKpiInstanceDAO
- Throws:
java.lang.Exception
saveKpiComment
public java.lang.Integer saveKpiComment(java.lang.Integer idKpiInstance,
java.lang.String comment,
java.lang.String owner)
throws it.eng.spago.error.EMFUserError
- Specified by:
saveKpiComment
in interface IKpiInstanceDAO
- Throws:
it.eng.spago.error.EMFUserError