|
||||||||||
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.
Field Summary |
---|
Fields inherited from class it.eng.spagobi.commons.dao.AbstractHibernateDAO |
---|
TENANT_FILTER_NAME |
Constructor Summary | |
---|---|
DomainDAOHibImpl()
|
Method Summary | |
---|---|
void |
delete(java.lang.Integer idDomain)
Delete domain by id. |
SbiDomains |
fromDomain(Domain Domain)
to the hibernate domain object at input, from the corrispondent Domain object. |
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. |
SbiDomains |
loadSbiDomainByCodeAndValue(java.lang.String codeDomain,
java.lang.String codeValue)
Load domain by code and value. |
void |
saveDomain(Domain domain)
Save domain by id. |
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 |
---|
commitIfActiveAndClose, disableTenantFilter, enableTenantFilter, getSession, getTenant, getUserProfile, logException, rollbackIfActiveAndClose, setTenant, setUserID, setUserProfile, updateSbiCommonInfo4Insert, updateSbiCommonInfo4Update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface it.eng.spagobi.commons.dao.ISpagoBIDao |
---|
getUserProfile, setTenant, setUserID, setUserProfile |
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 SbiDomains loadSbiDomainByCodeAndValue(java.lang.String codeDomain, java.lang.String codeValue) throws it.eng.spago.error.EMFUserError
loadSbiDomainByCodeAndValue
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
public SbiDomains fromDomain(Domain Domain)
Domain
object.
Domain
- object
SbiDomain
public void saveDomain(Domain domain) throws it.eng.spago.error.EMFUserError
saveDomain
in interface IDomainDAO
id
- the id
it.eng.spago.error.EMFUserError
- the EMF user errorpublic void delete(java.lang.Integer idDomain) throws it.eng.spago.error.EMFUserError
delete
in interface IDomainDAO
id
- the id
it.eng.spago.error.EMFUserError
- the EMF user error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |