it.eng.spagobi.kpi.model.dao
Interface IModelDAO

All Superinterfaces:
ISpagoBIDao
All Known Implementing Classes:
ModelDAOImpl

public interface IModelDAO
extends ISpagoBIDao


Method Summary
 boolean deleteModel(java.lang.Integer modelId)
          Delete a Model (children and attributes).
 java.lang.Integer insertModel(Model aModel)
          Insert a model and return the new model.
 java.lang.Integer insertModel(Model aModel, java.lang.Integer modelTypeId)
          Insert a model and return the new model.
 java.util.List loadModelsRoot()
          Returns the List of Model Root.
 java.util.List loadModelsRoot(java.lang.String fieldOrder, java.lang.String typeOrder)
           
 Model loadModelWithChildrenById(java.lang.Integer id)
          Returns the Model wit its children of the referred id
 Model loadModelWithoutChildrenById(java.lang.Integer id)
          Returns the Model without its children of the referred id
 void modifyModel(Model aModel)
          Modify model.
 
Methods inherited from interface it.eng.spagobi.commons.dao.ISpagoBIDao
getUserProfile, setTenant, setUserID, setUserProfile
 

Method Detail

loadModelWithoutChildrenById

Model loadModelWithoutChildrenById(java.lang.Integer id)
                                   throws it.eng.spago.error.EMFUserError
Returns the Model without its children of the referred id

Parameters:
id - of the Model
Returns:
Model of the referred id
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred

loadModelWithChildrenById

Model loadModelWithChildrenById(java.lang.Integer id)
                                throws it.eng.spago.error.EMFUserError
Returns the Model wit its children of the referred id

Parameters:
id - of the Model
Returns:
Model of the referred id
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred

modifyModel

void modifyModel(Model aModel)
                 throws it.eng.spago.error.EMFUserError
Modify model.

Parameters:
aModel - the a model
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

insertModel

java.lang.Integer insertModel(Model aModel,
                              java.lang.Integer modelTypeId)
                              throws it.eng.spago.error.EMFUserError
Insert a model and return the new model.

Parameters:
aModel - the model to create
modelTypeId - the id of the type of the model
Returns:
the id of the model created
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

insertModel

java.lang.Integer insertModel(Model aModel)
                              throws it.eng.spago.error.EMFUserError
Insert a model and return the new model.

Parameters:
aModel - the model to create
Returns:
the id of the model created
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

loadModelsRoot

java.util.List loadModelsRoot()
                              throws it.eng.spago.error.EMFUserError
Returns the List of Model Root.

Returns:
List of Model Root.
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred.

deleteModel

boolean deleteModel(java.lang.Integer modelId)
                    throws it.eng.spago.error.EMFUserError
Delete a Model (children and attributes).

Parameters:
modelId - id of the model to delete.
Returns:
Return true if the model is deleted.
Throws:
EMFUSEMFUserError - If an Exception occurred.
it.eng.spago.error.EMFUserError

loadModelsRoot

java.util.List loadModelsRoot(java.lang.String fieldOrder,
                              java.lang.String typeOrder)
                              throws it.eng.spago.error.EMFUserError
Throws:
it.eng.spago.error.EMFUserError