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

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

public class BIObjectDAOImpl
extends AbstractJdbcDAO
implements IBIObjectDAO

Defines the JDBC implementations for all DAO methods, for a BI Object.

Author:
zoppello

Constructor Summary
BIObjectDAOImpl()
           
 
Method Summary
 void eraseBIObject(BIObject obj)
          Implements the query to erase a BI Object.
 void fillBIObjectTemplate(BIObject obj)
           
 java.util.List getCorrectRolesForExecution(java.lang.String pathReport)
          Gets the correct roles for Report execution, given only the Report's path.
 java.util.List getCorrectRolesForExecution(java.lang.String pathReport, it.eng.spago.security.IEngUserProfile profile)
          Given the path String for a report and th User profile, gets the corret roles for execution.
 void insertBIObject(BIObject obj)
          Implements the query to insert a BIObject.
 BIObject loadBIObjectForDetail(java.lang.Integer biObjectID)
          Loads all detail information for a BI Object identified by its biObjectID identifier.
 BIObject loadBIObjectForDetail(java.lang.String path)
          Loads all detail information for a BI Object identified by its path identifier string.
 BIObject loadBIObjectForExecutionByPathAndRole(java.lang.String path, java.lang.String role)
          Loads all information for the execution of a BI Object identified by its path and its role.
 BIObject loadBIObjectForTree(java.lang.String path)
          Loads all tree information for a BI Object identified by its path identifier string.
 java.util.List loadBIObjectParametersForBIObject(BIObject biObject, java.lang.String role)
          Loads all the BI object parameters referring to a given BI Object, according to the particular role.
 void modifyBIObject(BIObject obj)
          Implements the query to modify a BI Object.
 void modifyBIObjectWithoutVersioning(BIObject obj)
          Implements the query to modify a BI Object, but without updating versioning.
 
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

BIObjectDAOImpl

public BIObjectDAOImpl()
Method Detail

loadBIObjectForExecutionByPathAndRole

public BIObject loadBIObjectForExecutionByPathAndRole(java.lang.String path,
                                                      java.lang.String role)
                                               throws EMFUserError
Description copied from interface: IBIObjectDAO
Loads all information for the execution of a BI Object identified by its path and its role. All these information, achived by a query to the DB, are stored into a BIObject object, which is returned.

Specified by:
loadBIObjectForExecutionByPathAndRole in interface IBIObjectDAO
Parameters:
path - The BI object path
role - The BI object role
Returns:
The BIobject execution information, stored into a BIObject
Throws:
EMFUserError - If an Exception occurs
See Also:
IBIObjectDAO.loadBIObjectForExecutionByPathAndRole(java.lang.String, java.lang.String)

loadBIObjectForDetail

public BIObject loadBIObjectForDetail(java.lang.Integer biObjectID)
                               throws EMFUserError
Description copied from interface: IBIObjectDAO
Loads all detail information for a BI Object identified by its biObjectID identifier. All these information, achived by a query to the DB, are stored into a BIObject object, which is returned.

Specified by:
loadBIObjectForDetail in interface IBIObjectDAO
Parameters:
biObjectID - the BI object identifier
Returns:
The BI object detail information, stored into a BIObject
Throws:
EMFUserError - If an Exception occurs
See Also:
IBIObjectDAO.loadBIObjectForDetail(java.lang.Integer)

loadBIObjectForDetail

public BIObject loadBIObjectForDetail(java.lang.String path)
                               throws EMFUserError
Description copied from interface: IBIObjectDAO
Loads all detail information for a BI Object identified by its path identifier string. All these information, achived by a query to the DB, are stored into a BIObject object, which is returned.

Specified by:
loadBIObjectForDetail in interface IBIObjectDAO
Parameters:
path - the BI object path string
Returns:
The BI object detail information, stored into a BIObject
Throws:
EMFUserError - If an Exception occurs
See Also:
IBIObjectDAO.loadBIObjectForDetail(java.lang.Integer)

loadBIObjectForTree

public BIObject loadBIObjectForTree(java.lang.String path)
                             throws EMFUserError
Description copied from interface: IBIObjectDAO
Loads all tree information for a BI Object identified by its path identifier string. All these information, achived by a query to the DB, are stored into a BIObject object, which is returned.

Specified by:
loadBIObjectForTree in interface IBIObjectDAO
Parameters:
path - the BI object path string
Returns:
The BI object tree information, stored into a BIObject
Throws:
EMFUserError - If an Exception occurs
See Also:
IBIObjectDAO.loadBIObjectForTree(java.lang.String)

modifyBIObject

public void modifyBIObject(BIObject obj)
                    throws EMFUserError
Description copied from interface: IBIObjectDAO
Implements the query to modify a BI Object. All information needed is stored into the input BIObject object.

Specified by:
modifyBIObject in interface IBIObjectDAO
Parameters:
obj - The BIobject containing all modify information
Throws:
EMFUserError - If an Exception occurred
See Also:
IBIObjectDAO.modifyBIObject(it.eng.spagobi.bo.BIObject)

modifyBIObjectWithoutVersioning

public void modifyBIObjectWithoutVersioning(BIObject obj)
                                     throws EMFUserError
Description copied from interface: IBIObjectDAO
Implements the query to modify a BI Object, but without updating versioning. All information needed is stored into the input BIObject object.

Specified by:
modifyBIObjectWithoutVersioning in interface IBIObjectDAO
Parameters:
obj - The BIobject containing all modify information
Throws:
EMFUserError - If an Exception occurred
See Also:
IBIObjectDAO.modifyBIObjectWithoutVersioning(it.eng.spagobi.bo.BIObject)

insertBIObject

public void insertBIObject(BIObject obj)
                    throws EMFUserError
Description copied from interface: IBIObjectDAO
Implements the query to insert a BIObject. All information needed is stored into the input BIObject object.

Specified by:
insertBIObject in interface IBIObjectDAO
Parameters:
obj - The object containing all insert information
Throws:
EMFUserError - If an Exception occurred
See Also:
IBIObjectDAO.insertBIObject(it.eng.spagobi.bo.BIObject)

eraseBIObject

public void eraseBIObject(BIObject obj)
                   throws EMFUserError
Description copied from interface: IBIObjectDAO
Implements the query to erase a BI Object. All information needed is stored into the input BIObject object.

Specified by:
eraseBIObject in interface IBIObjectDAO
Parameters:
obj - The object containing all delete information
Throws:
EMFUserError - If an Exception occurred
See Also:
IBIObjectDAO.eraseBIObject(it.eng.spagobi.bo.BIObject)

fillBIObjectTemplate

public void fillBIObjectTemplate(BIObject obj)
See Also:
it.eng.spagobi.bo.dao.IBIObjectDAO#fillBIObjectTemplate(it.eng.spagobi.bo.BIObject)

loadBIObjectParametersForBIObject

public java.util.List loadBIObjectParametersForBIObject(BIObject biObject,
                                                        java.lang.String role)
                                                 throws EMFUserError
Loads all the BI object parameters referring to a given BI Object, according to the particular role.

Parameters:
biObject - The input BI Object
role - A string defining the role
Returns:
A list of all BI Object parameters associated
Throws:
EMFUserError - If any exception occurs

getCorrectRolesForExecution

public java.util.List getCorrectRolesForExecution(java.lang.String pathReport,
                                                  it.eng.spago.security.IEngUserProfile profile)
                                           throws EMFUserError
Description copied from interface: IBIObjectDAO
Given the path String for a report and th User profile, gets the corret roles for execution.

Specified by:
getCorrectRolesForExecution in interface IBIObjectDAO
Parameters:
pathReport - The String path for the report
profile - The user profile
Returns:
The list of correct roles for execution
Throws:
EMFUserError - If an Exception occurred
See Also:
IBIObjectDAO.getCorrectRolesForExecution(java.lang.String, it.eng.spago.security.IEngUserProfile)

getCorrectRolesForExecution

public java.util.List getCorrectRolesForExecution(java.lang.String pathReport)
                                           throws EMFUserError
Description copied from interface: IBIObjectDAO
Gets the correct roles for Report execution, given only the Report's path.

Specified by:
getCorrectRolesForExecution in interface IBIObjectDAO
Parameters:
pathReport - The String path for the report
Returns:
The list of correct roles for execution
Throws:
EMFUserError - If an Exception occurred
See Also:
IBIObjectDAO.getCorrectRolesForExecution(java.lang.String)