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.Class
getEntityRealClass(org.bonitasoft.engine.bdm.Entity entity)
org.bonitasoft.engine.bdm.Entity
reloadEntity(org.bonitasoft.engine.bdm.Entity entityToReload)
Reloads theEntity
from database using the currentEntity
className and persistenceIdorg.bonitasoft.engine.bdm.Entity
reloadEntitySoftly(org.bonitasoft.engine.bdm.Entity entityToReload)
Reloads theEntity
from database using the currentEntity
className 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 SBusinessDataNotFoundException
Reloads theEntity
from database using the currentEntity
className and persistenceId- Parameters:
entityToReload
- the entity to be reloaded- Returns:
- the
Entity
reload 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 SBusinessDataNotFoundException
Reloads theEntity
from database using the currentEntity
className and persistenceId if persistenceId is set. Otherwise returns the object itself.- Parameters:
entityToReload
- the entity to be reloaded- Returns:
- the
Entity
reload from the database if the persistenceId is set or the object itself. - Throws:
SBusinessDataNotFoundException
-
-