it.eng.spagobi.analiticalmodel.document.dao
Class BIObjectRatingDAOHibImpl

java.lang.Object
  extended by it.eng.spagobi.commons.dao.AbstractHibernateDAO
      extended by it.eng.spagobi.analiticalmodel.document.dao.BIObjectRatingDAOHibImpl
All Implemented Interfaces:
IBIObjectRating, ISpagoBIDao

public class BIObjectRatingDAOHibImpl
extends AbstractHibernateDAO
implements IBIObjectRating


Constructor Summary
BIObjectRatingDAOHibImpl()
           
 
Method Summary
 java.lang.Double calculateBIObjectRating(BIObject obj)
          Implements the query to calculate the medium rating for a BI Object.
 void voteBIObject(BIObject obj, java.lang.String userid, java.lang.String rating)
          Implements the query to insert a rating for a BI Object.
 
Methods inherited from class it.eng.spagobi.commons.dao.AbstractHibernateDAO
getSession, getUserProfile, logException, rollbackIfActiveAndClose, setUserID, setUserProfile, updateSbiCommonInfo4Insert, updateSbiCommonInfo4Update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface it.eng.spagobi.commons.dao.ISpagoBIDao
getUserProfile, setUserID, setUserProfile
 

Constructor Detail

BIObjectRatingDAOHibImpl

public BIObjectRatingDAOHibImpl()
Method Detail

voteBIObject

public void voteBIObject(BIObject obj,
                         java.lang.String userid,
                         java.lang.String rating)
                  throws it.eng.spago.error.EMFUserError
Description copied from interface: IBIObjectRating
Implements the query to insert a rating for a BI Object.

Specified by:
voteBIObject in interface IBIObjectRating
Parameters:
obj - the obj
userid - the userid
rating - the rating
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred

calculateBIObjectRating

public java.lang.Double calculateBIObjectRating(BIObject obj)
                                         throws it.eng.spago.error.EMFUserError
Description copied from interface: IBIObjectRating
Implements the query to calculate the medium rating for a BI Object.

Specified by:
calculateBIObjectRating in interface IBIObjectRating
Parameters:
obj - the obj
Returns:
The BI object medium rating
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred