|
||||||||||
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.ModelDAOImpl
public class ModelDAOImpl
Constructor Summary | |
---|---|
ModelDAOImpl()
|
Method Summary | |
---|---|
boolean |
deleteModel(java.lang.Integer modelId)
Delete a Model (children and attributes). |
java.lang.Integer |
insertModel(Model model,
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 value)
Modify model. |
protected static Model |
toModelWithoutChildren(SbiKpiModel value,
org.hibernate.Session aSession)
|
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 |
---|
public ModelDAOImpl()
Method Detail |
---|
public Model loadModelWithoutChildrenById(java.lang.Integer id) throws it.eng.spago.error.EMFUserError
IModelDAO
loadModelWithoutChildrenById
in interface IModelDAO
id
- of the Model
it.eng.spago.error.EMFUserError
- If an Exception occurredpublic Model loadModelWithChildrenById(java.lang.Integer id) throws it.eng.spago.error.EMFUserError
IModelDAO
loadModelWithChildrenById
in interface IModelDAO
id
- of the Model
it.eng.spago.error.EMFUserError
- If an Exception occurredpublic void modifyModel(Model value) throws it.eng.spago.error.EMFUserError
IModelDAO
modifyModel
in interface IModelDAO
value
- the a model
it.eng.spago.error.EMFUserError
- the EMF user errorpublic java.util.List loadModelsRoot() throws it.eng.spago.error.EMFUserError
IModelDAO
loadModelsRoot
in interface IModelDAO
it.eng.spago.error.EMFUserError
- If an Exception occurred.protected static Model toModelWithoutChildren(SbiKpiModel value, org.hibernate.Session aSession)
public java.lang.Integer insertModel(Model model, java.lang.Integer modelTypeId) throws it.eng.spago.error.EMFUserError
IModelDAO
insertModel
in interface IModelDAO
model
- the model to createmodelTypeId
- the id of the type of the model
it.eng.spago.error.EMFUserError
- the EMF user errorpublic boolean deleteModel(java.lang.Integer modelId) throws it.eng.spago.error.EMFUserError
IModelDAO
deleteModel
in interface IModelDAO
modelId
- id of the model to delete.
it.eng.spago.error.EMFUserError
public java.util.List loadModelsRoot(java.lang.String fieldOrder, java.lang.String typeOrder) throws it.eng.spago.error.EMFUserError
loadModelsRoot
in interface IModelDAO
it.eng.spago.error.EMFUserError
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |