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

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

public class ParameterUseDAOHibImpl
extends AbstractHibernateDAO
implements IParameterUseDAO

Defines the Hibernate implementations for all DAO methods, for a parameter use mode.

Author:
zoppello

Constructor Summary
ParameterUseDAOHibImpl()
           
 
Method Summary
 void eraseParameterUse(ParameterUse aParameterUse)
          Implements the query to erase a ParameterUse mode.
 void eraseParameterUseByParId(java.lang.Integer parId)
           
 void fillAssociatedChecksForParUse(ParameterUse aParameterUse)
          Given at input a ParameterUse objects, asks for all possible Checks associated whith it and fills the AssociatedChecks object's list.
 void fillParameterUse(ParameterUse aParameterUse, SbiParuse hibParUse)
           
 void fillRolesForParUse(ParameterUse aParameterUse)
          Given at input a ParameterUse objects, asks for all possible Roles associated whith it and fills the ListRoles object's list.
 boolean hasParUseModes(java.lang.String parId)
          Controls if a parameter has some use modes associated or not.
 void insertParameterUse(ParameterUse aParameterUse)
          Implements the query to insert a parameter use mode.
 ParameterUse loadByUseID(java.lang.Integer useID)
          Loads all detail information for a parameter use mode identified by its useID.
 java.util.List loadParametersUseByParId(java.lang.Integer parId)
           
 void modifyParameterUse(ParameterUse aParameterUse)
          Implements the query to modify a parameter use mode.
 ParameterUse toParameterUse(SbiParuse hibParUse)
          From the hibernate Parameter Use mode at input, gives the corrispondent ParameterUse 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

ParameterUseDAOHibImpl

public ParameterUseDAOHibImpl()
Method Detail

loadByUseID

public ParameterUse loadByUseID(java.lang.Integer useID)
                         throws EMFUserError
Description copied from interface: IParameterUseDAO
Loads all detail information for a parameter use mode identified by its useID. All these information, achived by a query to the DB, are stored into aParameterUse object, which is returned.

Specified by:
loadByUseID in interface IParameterUseDAO
Parameters:
useID - The id for the parameter use mode to load
Returns:
A ParameterUse object containing all loaded information
Throws:
EMFUserError - EMFUserError If an Exception occurred
See Also:
IParameterUseDAO.loadByUseID(java.lang.Integer)

fillAssociatedChecksForParUse

public void fillAssociatedChecksForParUse(ParameterUse aParameterUse)
                                   throws EMFUserError
Description copied from interface: IParameterUseDAO
Given at input a ParameterUse objects, asks for all possible Checks associated whith it and fills the AssociatedChecks object's list.

Specified by:
fillAssociatedChecksForParUse in interface IParameterUseDAO
Parameters:
aParameterUse - The ParameterUse object to fill the Checks list in
Throws:
EMFUserError - if an Exception occurred.
See Also:
IParameterUseDAO.fillAssociatedChecksForParUse(it.eng.spagobi.bo.ParameterUse)

fillRolesForParUse

public void fillRolesForParUse(ParameterUse aParameterUse)
                        throws EMFUserError
Description copied from interface: IParameterUseDAO
Given at input a ParameterUse objects, asks for all possible Roles associated whith it and fills the ListRoles object's list.

Specified by:
fillRolesForParUse in interface IParameterUseDAO
Throws:
EMFUserError
See Also:
IParameterUseDAO.fillRolesForParUse(it.eng.spagobi.bo.ParameterUse)

modifyParameterUse

public void modifyParameterUse(ParameterUse aParameterUse)
                        throws EMFUserError
Description copied from interface: IParameterUseDAO
Implements the query to modify a parameter use mode. All information needed is stored into the input ParameterUse object.

Specified by:
modifyParameterUse in interface IParameterUseDAO
Parameters:
aParameterUse - The object containing all modify information
Throws:
EMFUserError - If an Exception occurred
See Also:
IParameterUseDAO.modifyParameterUse(it.eng.spagobi.bo.ParameterUse)

insertParameterUse

public void insertParameterUse(ParameterUse aParameterUse)
                        throws EMFUserError
Description copied from interface: IParameterUseDAO
Implements the query to insert a parameter use mode. All information needed is stored into the input ParameterUse object.

Specified by:
insertParameterUse in interface IParameterUseDAO
Parameters:
aParameterUse - The object containing all insert information
Throws:
EMFUserError - If an Exception occurred
See Also:
IParameterUseDAO.insertParameterUse(it.eng.spagobi.bo.ParameterUse)

eraseParameterUse

public void eraseParameterUse(ParameterUse aParameterUse)
                       throws EMFUserError
Description copied from interface: IParameterUseDAO
Implements the query to erase a ParameterUse mode. All information needed is stored into the input ParameterUse object.

Specified by:
eraseParameterUse in interface IParameterUseDAO
Parameters:
aParameterUse - The object containing all erase information
Throws:
EMFUserError - If an Exception occurred
See Also:
IParameterUseDAO.eraseParameterUse(it.eng.spagobi.bo.ParameterUse)

hasParUseModes

public boolean hasParUseModes(java.lang.String parId)
                       throws EMFUserError
Description copied from interface: IParameterUseDAO
Controls if a parameter has some use modes associated or not. It is useful because a parameter can be deleted only if it hasn't any use mode associated.

Specified by:
hasParUseModes in interface IParameterUseDAO
Parameters:
parId - The parameter id
Returns:
True if the parameter has one or more modes associated; false if it hasn't any
Throws:
EMFUserError - If an Exception occurred
See Also:
IParameterUseDAO.hasParUseModes(java.lang.String)

loadParametersUseByParId

public java.util.List loadParametersUseByParId(java.lang.Integer parId)
                                        throws EMFUserError
Specified by:
loadParametersUseByParId in interface IParameterUseDAO
Throws:
EMFUserError
See Also:
IParameterUseDAO.loadParametersUseByParId(java.lang.Integer)

toParameterUse

public ParameterUse toParameterUse(SbiParuse hibParUse)
From the hibernate Parameter Use mode at input, gives the corrispondent ParameterUse object.

Parameters:
hibParUse - The hybernate parameter use mode
Returns:
The corrispondent ParameterUse object

fillParameterUse

public void fillParameterUse(ParameterUse aParameterUse,
                             SbiParuse hibParUse)

eraseParameterUseByParId

public void eraseParameterUseByParId(java.lang.Integer parId)
                              throws EMFUserError
Specified by:
eraseParameterUseByParId in interface IParameterUseDAO
Throws:
EMFUserError