Package io.ebeaninternal.server.core
Class PersistDeferredRelationship
- java.lang.Object
-
- io.ebeaninternal.server.core.PersistDeferredRelationship
-
public 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 Summary
Constructors Constructor Description PersistDeferredRelationship(SpiEbeanServer ebeanServer, BeanDescriptor<?> beanDescriptor, EntityBean assocBean, ImportedId importedId, EntityBean bean)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(SpiTransaction transaction)
Build and execute a SqlUpdate to set the importId value (as it will be available now).
-
-
-
Constructor Detail
-
PersistDeferredRelationship
public PersistDeferredRelationship(SpiEbeanServer ebeanServer, BeanDescriptor<?> beanDescriptor, EntityBean assocBean, ImportedId importedId, EntityBean bean)
-
-
Method Detail
-
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.
-
-