it.eng.spagobi.behaviouralmodel.check.dao
Class CheckDAOHibImpl

java.lang.Object
  extended by it.eng.spagobi.commons.dao.AbstractHibernateDAO
      extended by it.eng.spagobi.behaviouralmodel.check.dao.CheckDAOHibImpl
All Implemented Interfaces:
ICheckDAO, ISpagoBIDao

public class CheckDAOHibImpl
extends AbstractHibernateDAO
implements ICheckDAO

Defines the Hibernate implementations for all DAO methods, for a value constraint.

Author:
Zoppello

Constructor Summary
CheckDAOHibImpl()
           
 
Method Summary
 void eraseCheck(Check check)
          Erase check.
 void insertCheck(Check check)
          Insert check.
 boolean isReferenced(java.lang.String checkId)
          Checks if is referenced.
 java.util.List loadAllChecks()
          Load all checks.
 Check loadCheckByID(java.lang.Integer id)
          Load check by id.
 void modifyCheck(Check check)
          Modify check.
 Check toCheck(SbiChecks hibCheck)
          From the hibernate BI value constraint at input, gives the corrispondent Check object.
 
Methods inherited from class it.eng.spagobi.commons.dao.AbstractHibernateDAO
commitIfActiveAndClose, 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

CheckDAOHibImpl

public CheckDAOHibImpl()
Method Detail

loadAllChecks

public java.util.List loadAllChecks()
                             throws it.eng.spago.error.EMFUserError
Load all checks.

Specified by:
loadAllChecks in interface ICheckDAO
Returns:
the list
Throws:
it.eng.spago.error.EMFUserError - the EMF user error
See Also:
ICheckDAO.loadAllChecks()

loadCheckByID

public Check loadCheckByID(java.lang.Integer id)
                    throws it.eng.spago.error.EMFUserError
Load check by id.

Specified by:
loadCheckByID in interface ICheckDAO
Parameters:
id - the id
Returns:
the check
Throws:
it.eng.spago.error.EMFUserError - the EMF user error
See Also:
ICheckDAO.loadCheckByID(java.lang.Integer)

eraseCheck

public void eraseCheck(Check check)
                throws it.eng.spago.error.EMFUserError
Erase check.

Specified by:
eraseCheck in interface ICheckDAO
Parameters:
check - the check
Throws:
it.eng.spago.error.EMFUserError - the EMF user error
See Also:
ICheckDAO.eraseCheck(it.eng.spagobi.behaviouralmodel.check.bo.Check)

insertCheck

public void insertCheck(Check check)
                 throws it.eng.spago.error.EMFUserError
Insert check.

Specified by:
insertCheck in interface ICheckDAO
Parameters:
check - the check
Throws:
it.eng.spago.error.EMFUserError - the EMF user error
See Also:
ICheckDAO.insertCheck(it.eng.spagobi.behaviouralmodel.check.bo.Check)

modifyCheck

public void modifyCheck(Check check)
                 throws it.eng.spago.error.EMFUserError
Modify check.

Specified by:
modifyCheck in interface ICheckDAO
Parameters:
check - the check
Throws:
it.eng.spago.error.EMFUserError - the EMF user error
See Also:
ICheckDAO.modifyCheck(it.eng.spagobi.behaviouralmodel.check.bo.Check)

toCheck

public Check toCheck(SbiChecks hibCheck)
From the hibernate BI value constraint at input, gives the corrispondent Check object.

Parameters:
hibCheck - The hybernate value constraint at input
Returns:
The corrispondent Check object

isReferenced

public boolean isReferenced(java.lang.String checkId)
                     throws it.eng.spago.error.EMFUserError
Checks if is referenced.

Specified by:
isReferenced in interface ICheckDAO
Parameters:
checkId - the check id
Returns:
true, if checks if is referenced
Throws:
it.eng.spago.error.EMFUserError - the EMF user error
See Also:
ICheckDAO.isReferenced(java.lang.String)