it.eng.spagobi.bo.dao.hibernate
Class CheckDAOHibImpl

java.lang.Object
  extended by it.eng.spagobi.bo.dao.hibernate.AbstractHibernateDAO
      extended by it.eng.spagobi.bo.dao.hibernate.CheckDAOHibImpl
All Implemented Interfaces:
ICheckDAO

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)
          Implements the query to erase a value constraint.
 void insertCheck(Check check)
          Implements the query to insert a value constraint.
 boolean isReferenced(java.lang.String checkId)
           
 java.util.List loadAllChecks()
          Loads all detail information for all value constraints.
 Check loadCheckByID(java.lang.Integer id)
          Loads all detail information for a value constraint identified by its id.
 void modifyCheck(Check check)
          Implements the query to modify a value constraint.
 Check toCheck(SbiChecks hibCheck)
          From the hibernate BI value constraint at input, gives the corrispondent Check object.
 
Methods inherited from class it.eng.spagobi.bo.dao.hibernate.AbstractHibernateDAO
getSession, logException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckDAOHibImpl

public CheckDAOHibImpl()
Method Detail

loadAllChecks

public java.util.List loadAllChecks()
                             throws EMFUserError
Description copied from interface: ICheckDAO
Loads all detail information for all value constraints. For each of them, detail information is stored into a Check object. After that, all value constraints are stored into a List, which is returned.

Specified by:
loadAllChecks in interface ICheckDAO
Returns:
A list containing all value constraints objects
Throws:
EMFUserError - If an Exception occurred
See Also:
ICheckDAO.loadAllChecks()

loadCheckByID

public Check loadCheckByID(java.lang.Integer id)
                    throws EMFUserError
Description copied from interface: ICheckDAO
Loads all detail information for a value constraint identified by its id. All these information are stored into a Check object, which is returned.

Specified by:
loadCheckByID in interface ICheckDAO
Parameters:
id - The id for the value constraint to load
Returns:
A Check object containing all loaded information
Throws:
EMFUserError - If an Exception occurred
See Also:
ICheckDAO.loadCheckByID(java.lang.Integer)

eraseCheck

public void eraseCheck(Check check)
                throws EMFUserError
Description copied from interface: ICheckDAO
Implements the query to erase a value constraint. All information needed is stored into the input Check object.

Specified by:
eraseCheck in interface ICheckDAO
Parameters:
check - The object containing all delete information
Throws:
EMFUserError - If an Exception occurred
See Also:
ICheckDAO.eraseCheck(it.eng.spagobi.bo.Check)

insertCheck

public void insertCheck(Check check)
                 throws EMFUserError
Description copied from interface: ICheckDAO
Implements the query to insert a value constraint. All information needed is stored into the input Check object.

Specified by:
insertCheck in interface ICheckDAO
Parameters:
check - The object containing all insert information
Throws:
EMFUserError - If an Exception occurred
See Also:
ICheckDAO.insertCheck(it.eng.spagobi.bo.Check)

modifyCheck

public void modifyCheck(Check check)
                 throws EMFUserError
Description copied from interface: ICheckDAO
Implements the query to modify a value constraint. All information needed is stored into the input Check object.

Specified by:
modifyCheck in interface ICheckDAO
Parameters:
check - The object containing all modify information
Throws:
EMFUserError - If an Exception occurred
See Also:
ICheckDAO.modifyCheck(it.eng.spagobi.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 EMFUserError
Specified by:
isReferenced in interface ICheckDAO
Throws:
EMFUserError
See Also:
ICheckDAO.isReferenced(java.lang.String)