it.eng.spagobi.commons.dao
Class ConfigDAO

java.lang.Object
  extended by it.eng.spagobi.commons.dao.AbstractHibernateDAO
      extended by it.eng.spagobi.commons.dao.ConfigDAO
All Implemented Interfaces:
IConfigDAO

public class ConfigDAO
extends AbstractHibernateDAO
implements IConfigDAO


Constructor Summary
ConfigDAO()
           
 
Method Summary
 java.util.List loadAllConfigParameters()
           
 Config loadConfigParametersById(java.lang.String id)
          Load configuration by id.
 Config loadConfigParametersByLabel(java.lang.String label)
          Load configuration by complete label.
 java.util.List loadConfigParametersByProperties(java.lang.String prop)
          Load configuration by a property node.
 
Methods inherited from class it.eng.spagobi.commons.dao.AbstractHibernateDAO
getSession, logException, rollbackIfActiveAndClose
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigDAO

public ConfigDAO()
Method Detail

loadAllConfigParameters

public java.util.List loadAllConfigParameters()
                                       throws java.lang.Exception
Specified by:
loadAllConfigParameters in interface IConfigDAO
Throws:
java.lang.Exception

loadConfigParametersById

public Config loadConfigParametersById(java.lang.String id)
                                throws java.lang.Exception
Load configuration by id.

Specified by:
loadConfigParametersById in interface IConfigDAO
Parameters:
id - the configuration id
Returns:
the config object
Throws:
it.eng.spago.error.EMFUserError - the EMF user error
java.lang.Exception
See Also:
it.eng.spagobi.common.bo.dao.ISbiConfigDAO#loadConfigParametersById(integer)

loadConfigParametersByLabel

public Config loadConfigParametersByLabel(java.lang.String label)
                                   throws java.lang.Exception
Load configuration by complete label.

Specified by:
loadConfigParametersByLabel in interface IConfigDAO
Parameters:
label - the configuration label
Returns:
the config object
Throws:
it.eng.spago.error.EMFUserError - the EMF user error
java.lang.Exception
See Also:
it.eng.spagobi.common.bo.dao.ISbiConfigDAO#loadConfigParametersById(string)

loadConfigParametersByProperties

public java.util.List loadConfigParametersByProperties(java.lang.String prop)
                                                throws java.lang.Exception
Load configuration by a property node.

Specified by:
loadConfigParametersByProperties in interface IConfigDAO
Parameters:
prop - the configuration label
Returns:
a list with all children of the property node
Throws:
it.eng.spago.error.EMFUserError - the EMF user error
java.lang.Exception
See Also:
it.eng.spagobi.common.bo.dao.ISbiConfigDAO#loadConfigParametersByProperties(string)