Class PersistDeferredRelationship

java.lang.Object
io.ebeaninternal.server.core.PersistDeferredRelationship

public final class PersistDeferredRelationship extends Object
Deferred update of a relationship where an Id value is not initially available so instead we execute this later as a SqlUpdate statement.
  • Constructor Details

    • PersistDeferredRelationship

      public PersistDeferredRelationship(SpiEbeanServer ebeanServer, BeanDescriptor<?> beanDescriptor, io.ebean.bean.EntityBean assocBean, ImportedId importedId, io.ebean.bean.EntityBean bean)
  • Method Details

    • execute

      public void execute(SpiTransaction transaction)
      Build and execute a SqlUpdate to set the importId value (as it will be available now).

      This is executed later (deferred) until after JDBC batch flush or prior to commit.