Class BusinessDataReloader
java.lang.Object
org.bonitasoft.engine.business.data.impl.BusinessDataReloader
- Author:
- Elias Ricken de Medeiros
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetEntityRealClass(org.bonitasoft.engine.bdm.Entity entity) org.bonitasoft.engine.bdm.EntityreloadEntity(org.bonitasoft.engine.bdm.Entity entityToReload) Reloads theEntityfrom database using the currentEntityclassName and persistenceIdorg.bonitasoft.engine.bdm.EntityreloadEntitySoftly(org.bonitasoft.engine.bdm.Entity entityToReload) Reloads theEntityfrom database using the currentEntityclassName and persistenceId if persistenceId is set.
-
Constructor Details
-
BusinessDataReloader
-
-
Method Details
-
reloadEntity
public org.bonitasoft.engine.bdm.Entity reloadEntity(org.bonitasoft.engine.bdm.Entity entityToReload) throws SBusinessDataNotFoundException Reloads theEntityfrom database using the currentEntityclassName and persistenceId- Parameters:
entityToReload- the entity to be reloaded- Returns:
- the
Entityreload from the database - Throws:
SBusinessDataNotFoundException
-
getEntityRealClass
-
reloadEntitySoftly
public org.bonitasoft.engine.bdm.Entity reloadEntitySoftly(org.bonitasoft.engine.bdm.Entity entityToReload) throws SBusinessDataNotFoundException Reloads theEntityfrom database using the currentEntityclassName and persistenceId if persistenceId is set. Otherwise returns the object itself.- Parameters:
entityToReload- the entity to be reloaded- Returns:
- the
Entityreload from the database if the persistenceId is set or the object itself. - Throws:
SBusinessDataNotFoundException
-