// If the calls were cached then don't need to prepare.
if (updateCalls != null) {
int updateCallsSize = updateCalls.size();
if (updateCallsSize == 1) {
// clone call, to be able to set query on clone
DatasourceCall existingCall = (DatasourceCall)updateCalls.get(0);
DatasourceCall clonedCall = (DatasourceCall)existingCall.clone();
setCall(clonedCall);
} else {
// clone calls
Vector clonedCalls = new Vector(updateCallsSize);
for (int i = 0; i < updateCallsSize; i++) {
DatasourceCall existingCall = (DatasourceCall)updateCalls.get(i);
clonedCalls.add(existingCall.clone());
}
setCalls(clonedCalls);
}
return;
}