Class BusinessDataReloader


  • public class BusinessDataReloader
    extends java.lang.Object
    Author:
    Elias Ricken de Medeiros
    • 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 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • 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 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 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