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

java.lang.Object
  extended byit.eng.spagobi.bo.dao.hibernate.AbstractHibernateDAO
      extended byit.eng.spagobi.bo.dao.hibernate.LowFunctionalityDAOHibImpl
All Implemented Interfaces:
ILowFunctionalityDAO

public class LowFunctionalityDAOHibImpl
extends AbstractHibernateDAO
implements ILowFunctionalityDAO

Defines the Hibernate implementations for all DAO methods, for a functionality.

Author:
sulis

Constructor Summary
LowFunctionalityDAOHibImpl()
           
 
Method Summary
 void eraseLowFunctionality(LowFunctionality aLowFunctionality, it.eng.spago.security.IEngUserProfile profile)
          Implements the query to erase a low functionality.
 java.lang.Integer existByCode(java.lang.String code)
          Control if exist a functionality with the given code
 boolean hasChild(java.lang.String path)
          Control if the functionality with the given path has childs
 void insertLowFunctionality(LowFunctionality aLowFunctionality, it.eng.spago.security.IEngUserProfile profile)
          Implements the query to insert a low functionality.
 LowFunctionality loadLowFunctionalityByID(java.lang.Integer functionalityID)
          Loads all information for a low functionality identified by its functionalityID.
 LowFunctionality loadLowFunctionalityByPath(java.lang.String functionalityPath)
          Loads all information for a low functionality identified by its functionalityPath.
 void modifyLowFunctionality(LowFunctionality aLowFunctionality)
          Implements the query to modify a low functionality.
 
Methods inherited from class it.eng.spagobi.bo.dao.hibernate.AbstractHibernateDAO
getSession, logException
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LowFunctionalityDAOHibImpl

public LowFunctionalityDAOHibImpl()
Method Detail

loadLowFunctionalityByID

public LowFunctionality loadLowFunctionalityByID(java.lang.Integer functionalityID)
                                          throws EMFUserError
Description copied from interface: ILowFunctionalityDAO
Loads all information for a low functionality identified by its functionalityID. All these information, are stored into a LowFunctionality object, which is returned.

Specified by:
loadLowFunctionalityByID in interface ILowFunctionalityDAO
Parameters:
functionalityID - The id for the low functionality to load
Returns:
A LowFunctionality object containing all loaded information
Throws:
EMFUserError - If an Exception occurred
See Also:
ILowFunctionalityDAO.loadLowFunctionalityByID(java.lang.Integer)

loadLowFunctionalityByPath

public LowFunctionality loadLowFunctionalityByPath(java.lang.String functionalityPath)
                                            throws EMFUserError
Description copied from interface: ILowFunctionalityDAO
Loads all information for a low functionality identified by its functionalityPath. All these information, are stored into a LowFunctionality object, which is returned.

Specified by:
loadLowFunctionalityByPath in interface ILowFunctionalityDAO
Parameters:
functionalityPath - The path for the low functionality to load
Returns:
A LowFunctionality object containing all loaded information
Throws:
EMFUserError - If an Exception occurred
See Also:
ILowFunctionalityDAO.loadLowFunctionalityByPath(java.lang.String)

modifyLowFunctionality

public void modifyLowFunctionality(LowFunctionality aLowFunctionality)
                            throws EMFUserError
Description copied from interface: ILowFunctionalityDAO
Implements the query to modify a low functionality. All information needed is stored into the input LowFunctionality object.

Specified by:
modifyLowFunctionality in interface ILowFunctionalityDAO
Parameters:
aLowFunctionality - The object containing all modify information
Throws:
EMFUserError - If an Exception occurred
See Also:
ILowFunctionalityDAO.modifyLowFunctionality(it.eng.spagobi.bo.LowFunctionality)

insertLowFunctionality

public void insertLowFunctionality(LowFunctionality aLowFunctionality,
                                   it.eng.spago.security.IEngUserProfile profile)
                            throws EMFUserError
Description copied from interface: ILowFunctionalityDAO
Implements the query to insert a low functionality. All information needed is stored into the input LowFunctionality object.

Specified by:
insertLowFunctionality in interface ILowFunctionalityDAO
Parameters:
aLowFunctionality - The object containing all insert information
Throws:
EMFUserError - If an Exception occurred
See Also:
ILowFunctionalityDAO.insertLowFunctionality(it.eng.spagobi.bo.LowFunctionality, it.eng.spago.security.IEngUserProfile)

eraseLowFunctionality

public void eraseLowFunctionality(LowFunctionality aLowFunctionality,
                                  it.eng.spago.security.IEngUserProfile profile)
                           throws EMFUserError
Description copied from interface: ILowFunctionalityDAO
Implements the query to erase a low functionality. All information needed is stored into the input LowFunctionality object.

Specified by:
eraseLowFunctionality in interface ILowFunctionalityDAO
Parameters:
aLowFunctionality - The object containing all erase information
Throws:
EMFUserError - If an Exception occurred
See Also:
ILowFunctionalityDAO.eraseLowFunctionality(it.eng.spagobi.bo.LowFunctionality, it.eng.spago.security.IEngUserProfile)

existByCode

public java.lang.Integer existByCode(java.lang.String code)
                              throws EMFUserError
Description copied from interface: ILowFunctionalityDAO
Control if exist a functionality with the given code

Specified by:
existByCode in interface ILowFunctionalityDAO
Parameters:
code - The code of the functionality
Returns:
The functionality ID
Throws:
EMFUserError
See Also:
ILowFunctionalityDAO.existByCode(java.lang.String)

hasChild

public boolean hasChild(java.lang.String path)
                 throws EMFUserError
Description copied from interface: ILowFunctionalityDAO
Control if the functionality with the given path has childs

Specified by:
hasChild in interface ILowFunctionalityDAO
Parameters:
path - String path of the functionality
Throws:
EMFUserError
See Also:
ILowFunctionalityDAO.hasChild(java.lang.String)