44import io .teaql .core .meta .EntityDescriptor ;
55import io .teaql .core .meta .EntityMetaFactory ;
66import io .teaql .core .meta .PropertyDescriptor ;
7- import io .teaql .runtime .DefaultMutationRequest ;
7+ import io .teaql .runtime .EntityPersistenceMutation ;
88
99import java .util .*;
1010
@@ -152,8 +152,8 @@ void executeLedgerPlan(UserContext ctx, EntityMutationLedger root, MutationExecu
152152 deleteEntity .markForDeletion ();
153153 if (root .getComment () != null ) deleteEntity .setComment (root .getComment ());
154154
155- DefaultMutationRequest mutationRequest = new DefaultMutationRequest (
156- deleteEntity , DefaultMutationRequest .Action .DELETE );
155+ EntityPersistenceMutation mutationRequest = new EntityPersistenceMutation (
156+ deleteEntity , EntityPersistenceMutation .Action .DELETE );
157157 mutationExecutor .mutate (ctx , mutationRequest );
158158 }
159159
@@ -175,17 +175,17 @@ void executeLedgerPlan(UserContext ctx, EntityMutationLedger root, MutationExecu
175175
176176 // 3. Execute Inserts
177177 executeBatchMutations (ctx , insertBatches , changeSet , realEntities , root , mutationExecutor ,
178- DefaultMutationRequest .Action .SAVE , false );
178+ EntityPersistenceMutation .Action .SAVE , false );
179179
180180 // 4. Execute Updates
181181 executeBatchMutations (ctx , updateBatches , changeSet , realEntities , root , mutationExecutor ,
182- DefaultMutationRequest .Action .SAVE , true );
182+ EntityPersistenceMutation .Action .SAVE , true );
183183 }
184184
185185 private void executeBatchMutations (UserContext ctx , Map <String , List <EntityKey >> batches ,
186186 EntityChangeSet changeSet , Map <EntityKey , BaseEntity > realEntities ,
187187 EntityMutationLedger root , MutationExecutor mutationExecutor ,
188- DefaultMutationRequest .Action action , boolean markAsUpdated ) {
188+ EntityPersistenceMutation .Action action , boolean markAsUpdated ) {
189189 for (Map .Entry <String , List <EntityKey >> entry : batches .entrySet ()) {
190190 String entityName = entry .getKey ();
191191 List <EntityKey > keys = entry .getValue ();
@@ -213,7 +213,7 @@ private void executeBatchMutations(UserContext ctx, Map<String, List<EntityKey>>
213213 }
214214 if (root .getComment () != null ) entity .setComment (root .getComment ());
215215
216- DefaultMutationRequest mutationRequest = new DefaultMutationRequest (entity , action );
216+ EntityPersistenceMutation mutationRequest = new EntityPersistenceMutation (entity , action );
217217 mutationExecutor .mutate (ctx , mutationRequest );
218218 entity .clearUpdatedProperties ();
219219 }
0 commit comments