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

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

public class DomainDAOImpl
extends AbstractJdbcDAO
implements IDomainDAO

Defines the JDBC implementations for all DAO methods, for a domain.

Author:
zoppello

Constructor Summary
DomainDAOImpl()
           
 
Method Summary
 Domain loadDomainByCodeAndValue(java.lang.String codeDomain, java.lang.String codeValue)
          Returns the domain identified by the two input parameters codeDomain and codeValue, storing it in a Domain object.
 Domain loadDomainById(java.lang.Integer id)
          Returns the domain identified by the input parameter id, storing it in a Domain object.
 java.util.List loadListDomains()
          Loads all possible domain, storing each of them into a Domain and after putting all objects into a list, which is returned.
 java.util.List loadListDomainsByType(java.lang.String domainType)
          Loads all possible domain that refer to a given domain type, storing each of them into a Domain and after putting all objects into a list, which is returned.
 
Methods inherited from class it.eng.spagobi.bo.dao.jdbc.AbstractJdbcDAO
getConnection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DomainDAOImpl

public DomainDAOImpl()
Method Detail

loadListDomainsByType

public java.util.List loadListDomainsByType(java.lang.String domainType)
                                     throws EMFUserError
Description copied from interface: IDomainDAO
Loads all possible domain that refer to a given domain type, storing each of them into a Domain and after putting all objects into a list, which is returned.

Specified by:
loadListDomainsByType in interface IDomainDAO
Parameters:
domainType - The String identifying the domain type
Returns:
The list of all domains
Throws:
EMFUserError - If an Exception occurred
See Also:
IDomainDAO.loadListDomainsByType(java.lang.String)

loadDomainByCodeAndValue

public Domain loadDomainByCodeAndValue(java.lang.String codeDomain,
                                       java.lang.String codeValue)
                                throws EMFUserError
Description copied from interface: IDomainDAO
Returns the domain identified by the two input parameters codeDomain and codeValue, storing it in a Domain object.

Specified by:
loadDomainByCodeAndValue in interface IDomainDAO
Parameters:
codeDomain - The identifier domain code
codeValue - The identifier domain value code
Returns:
The Domain object storing the domain
Throws:
EMFUserError - if an Exception occurs
See Also:
IDomainDAO.loadDomainByCodeAndValue(java.lang.String, java.lang.String)

loadDomainById

public Domain loadDomainById(java.lang.Integer id)
                      throws EMFUserError
Description copied from interface: IDomainDAO
Returns the domain identified by the input parameter id, storing it in a Domain object.

Specified by:
loadDomainById in interface IDomainDAO
Parameters:
id - The identifier domain id
Returns:
The Domain object storing the domain
Throws:
EMFUserError - if an Exception occurs

loadListDomains

public java.util.List loadListDomains()
                               throws EMFUserError
Description copied from interface: IDomainDAO
Loads all possible domain, storing each of them into a Domain and after putting all objects into a list, which is returned.

Specified by:
loadListDomains in interface IDomainDAO
Returns:
The list of all domains
Throws:
EMFUserError - If an Exception occurred