Class BusinessDataReloader

java.lang.Object
org.bonitasoft.engine.business.data.impl.BusinessDataReloader

public class BusinessDataReloader extends Object
Author:
Elias Ricken de Medeiros
  • Constructor Details

  • Method Details

    • reloadEntity

      public org.bonitasoft.engine.bdm.Entity reloadEntity(org.bonitasoft.engine.bdm.Entity entityToReload) throws SBusinessDataNotFoundException
      Reloads the Entity from database using the current Entity className and persistenceId
      Parameters:
      entityToReload - the entity to be reloaded
      Returns:
      the Entity reload from the database
      Throws:
      SBusinessDataNotFoundException
    • getEntityRealClass

      public 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 the Entity from database using the current Entity 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