You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: services-custom/dynamodb-enhanced/src/main/java/software/amazon/awssdk/enhanced/dynamodb/internal/operations/UpdateItemOperation.java
+3-14Lines changed: 3 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -270,20 +270,9 @@ public TransactWriteItem generateTransactWriteItem(TableSchema<T> tableSchema, O
270
270
}
271
271
272
272
/**
273
-
* Generates the final UpdateExpression by merging expressions from multiple sources:
274
-
* <ol>
275
-
* <li><b>POJO attributes</b>: Creates SET/REMOVE actions for non-key attributes from the item POJO</li>
276
-
* <li><b>Extension expressions</b>: Includes UpdateExpression from extensions (if any)</li>
277
-
* <li><b>Request expressions</b>: Includes explicit UpdateExpression from the request (if any)</li>
278
-
* </ol>
279
-
*
280
-
* <p><b>Conflict Detection:</b> All conflicts are detected server-side by DynamoDB and throw {@code DynamoDbException}.
281
-
*
282
-
* <p><b>Attribute Filtering:</b>
283
-
* When {@code ignoreNulls} is false, null POJO attributes normally generate REMOVE actions.
284
-
* However, attributes referenced in extension expressions are automatically excluded from
285
-
* REMOVE actions to prevent DynamoDB conflicts between extension and POJO operations.
286
-
*
273
+
* Merges UpdateExpressions from POJO attributes, extensions, and request with priority-based resolution.
274
+
* Attributes referenced in extension expressions are excluded from REMOVE actions to prevent conflicts.
275
+
*
287
276
* @param tableMetadata metadata about the table structure
288
277
* @param transformation write modification from extensions containing UpdateExpression
289
278
* @param attributes non-key attributes from the POJO item
Copy file name to clipboardExpand all lines: services-custom/dynamodb-enhanced/src/main/java/software/amazon/awssdk/enhanced/dynamodb/internal/update/UpdateExpressionResolver.java
+8-24Lines changed: 8 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -53,30 +53,14 @@ public static Builder builder() {
53
53
}
54
54
55
55
/**
56
-
* Merges UpdateExpressions from three sources in priority order:
57
-
* <ol>
58
-
* <li><b>Item attributes</b>: SET/REMOVE actions from item POJO (lowest priority)</li>
Copy file name to clipboardExpand all lines: services-custom/dynamodb-enhanced/src/main/java/software/amazon/awssdk/enhanced/dynamodb/model/TransactUpdateItemEnhancedRequest.java
+2-4Lines changed: 2 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -249,11 +249,9 @@ public Builder<T> item(T item) {
0 commit comments