it.eng.spagobi.kpi.threshold.dao
Class ThresholdDAOImpl
java.lang.Object
it.eng.spagobi.commons.dao.AbstractHibernateDAO
it.eng.spagobi.kpi.threshold.dao.ThresholdDAOImpl
- All Implemented Interfaces:
- ISpagoBIDao, IThresholdDAO
public class ThresholdDAOImpl
- extends AbstractHibernateDAO
- implements IThresholdDAO
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 |
ThresholdDAOImpl
public ThresholdDAOImpl()
loadThresholdById
public Threshold loadThresholdById(java.lang.Integer id)
throws it.eng.spago.error.EMFUserError
- Description copied from interface:
IThresholdDAO
- Returns the Threshold of the referred id
- Specified by:
loadThresholdById
in interface IThresholdDAO
- Parameters:
id
- of the Threshold
- Returns:
- Threshold of the referred id
- Throws:
it.eng.spago.error.EMFUserError
- If an Exception occurred
loadThresholdByCode
public Threshold loadThresholdByCode(java.lang.String thrCode)
throws it.eng.spago.error.EMFUserError
- Specified by:
loadThresholdByCode
in interface IThresholdDAO
- Throws:
it.eng.spago.error.EMFUserError
loadThresholdList
public java.util.List loadThresholdList(java.lang.String fieldOrder,
java.lang.String typeOrder)
throws it.eng.spago.error.EMFUserError
- Description copied from interface:
IThresholdDAO
- Returns the list of Thresholds.
- Specified by:
loadThresholdList
in interface IThresholdDAO
- Parameters:
fieldOrder
- Name of the column in the view to Order.typeOrder
- DESC or ASC.
- Returns:
- the list of Thresholds.
- Throws:
it.eng.spago.error.EMFUserError
- If an Exception occurred.
modifyThreshold
public void modifyThreshold(Threshold threshold)
throws it.eng.spago.error.EMFUserError
- Specified by:
modifyThreshold
in interface IThresholdDAO
- Throws:
it.eng.spago.error.EMFUserError
insertThreshold
public java.lang.Integer insertThreshold(Threshold threshold)
throws it.eng.spago.error.EMFUserError
- Specified by:
insertThreshold
in interface IThresholdDAO
- Throws:
it.eng.spago.error.EMFUserError
deleteThreshold
public boolean deleteThreshold(java.lang.Integer thresholdId)
throws it.eng.spago.error.EMFUserError
- Specified by:
deleteThreshold
in interface IThresholdDAO
- Throws:
it.eng.spago.error.EMFUserError
loadThresholdList
public java.util.List loadThresholdList()
throws it.eng.spago.error.EMFUserError
- Specified by:
loadThresholdList
in interface IThresholdDAO
- Throws:
it.eng.spago.error.EMFUserError
toThreshold
public Threshold toThreshold(SbiThreshold t)
throws it.eng.spago.error.EMFUserError
- Specified by:
toThreshold
in interface IThresholdDAO
- Throws:
it.eng.spago.error.EMFUserError
countThresholds
public java.lang.Integer countThresholds()
throws it.eng.spago.error.EMFUserError
- Specified by:
countThresholds
in interface IThresholdDAO
- Throws:
it.eng.spago.error.EMFUserError
loadPagedThresholdList
public java.util.List loadPagedThresholdList(java.lang.Integer offset,
java.lang.Integer fetchSize)
throws it.eng.spago.error.EMFUserError
- Specified by:
loadPagedThresholdList
in interface IThresholdDAO
- Throws:
it.eng.spago.error.EMFUserError
loadThresholdListFiltered
public java.util.List loadThresholdListFiltered(java.lang.String hsql,
java.lang.Integer offset,
java.lang.Integer fetchSize)
throws it.eng.spago.error.EMFUserError
- Specified by:
loadThresholdListFiltered
in interface IThresholdDAO
- Throws:
it.eng.spago.error.EMFUserError