public class BusinessDataReloader extends Object
| Constructor and Description |
|---|
BusinessDataReloader(BusinessDataRepository businessDataRepository) |
| Modifier and Type | Method and Description |
|---|---|
Class |
getEntityRealClass(Entity entity) |
Entity |
reloadEntity(Entity entityToReload)
Reloads the
Entity from database using the current Entity className and persistenceId |
Entity |
reloadEntitySoftly(Entity entityToReload)
Reloads the
Entity from database using the current Entity className and persistenceId if persistenceId is set. |
public BusinessDataReloader(BusinessDataRepository businessDataRepository)
public Entity reloadEntity(Entity entityToReload) throws SBusinessDataNotFoundException
Entity from database using the current Entity className and persistenceIdentityToReload - the entity to be reloadedEntity reload from the databaseSBusinessDataNotFoundExceptionpublic Entity reloadEntitySoftly(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.SBusinessDataNotFoundExceptionCopyright © 2017 Bonitasoft S.A.. All rights reserved.