it.eng.spagobi.commons.dao
Interface IDomainDAO

All Known Implementing Classes:
DomainDAOHibImpl

public interface IDomainDAO

Defines the interfaces for all methods needed to operate with a domain.


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.
 SbiDomains loadSbiDomainByCodeAndValue(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.
 

Method Detail

loadListDomainsByType

java.util.List loadListDomainsByType(java.lang.String domainType)
                                     throws it.eng.spago.error.EMFUserError
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.

Parameters:
domainType - The String identifying the domain type
Returns:
The list of all domains
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred

loadDomainById

Domain loadDomainById(java.lang.Integer id)
                      throws it.eng.spago.error.EMFUserError
Returns the domain identified by the input parameter id, storing it in a Domain object.

Parameters:
id - The identifier domain id
Returns:
The Domain object storing the domain
Throws:
it.eng.spago.error.EMFUserError - if an Exception occurs

loadDomainByCodeAndValue

Domain loadDomainByCodeAndValue(java.lang.String codeDomain,
                                java.lang.String codeValue)
                                throws it.eng.spago.error.EMFUserError
Returns the domain identified by the two input parameters codeDomain and codeValue, storing it in a Domain object.

Parameters:
codeDomain - The identifier domain code
codeValue - The identifier domain value code
Returns:
The Domain object storing the domain
Throws:
it.eng.spago.error.EMFUserError - if an Exception occurs

loadSbiDomainByCodeAndValue

SbiDomains loadSbiDomainByCodeAndValue(java.lang.String codeDomain,
                                       java.lang.String codeValue)
                                       throws it.eng.spago.error.EMFUserError
Returns the domain identified by the two input parameters codeDomain and codeValue, storing it in a Domain object.

Parameters:
codeDomain - The identifier domain code
codeValue - The identifier domain value code
Returns:
The Domain object storing the domain
Throws:
it.eng.spago.error.EMFUserError - if an Exception occurs

loadListDomains

java.util.List loadListDomains()
                               throws it.eng.spago.error.EMFUserError
Loads all possible domain, storing each of them into a Domain and after putting all objects into a list, which is returned.

Returns:
The list of all domains
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred