Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1774,7 +1774,8 @@ public void prepareUpdateObject() {
boolean useCache = (row == null || !(getQuery().shouldValidateUpdateCallCacheUse() && row.hasNullValueInFields()));

// PERF: Check the descriptor update SQL call cache for a matching update with the same fields.
Vector updateCalls = getDescriptor().getQueryManager().getCachedUpdateCalls(getModifyRow().getFields());
final Vector<DatabaseField> updateCallsKey = org.eclipse.persistence.internal.helper.NonSynchronizedVector.newInstance(getModifyRow().getFields());
Vector updateCalls = getDescriptor().getQueryManager().getCachedUpdateCalls(updateCallsKey);
// If the calls were cached then don't need to prepare.
if (updateCalls != null && useCache == true) {
int updateCallsSize = updateCalls.size();
Expand Down Expand Up @@ -1819,7 +1820,7 @@ public void prepareUpdateObject() {
updateCalls.add(getCall());
}
}
getDescriptor().getQueryManager().putCachedUpdateCalls(getModifyRow().getFields(), updateCalls);
getDescriptor().getQueryManager().putCachedUpdateCalls(updateCallsKey, updateCalls);
}
}

Expand Down