it.eng.spagobi.kpi.model.dao
Class ModelInstanceDAOImpl

java.lang.Object
  extended by it.eng.spagobi.commons.dao.AbstractHibernateDAO
      extended by it.eng.spagobi.kpi.model.dao.ModelInstanceDAOImpl
All Implemented Interfaces:
IModelInstanceDAO

public class ModelInstanceDAOImpl
extends AbstractHibernateDAO
implements IModelInstanceDAO


Constructor Summary
ModelInstanceDAOImpl()
           
 
Method Summary
 void deleteKpiValue(java.lang.Integer kpiInstId)
           
 boolean deleteModelInstance(java.lang.Integer modelId)
          Delete a Model Instance.
 java.util.List getCandidateModelChildren(java.lang.Integer parentId)
           
 java.lang.Integer insertModelInstance(ModelInstance toCreate)
           
 ModelInstance loadModelInstanceWithChildrenById(java.lang.Integer id)
           
 ModelInstance loadModelInstanceWithoutChildrenById(java.lang.Integer id)
           
 java.util.List loadModelsInstanceRoot()
          Returns the List of ModelInstance Root.
 java.util.List loadModelsInstanceRoot(java.lang.String fieldOrder, java.lang.String typeOrder)
           
 void modifyModelInstance(ModelInstance value)
           
 
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

ModelInstanceDAOImpl

public ModelInstanceDAOImpl()
Method Detail

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.

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

modifyModelInstance

public void modifyModelInstance(ModelInstance value)
                         throws it.eng.spago.error.EMFUserError
Specified by:
modifyModelInstance 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

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