|
||||||||||
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
Field Summary |
---|
Fields inherited from class it.eng.spagobi.commons.dao.AbstractHibernateDAO |
---|
TENANT_FILTER_NAME |
Constructor Summary | |
---|---|
ModelDAOImpl()
|
Method Summary | |
---|---|
boolean |
deleteModel(java.lang.Integer modelId)
Delete a Model (children and attributes). |
java.lang.Integer |
insertModel(Model model)
Insert a model and return the new model. |
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 |
---|
commitIfActiveAndClose, disableTenantFilter, enableTenantFilter, getSession, getTenant, getUserProfile, logException, rollbackIfActiveAndClose, setTenant, 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, setTenant, setUserID, setUserProfile |
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
public java.lang.Integer insertModel(Model model) throws it.eng.spago.error.EMFUserError
IModelDAO
insertModel
in interface IModelDAO
model
- the model to create
it.eng.spago.error.EMFUserError
- the EMF user error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |