it.eng.spagobi.engines.config.dao
Class EngineDAOHibImpl

java.lang.Object
  extended by it.eng.spagobi.commons.dao.AbstractHibernateDAO
      extended by it.eng.spagobi.engines.config.dao.EngineDAOHibImpl
All Implemented Interfaces:
ISpagoBIDao, IEngineDAO

public class EngineDAOHibImpl
extends AbstractHibernateDAO
implements IEngineDAO

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

Author:
zoppello

Field Summary
 
Fields inherited from class it.eng.spagobi.commons.dao.AbstractHibernateDAO
TENANT_FILTER_NAME
 
Constructor Summary
EngineDAOHibImpl()
           
 
Method Summary
 void eraseEngine(Engine aEngine)
          Erase engine.
 java.util.List getAssociatedExporters(Engine engine)
          Get all the associated Exporters
 boolean hasBIObjAssociated(java.lang.String engineId)
          Checks for bi obj associated.
 void insertEngine(Engine aEngine)
          Insert engine.
 java.util.List loadAllEngines()
          Load all engines.
 java.util.List<Engine> loadAllEnginesForBIObjectType(java.lang.String biobjectType)
          Load all engines for bi object type.
 Engine loadEngineByID(java.lang.Integer engineID)
          Load engine by id.
 Engine loadEngineByLabel(java.lang.String engineLabel)
          Load engine by label.
 void modifyEngine(Engine aEngine)
          Modify engine.
 Engine toEngine(SbiEngines hibEngine)
          From the hibernate Engine at input, gives the corrispondent Engine object.
 Exporters toExporter(SbiExporters hibExps)
          From the hibernate Exporter at input, gives the corrispondent Engine object.
 
Methods inherited from class it.eng.spagobi.commons.dao.AbstractHibernateDAO
commitIfActiveAndClose, disableTenantFilter, enableTenantFilter, getSession, getTenant, getUserProfile, logException, rollbackIfActiveAndClose, setTenant, setUserID, setUserProfile, updateSbiCommonInfo4Insert, updateSbiCommonInfo4Update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface it.eng.spagobi.commons.dao.ISpagoBIDao
getUserProfile, setTenant, setUserID, setUserProfile
 

Constructor Detail

EngineDAOHibImpl

public EngineDAOHibImpl()
Method Detail

loadEngineByID

public Engine loadEngineByID(java.lang.Integer engineID)
                      throws it.eng.spago.error.EMFUserError
Load engine by id.

Specified by:
loadEngineByID in interface IEngineDAO
Parameters:
engineID - the engine id
Returns:
the engine
Throws:
it.eng.spago.error.EMFUserError - the EMF user error
See Also:
IEngineDAO.loadEngineByID(java.lang.Integer)

loadEngineByLabel

public Engine loadEngineByLabel(java.lang.String engineLabel)
                         throws it.eng.spago.error.EMFUserError
Load engine by label.

Specified by:
loadEngineByLabel in interface IEngineDAO
Parameters:
engineLabel - the engine label
Returns:
the engine
Throws:
it.eng.spago.error.EMFUserError - the EMF user error
See Also:
IEngineDAO.loadEngineByID(java.lang.Integer)

loadAllEngines

public java.util.List loadAllEngines()
                              throws it.eng.spago.error.EMFUserError
Load all engines.

Specified by:
loadAllEngines in interface IEngineDAO
Returns:
the list
Throws:
it.eng.spago.error.EMFUserError - the EMF user error
See Also:
IEngineDAO.loadAllEngines()

loadAllEnginesForBIObjectType

public java.util.List<Engine> loadAllEnginesForBIObjectType(java.lang.String biobjectType)
                                                     throws it.eng.spago.error.EMFUserError
Load all engines for bi object type.

Specified by:
loadAllEnginesForBIObjectType in interface IEngineDAO
Parameters:
biobjectType - the biobject type
Returns:
the list
Throws:
it.eng.spago.error.EMFUserError - the EMF user error
See Also:
IEngineDAO.loadAllEnginesForBIObjectType(java.lang.String)

modifyEngine

public void modifyEngine(Engine aEngine)
                  throws it.eng.spago.error.EMFUserError
Modify engine.

Specified by:
modifyEngine in interface IEngineDAO
Parameters:
aEngine - the a engine
Throws:
it.eng.spago.error.EMFUserError - the EMF user error
See Also:
IEngineDAO.modifyEngine(it.eng.spagobi.engines.config.bo.Engine)

insertEngine

public void insertEngine(Engine aEngine)
                  throws it.eng.spago.error.EMFUserError
Insert engine.

Specified by:
insertEngine in interface IEngineDAO
Parameters:
aEngine - the a engine
Throws:
it.eng.spago.error.EMFUserError - the EMF user error
See Also:
IEngineDAO.insertEngine(it.eng.spagobi.engines.config.bo.Engine)

eraseEngine

public void eraseEngine(Engine aEngine)
                 throws it.eng.spago.error.EMFUserError
Erase engine.

Specified by:
eraseEngine in interface IEngineDAO
Parameters:
aEngine - the a engine
Throws:
it.eng.spago.error.EMFUserError - the EMF user error
See Also:
IEngineDAO.eraseEngine(it.eng.spagobi.engines.config.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

toExporter

public Exporters toExporter(SbiExporters hibExps)
From the hibernate Exporter 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
Checks for bi obj associated.

Specified by:
hasBIObjAssociated in interface IEngineDAO
Parameters:
engineId - the engine id
Returns:
true, if checks for bi obj associated
Throws:
it.eng.spago.error.EMFUserError - the EMF user error
See Also:
IEngineDAO.hasBIObjAssociated(java.lang.String)

getAssociatedExporters

public java.util.List getAssociatedExporters(Engine engine)
                                      throws it.eng.spago.error.EMFUserError
Description copied from interface: IEngineDAO
Get all the associated Exporters

Specified by:
getAssociatedExporters in interface IEngineDAO
Parameters:
engine - The engine identifier
Returns:
The list of associated Exporters
Throws:
it.eng.spago.error.EMFUserError - If any exception occurred