it.eng.spagobi.kpi.model.dao
Class ModelInstanceDAOImpl
java.lang.Object
it.eng.spagobi.commons.dao.AbstractHibernateDAO
it.eng.spagobi.kpi.model.dao.ModelInstanceDAOImpl
- All Implemented Interfaces:
- IModelInstanceDAO
public class ModelInstanceDAOImpl
- extends AbstractHibernateDAO
- implements IModelInstanceDAO
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ModelInstanceDAOImpl
public ModelInstanceDAOImpl()
toModelInstanceNode
public static ModelInstanceNode toModelInstanceNode(SbiKpiModelInst hibSbiKpiModelInst)
throws it.eng.spago.error.EMFUserError
- Throws:
it.eng.spago.error.EMFUserError
loadModelInstanceById
public ModelInstanceNode loadModelInstanceById(java.lang.Integer id,
java.util.Date requestedDate)
throws it.eng.spago.error.EMFUserError
- Specified by:
loadModelInstanceById
in interface IModelInstanceDAO
- Throws:
it.eng.spago.error.EMFUserError
loadModelInstanceByLabel
public ModelInstanceNode loadModelInstanceByLabel(java.lang.String label,
java.util.Date requestedDate)
throws it.eng.spago.error.EMFUserError
- Specified by:
loadModelInstanceByLabel
in interface IModelInstanceDAO
- Throws:
it.eng.spago.error.EMFUserError
loadModelsInstanceRoot
public java.util.List loadModelsInstanceRoot()
throws it.eng.spago.error.EMFUserError
- Description copied from interface:
IModelInstanceDAO
- Returns the List of ModelInstance Root.
- Specified by:
loadModelsInstanceRoot
in interface IModelInstanceDAO
- Returns:
- List of ModelInstance Root.
- Throws:
it.eng.spago.error.EMFUserError
- If an Exception occurred.
toModelInstanceWithoutChildren
public static ModelInstance toModelInstanceWithoutChildren(SbiKpiModelInst value,
org.hibernate.Session aSession)
loadModelInstanceWithoutChildrenById
public ModelInstance loadModelInstanceWithoutChildrenById(java.lang.Integer id)
throws it.eng.spago.error.EMFUserError
- Specified by:
loadModelInstanceWithoutChildrenById
in interface IModelInstanceDAO
- Throws:
it.eng.spago.error.EMFUserError
loadModelInstanceWithoutChildrenByLabel
public ModelInstance loadModelInstanceWithoutChildrenByLabel(java.lang.String label)
throws it.eng.spago.error.EMFUserError
- Specified by:
loadModelInstanceWithoutChildrenByLabel
in interface IModelInstanceDAO
- Throws:
it.eng.spago.error.EMFUserError
modifyModelInstance
public void modifyModelInstance(ModelInstance value)
throws it.eng.spago.error.EMFUserError
- Specified by:
modifyModelInstance
in interface IModelInstanceDAO
- Throws:
it.eng.spago.error.EMFUserError
insertModelInstanceWithKpi
public java.lang.Integer insertModelInstanceWithKpi(ModelInstance toCreate)
throws it.eng.spago.error.EMFUserError
- Specified by:
insertModelInstanceWithKpi
in interface IModelInstanceDAO
- Throws:
it.eng.spago.error.EMFUserError
insertModelInstance
public java.lang.Integer insertModelInstance(ModelInstance toCreate)
throws it.eng.spago.error.EMFUserError
- Specified by:
insertModelInstance
in interface IModelInstanceDAO
- Throws:
it.eng.spago.error.EMFUserError
loadModelInstanceWithChildrenById
public ModelInstance loadModelInstanceWithChildrenById(java.lang.Integer id)
throws it.eng.spago.error.EMFUserError
- Specified by:
loadModelInstanceWithChildrenById
in interface IModelInstanceDAO
- Throws:
it.eng.spago.error.EMFUserError
loadModelInstanceWithChildrenByLabel
public ModelInstance loadModelInstanceWithChildrenByLabel(java.lang.String label)
throws it.eng.spago.error.EMFUserError
- Specified by:
loadModelInstanceWithChildrenByLabel
in interface IModelInstanceDAO
- Throws:
it.eng.spago.error.EMFUserError
getCandidateModelChildren
public java.util.List getCandidateModelChildren(java.lang.Integer parentId)
throws it.eng.spago.error.EMFUserError
- Specified by:
getCandidateModelChildren
in interface IModelInstanceDAO
- Throws:
it.eng.spago.error.EMFUserError
deleteKpiValue
public void deleteKpiValue(java.lang.Integer kpiInstId)
throws it.eng.spago.error.EMFUserError
- Throws:
it.eng.spago.error.EMFUserError
deleteModelInstance
public boolean deleteModelInstance(java.lang.Integer modelId)
throws it.eng.spago.error.EMFUserError
- Description copied from interface:
IModelInstanceDAO
- Delete a Model Instance.
- Specified by:
deleteModelInstance
in interface IModelInstanceDAO
- Parameters:
modelId
- id of the model instance to delete.
- Returns:
- Return true if the model is deleted.
- Throws:
it.eng.spago.error.EMFUserError
- If an Exception occurred.
loadModelsInstanceRoot
public java.util.List loadModelsInstanceRoot(java.lang.String fieldOrder,
java.lang.String typeOrder)
throws it.eng.spago.error.EMFUserError
- Specified by:
loadModelsInstanceRoot
in interface IModelInstanceDAO
- Throws:
it.eng.spago.error.EMFUserError
loadModelInstanceRoot
public ModelInstance loadModelInstanceRoot(ModelInstance mi)
throws it.eng.spago.error.EMFUserError
- Returns the root of a model instance
- Specified by:
loadModelInstanceRoot
in interface IModelInstanceDAO
- Parameters:
mi
- The model instance
- Returns:
-
- Throws:
it.eng.spago.error.EMFUserError
getExistentRootsByName
public java.lang.Integer getExistentRootsByName(java.lang.String name)
throws it.eng.spago.error.EMFUserError
- Specified by:
getExistentRootsByName
in interface IModelInstanceDAO
- Throws:
it.eng.spago.error.EMFUserError