it.eng.spagobi.bo.dao.jdbc
Class CheckDAOImpl

java.lang.Object
  extended by it.eng.spagobi.bo.dao.jdbc.AbstractJdbcDAO
      extended by it.eng.spagobi.bo.dao.jdbc.CheckDAOImpl
All Implemented Interfaces:
ICheckDAO

public class CheckDAOImpl
extends AbstractJdbcDAO
implements ICheckDAO

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

Author:
zoppello

Constructor Summary
CheckDAOImpl()
           
 
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.
 
Methods inherited from class it.eng.spagobi.bo.dao.jdbc.AbstractJdbcDAO
getConnection
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckDAOImpl

public CheckDAOImpl()
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)

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)