it.eng.spagobi.kpi.threshold.dao
Class ThresholdDAOImpl

java.lang.Object
  extended by it.eng.spagobi.commons.dao.AbstractHibernateDAO
      extended by it.eng.spagobi.kpi.threshold.dao.ThresholdDAOImpl
All Implemented Interfaces:
IThresholdDAO

public class ThresholdDAOImpl
extends AbstractHibernateDAO
implements IThresholdDAO


Constructor Summary
ThresholdDAOImpl()
           
 
Method Summary
 boolean deleteThreshold(java.lang.Integer thresholdId)
           
 java.lang.Integer insertThreshold(Threshold threshold)
           
 Threshold loadThresholdById(java.lang.Integer id)
          Returns the Threshold of the referred id
 java.util.List loadThresholdList()
           
 java.util.List loadThresholdList(java.lang.String fieldOrder, java.lang.String typeOrder)
          Returns the list of Thresholds.
 void modifyThreshold(Threshold threshold)
           
 Threshold toThreshold(SbiThreshold 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

ThresholdDAOImpl

public ThresholdDAOImpl()
Method Detail

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

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