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

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

public class LowFunctionalityDAOImpl
extends AbstractJdbcDAO
implements ILowFunctionalityDAO

Defines the JDBC implementations for all DAO methods, for a low functionality.

Author:
zoppello

Constructor Summary
LowFunctionalityDAOImpl()
           
 
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
 void fillRoles(LowFunctionality aLowFunctionality)
          Sets the roles for a given low functionality.
 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.jdbc.AbstractJdbcDAO
getConnection
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LowFunctionalityDAOImpl

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

fillRoles

public void fillRoles(LowFunctionality aLowFunctionality)
               throws EMFUserError
Sets the roles for a given low functionality.

Parameters:
aLowFunctionality - The input Low Functionality
Throws:
EMFUserError - If any exception occurred

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:
)

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)