|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.eng.spagobi.commons.dao.AbstractHibernateDAO
it.eng.spagobi.commons.dao.DomainDAOHibImpl
public class DomainDAOHibImpl
Defines the Hibernate implementations for all DAO methods, for a domain.
Constructor Summary | |
---|---|
DomainDAOHibImpl()
|
Method Summary | |
---|---|
Domain |
loadDomainByCodeAndValue(java.lang.String codeDomain,
java.lang.String codeValue)
Load domain by code and value. |
Domain |
loadDomainById(java.lang.Integer id)
Load domain by id. |
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)
Load list domains by type. |
Domain |
toDomain(SbiDomains hibDomain)
From the hibernate domain object at input, gives the corrispondent Domain object. |
Methods inherited from class it.eng.spagobi.commons.dao.AbstractHibernateDAO |
---|
getSession, logException |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DomainDAOHibImpl()
Method Detail |
---|
public java.util.List loadListDomainsByType(java.lang.String domainType) throws it.eng.spago.error.EMFUserError
loadListDomainsByType
in interface IDomainDAO
domainType
- the domain type
it.eng.spago.error.EMFUserError
- the EMF user errorIDomainDAO.loadListDomainsByType(java.lang.String)
public Domain loadDomainByCodeAndValue(java.lang.String codeDomain, java.lang.String codeValue) throws it.eng.spago.error.EMFUserError
loadDomainByCodeAndValue
in interface IDomainDAO
codeDomain
- the code domaincodeValue
- the code value
it.eng.spago.error.EMFUserError
- the EMF user errorIDomainDAO.loadDomainByCodeAndValue(java.lang.String,
java.lang.String)
public Domain toDomain(SbiDomains hibDomain)
Domain
object.
hibDomain
- The hybernate Domain object
Domain
public Domain loadDomainById(java.lang.Integer id) throws it.eng.spago.error.EMFUserError
loadDomainById
in interface IDomainDAO
id
- the id
it.eng.spago.error.EMFUserError
- the EMF user errorIDomainDAO.loadDomainById(java.lang.Integer)
public java.util.List loadListDomains() throws it.eng.spago.error.EMFUserError
IDomainDAO
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:
it.eng.spago.error.EMFUserError
- If an Exception occurred
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |