private void commitInternal() throws IOException {
if (this.localStates.isEmpty()) {
return;
}
WFSClient wfs = dataStore.getWfsClient();
TransactionRequest transactionRequest = wfs.createTransaction();
List<MutableFeatureId> requestedInsertFids = new ArrayList<MutableFeatureId>();
for (Name typeName : localStates.keySet()) {
List<MutableFeatureId> addedFids = applyDiff(typeName, transactionRequest);
requestedInsertFids.addAll(addedFids);
}
TransactionResponse transactionResponse = wfs.issueTransaction(transactionRequest);
List<FeatureId> insertedFids = transactionResponse.getInsertedFids();
int deleteCount = transactionResponse.getDeleteCount();
int updatedCount = transactionResponse.getUpdatedCount();
info(getClass().getSimpleName(), "::commit(): Updated: ", updatedCount, ", Deleted: ",
deleteCount, ", Inserted: ", insertedFids);