it.eng.spagobi.kpi.model.dao
Class ResourceDAOImpl
java.lang.Object
it.eng.spagobi.commons.dao.AbstractHibernateDAO
it.eng.spagobi.kpi.model.dao.ResourceDAOImpl
- All Implemented Interfaces:
- ISpagoBIDao, IResourceDAO
public class ResourceDAOImpl
- extends AbstractHibernateDAO
- implements IResourceDAO
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 |
ResourceDAOImpl
public ResourceDAOImpl()
modifyResource
public void modifyResource(Resource resource)
throws it.eng.spago.error.EMFUserError
- Specified by:
modifyResource
in interface IResourceDAO
- Throws:
it.eng.spago.error.EMFUserError
insertResource
public java.lang.Integer insertResource(Resource toCreate)
throws it.eng.spago.error.EMFUserError
- Description copied from interface:
IResourceDAO
- Inserts a new Resource
- Specified by:
insertResource
in interface IResourceDAO
- Throws:
it.eng.spago.error.EMFUserError
- If an Exception occurred
loadResourceById
public Resource loadResourceById(java.lang.Integer id)
throws it.eng.spago.error.EMFUserError
- Description copied from interface:
IResourceDAO
- Load resource by Id
- Specified by:
loadResourceById
in interface IResourceDAO
- Throws:
it.eng.spago.error.EMFUserError
- If an Exception occurred
toResource
public Resource toResource(SbiResources r)
- Specified by:
toResource
in interface IResourceDAO
toResource
public Resource toResource(SbiKpiModelResources re)
toSbiResource
public SbiResources toSbiResource(Resource r)
throws it.eng.spago.error.EMFUserError
- Specified by:
toSbiResource
in interface IResourceDAO
- Throws:
it.eng.spago.error.EMFUserError
deleteResource
public void deleteResource(java.lang.Integer resouceId)
throws it.eng.spago.error.EMFUserError
- Specified by:
deleteResource
in interface IResourceDAO
- Throws:
it.eng.spago.error.EMFUserError
loadResourcesList
public java.util.List loadResourcesList(java.lang.String fieldOrder,
java.lang.String typeOrder)
throws it.eng.spago.error.EMFUserError
- Specified by:
loadResourcesList
in interface IResourceDAO
- Throws:
it.eng.spago.error.EMFUserError
loadPagedResourcesList
public java.util.List loadPagedResourcesList(java.lang.Integer offset,
java.lang.Integer fetchSize)
throws it.eng.spago.error.EMFUserError
- Specified by:
loadPagedResourcesList
in interface IResourceDAO
- Throws:
it.eng.spago.error.EMFUserError
countResources
public java.lang.Integer countResources()
throws it.eng.spago.error.EMFUserError
- Specified by:
countResources
in interface IResourceDAO
- Throws:
it.eng.spago.error.EMFUserError
loadResourcesByNameAndModelInst
public Resource loadResourcesByNameAndModelInst(java.lang.String resourceName)
throws it.eng.spago.error.EMFUserError
- Description copied from interface:
IResourceDAO
- Returns the Resource of the referred id
- Specified by:
loadResourcesByNameAndModelInst
in interface IResourceDAO
- Returns:
- Resource with the referred id
- Throws:
it.eng.spago.error.EMFUserError
- If an Exception occurred
loadResourceByCode
public Resource loadResourceByCode(java.lang.String resourceCode)
throws it.eng.spago.error.EMFUserError
- Description copied from interface:
IResourceDAO
- Returns the Resource of the referred code
- Specified by:
loadResourceByCode
in interface IResourceDAO
- Returns:
- Resource with the referred code
- Throws:
it.eng.spago.error.EMFUserError
- If an Exception occurred