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

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

public class EngineDAOHibImpl
extends AbstractHibernateDAO
implements IEngineDAO

Defines the Hibernate implementations for all DAO methods, for an engine.

Author:
zoppello

Constructor Summary
EngineDAOHibImpl()
           
 
Method Summary
 void eraseEngine(Engine aEngine)
          Implements the query to erase an engine.
 boolean hasBIObjAssociated(java.lang.String engineId)
          Tells if an engine is associated to any BI Object.
 void insertEngine(Engine aEngine)
          Implements the query to insert an engine.
 java.util.List loadAllEngines()
          Loads all detail information for all engines.
 java.util.List loadAllEnginesForBIObjectType(java.lang.String biobjectType)
          Loads all detail information for all engines compatible to the BIObject type specified at input.
 Engine loadEngineByID(java.lang.Integer engineID)
          Loads all detail information for an engine identified by its engineID.
 void modifyEngine(Engine aEngine)
          Implements the query to modify an engine.
 Engine toEngine(SbiEngines hibEngine)
          From the hibernate Engine at input, gives the corrispondent Engine object.
 
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

EngineDAOHibImpl

public EngineDAOHibImpl()
Method Detail

loadEngineByID

public Engine loadEngineByID(java.lang.Integer engineID)
                      throws it.eng.spago.error.EMFUserError
Description copied from interface: IEngineDAO
Loads all detail information for an engine identified by its engineID. All these information, achived by a query to the DB, are stored into an engine object, which is returned.

Specified by:
loadEngineByID in interface IEngineDAO
Parameters:
engineID - The id for the engine to load
Returns:
An engine object containing all loaded information
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred
See Also:
IEngineDAO.loadEngineByID(java.lang.Integer)

loadAllEngines

public java.util.List loadAllEngines()
                              throws it.eng.spago.error.EMFUserError
Description copied from interface: IEngineDAO
Loads all detail information for all engines. For each of them, detail information is stored into an engine object. After that, all engines are stored into a List, which is returned.

Specified by:
loadAllEngines in interface IEngineDAO
Returns:
A list containing all engine objects
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred
See Also:
IEngineDAO.loadAllEngines()

loadAllEnginesForBIObjectType

public java.util.List loadAllEnginesForBIObjectType(java.lang.String biobjectType)
                                             throws it.eng.spago.error.EMFUserError
Description copied from interface: IEngineDAO
Loads all detail information for all engines compatible to the BIObject type specified at input. For each of them, detail information is stored into an engine object. After that, all engines are stored into a List, which is returned.

Specified by:
loadAllEnginesForBIObjectType in interface IEngineDAO
Returns:
A list containing all engine objects compatible with the BIObject type passed at input
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred
See Also:
IEngineDAO.loadAllEnginesForBIObjectType(java.lang.String)

modifyEngine

public void modifyEngine(Engine aEngine)
                  throws it.eng.spago.error.EMFUserError
Description copied from interface: IEngineDAO
Implements the query to modify an engine. All information needed is stored into the input engine object.

Specified by:
modifyEngine in interface IEngineDAO
Parameters:
aEngine - The object containing all modify information
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred
See Also:
IEngineDAO.modifyEngine(it.eng.spagobi.bo.Engine)

insertEngine

public void insertEngine(Engine aEngine)
                  throws it.eng.spago.error.EMFUserError
Description copied from interface: IEngineDAO
Implements the query to insert an engine. All information needed is stored into the input engine object.

Specified by:
insertEngine in interface IEngineDAO
Parameters:
aEngine - The object containing all insert information
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred
See Also:
IEngineDAO.insertEngine(it.eng.spagobi.bo.Engine)

eraseEngine

public void eraseEngine(Engine aEngine)
                 throws it.eng.spago.error.EMFUserError
Description copied from interface: IEngineDAO
Implements the query to erase an engine. All information needed is stored into the input engine object.

Specified by:
eraseEngine in interface IEngineDAO
Parameters:
aEngine - The object containing all delete information
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred
See Also:
IEngineDAO.eraseEngine(it.eng.spagobi.bo.Engine)

toEngine

public Engine toEngine(SbiEngines hibEngine)
From the hibernate Engine at input, gives the corrispondent Engine object.

Parameters:
hibEngine - The hybernate engine
Returns:
The corrispondent Engine object

hasBIObjAssociated

public boolean hasBIObjAssociated(java.lang.String engineId)
                           throws it.eng.spago.error.EMFUserError
Description copied from interface: IEngineDAO
Tells if an engine is associated to any BI Object. It is useful because an engine cannot be deleted if it is used by one or more BI Objects.

Specified by:
hasBIObjAssociated in interface IEngineDAO
Parameters:
engineId - The engine identifier
Returns:
True if the engine is used by one or more objects, else false
Throws:
it.eng.spago.error.EMFUserError - If any exception occurred
See Also:
IEngineDAO.hasBIObjAssociated(java.lang.String)