Class BusinessDataReloader
- java.lang.Object
-
- org.bonitasoft.engine.business.data.impl.BusinessDataReloader
-
public class BusinessDataReloader extends java.lang.Object- Author:
- Elias Ricken de Medeiros
-
-
Constructor Summary
Constructors Constructor Description BusinessDataReloader(BusinessDataRepository businessDataRepository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ClassgetEntityRealClass(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 Detail
-
BusinessDataReloader
public BusinessDataReloader(BusinessDataRepository businessDataRepository)
-
-
Method Detail
-
reloadEntity
public org.bonitasoft.engine.bdm.Entity reloadEntity(org.bonitasoft.engine.bdm.Entity entityToReload) throws SBusinessDataNotFoundExceptionReloads theEntityfrom database using the currentEntityclassName and persistenceId- Parameters:
entityToReload- the entity to be reloaded- Returns:
- the
Entityreload from the database - Throws:
SBusinessDataNotFoundException
-
getEntityRealClass
public java.lang.Class getEntityRealClass(org.bonitasoft.engine.bdm.Entity entity)
-
reloadEntitySoftly
public org.bonitasoft.engine.bdm.Entity reloadEntitySoftly(org.bonitasoft.engine.bdm.Entity entityToReload) throws SBusinessDataNotFoundExceptionReloads 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
-
-