|
||||||||||
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.kpi.model.dao.ModelResourceDAOImpl
public class ModelResourceDAOImpl
Constructor Summary | |
---|---|
ModelResourceDAOImpl()
|
Method Summary | |
---|---|
void |
addModelResource(java.lang.Integer modelId,
java.lang.Integer resourceId)
Add an association between a model instance and a resource. |
boolean |
isSelected(java.lang.Integer modelId,
java.lang.Integer resourceId)
Check if a resources is associated with a modelInstance. |
java.util.List |
loadModelResourceByModelId(java.lang.Integer modelInstId)
Load all couples . |
void |
removeAllModelResource(java.lang.Integer modelId)
Remove all association between a model and same resources. |
void |
removeModelResource(java.lang.Integer modelId,
java.lang.Integer resourceId)
Remove an association between a model instance and a resource. |
Resource |
toResource(SbiKpiModelResources re)
|
Methods inherited from class it.eng.spagobi.commons.dao.AbstractHibernateDAO |
---|
commitIfActiveAndClose, getSession, getUserProfile, logException, rollbackIfActiveAndClose, 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, setUserID, setUserProfile |
Constructor Detail |
---|
public ModelResourceDAOImpl()
Method Detail |
---|
public Resource toResource(SbiKpiModelResources re) throws it.eng.spago.error.EMFUserError
toResource
in interface IModelResourceDAO
it.eng.spago.error.EMFUserError
public java.util.List loadModelResourceByModelId(java.lang.Integer modelInstId) throws it.eng.spago.error.EMFUserError
IModelResourceDAO
loadModelResourceByModelId
in interface IModelResourceDAO
it.eng.spago.error.EMFUserError
public void addModelResource(java.lang.Integer modelId, java.lang.Integer resourceId) throws it.eng.spago.error.EMFUserError
IModelResourceDAO
addModelResource
in interface IModelResourceDAO
modelId
- the id of modelInstance.resourceId
- the id of the resource.
it.eng.spago.error.EMFUserError
public boolean isSelected(java.lang.Integer modelId, java.lang.Integer resourceId) throws it.eng.spago.error.EMFUserError
IModelResourceDAO
isSelected
in interface IModelResourceDAO
modelId
- the id of modelInstance to check.resourceId
- the id of resources to check.
it.eng.spago.error.EMFUserError
public void removeModelResource(java.lang.Integer modelId, java.lang.Integer resourceId) throws it.eng.spago.error.EMFUserError
IModelResourceDAO
removeModelResource
in interface IModelResourceDAO
modelId
- the id of modelInstance.resourceId
- the id of the resource.
it.eng.spago.error.EMFUserError
public void removeAllModelResource(java.lang.Integer modelId) throws it.eng.spago.error.EMFUserError
IModelResourceDAO
removeAllModelResource
in interface IModelResourceDAO
modelId
- the id of modelInstance.
it.eng.spago.error.EMFUserError
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |