it.eng.spagobi.bo.dao.hibernate
Class DomainDAOHibImpl
java.lang.Object
it.eng.spagobi.bo.dao.hibernate.AbstractHibernateDAO
it.eng.spagobi.bo.dao.hibernate.DomainDAOHibImpl
- All Implemented Interfaces:
- IDomainDAO
public class DomainDAOHibImpl
- extends AbstractHibernateDAO
- implements IDomainDAO
Defines the Hibernate implementations for all DAO methods,
for a domain.
- Author:
- zoppello
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. |
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. |
Domain |
toDomain(SbiDomains hibDomain)
From the hibernate domain object at input, gives
the corrispondent Domain object. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DomainDAOHibImpl
public DomainDAOHibImpl()
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 codecodeValue
- 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)
toDomain
public Domain toDomain(SbiDomains hibDomain)
- From the hibernate domain object at input, gives
the corrispondent
Domain
object.
- Parameters:
hibDomain
- The hybernate Domain object
- Returns:
- The corrispondent
Domain