public class BusinessDataReloader
extends java.lang.Object
| Constructor and Description |
|---|
BusinessDataReloader(BusinessDataRepository businessDataRepository) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class |
getEntityRealClass(org.bonitasoft.engine.bdm.Entity entity) |
org.bonitasoft.engine.bdm.Entity |
reloadEntity(org.bonitasoft.engine.bdm.Entity entityToReload)
Reloads the
Entity from database using the current Entity className and persistenceId |
org.bonitasoft.engine.bdm.Entity |
reloadEntitySoftly(org.bonitasoft.engine.bdm.Entity entityToReload)
Reloads the
Entity from database using the current Entity className and persistenceId if persistenceId is set. |
public BusinessDataReloader(BusinessDataRepository businessDataRepository)
public org.bonitasoft.engine.bdm.Entity reloadEntity(org.bonitasoft.engine.bdm.Entity entityToReload)
throws SBusinessDataNotFoundException
Entity from database using the current Entity className and persistenceIdentityToReload - the entity to be reloadedEntity reload from the databaseSBusinessDataNotFoundExceptionpublic java.lang.Class getEntityRealClass(org.bonitasoft.engine.bdm.Entity entity)
public org.bonitasoft.engine.bdm.Entity reloadEntitySoftly(org.bonitasoft.engine.bdm.Entity entityToReload)
throws SBusinessDataNotFoundException
Entity from database using the current Entity className and persistenceId if persistenceId is set. Otherwise returns the
object itself.entityToReload - the entity to be reloadedEntity reload from the database if the persistenceId is set or the object itself.SBusinessDataNotFoundException