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

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

public class KpiErrorDAOImpl
extends AbstractHibernateDAO
implements IKpiErrorDAO


Constructor Summary
KpiErrorDAOImpl()
           
 
Method Summary
 java.lang.Integer insertKpiError(it.eng.spagobi.tools.dataset.exceptions.DatasetException exception, java.lang.Integer modelInstanceId, java.lang.String resourceName)
          Takes as input a datasetException and converts it to a KpiError
 java.lang.Integer insertKpiError(SbiKpiError sbiKpiError)
           
 java.util.List<KpiError> loadAllKpiErrors()
           
 KpiError loadKpiErrorById(java.lang.Integer id)
           
 KpiError toKpiError(SbiKpiError sbiKpiError)
           
 SbiKpiError toSbiKpiError(it.eng.spagobi.tools.dataset.exceptions.DatasetException dsException, java.lang.Integer modelInstanceId, java.lang.String parameters, org.hibernate.Session session)
           
 void updateKpiError(SbiKpiError sbiKpiError)
           
 
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

KpiErrorDAOImpl

public KpiErrorDAOImpl()
Method Detail

insertKpiError

public java.lang.Integer insertKpiError(it.eng.spagobi.tools.dataset.exceptions.DatasetException exception,
                                        java.lang.Integer modelInstanceId,
                                        java.lang.String resourceName)
                                 throws it.eng.spago.error.EMFUserError
Takes as input a datasetException and converts it to a KpiError

Specified by:
insertKpiError in interface IKpiErrorDAO
Parameters:
exception -
modelInstanceId -
parameters -
Returns:
Throws:
it.eng.spago.error.EMFUserError

insertKpiError

public java.lang.Integer insertKpiError(SbiKpiError sbiKpiError)
                                 throws it.eng.spago.error.EMFUserError
Specified by:
insertKpiError in interface IKpiErrorDAO
Parameters:
kpiError -
Returns:
Throws:
it.eng.spago.error.EMFUserError

loadAllKpiErrors

public java.util.List<KpiError> loadAllKpiErrors()
                                          throws it.eng.spago.error.EMFUserError
Specified by:
loadAllKpiErrors in interface IKpiErrorDAO
Returns:
Throws:
it.eng.spago.error.EMFUserError

loadKpiErrorById

public KpiError loadKpiErrorById(java.lang.Integer id)
                          throws it.eng.spago.error.EMFUserError
Specified by:
loadKpiErrorById in interface IKpiErrorDAO
Returns:
Throws:
it.eng.spago.error.EMFUserError

updateKpiError

public void updateKpiError(SbiKpiError sbiKpiError)
                    throws it.eng.spago.error.EMFUserError
Specified by:
updateKpiError in interface IKpiErrorDAO
Parameters:
kpiError -
Throws:
it.eng.spago.error.EMFUserError

toKpiError

public KpiError toKpiError(SbiKpiError sbiKpiError)

toSbiKpiError

public SbiKpiError toSbiKpiError(it.eng.spagobi.tools.dataset.exceptions.DatasetException dsException,
                                 java.lang.Integer modelInstanceId,
                                 java.lang.String parameters,
                                 org.hibernate.Session session)