BigInteger totalInserted = ts.getTotalInserted(); BigInteger totalDeleted = ts.getTotalDeleted(); BigInteger totalUpdated = ts.getTotalUpdated(); this.updatedCount = totalUpdated == null ? -1 : totalUpdated.intValue(); this.deletedCount = totalDeleted == null ? -1 : totalDeleted.intValue();
final QName layerName = rollback.getTypeName(); VersioningFeatureStore vstore = (VersioningFeatureStore) featureStores.get(layerName); long inserted = response.getTransactionSummary().getTotalInserted().longValue(); long updated = response.getTransactionSummary().getTotalUpdated().longValue(); long deleted = response.getTransactionSummary().getTotalDeleted().longValue(); response.getTransactionSummary().setTotalInserted(BigInteger.valueOf(inserted)); response.getTransactionSummary().setTotalUpdated(BigInteger.valueOf(updated)); response.getTransactionSummary().setTotalDeleted(BigInteger.valueOf(deleted)); } catch (IOException e) { throw new WFSTransactionException("Could not perform the rollback", e, rollback
@Override public TransactionResponse createResponse() { WfsFactory factory = (WfsFactory) getFactory(); TransactionResponseType tr = factory.createTransactionResponseType(); tr.setTransactionSummary(factory.createTransactionSummaryType()); tr.getTransactionSummary().setTotalInserted(BigInteger.valueOf(0)); tr.getTransactionSummary().setTotalUpdated(BigInteger.valueOf(0)); tr.getTransactionSummary().setTotalDeleted(BigInteger.valueOf(0)); tr.setTransactionResults(factory.createTransactionResultsType()); tr.setInsertResults(factory.createInsertResultsType()); return new TransactionResponse.WFS11(tr); }
/** * Sets the "TransactionSummary" element */ public void setTransactionSummary(net.opengis.wfs.TransactionSummaryType transactionSummary) { synchronized (monitor()) { check_orphaned(); net.opengis.wfs.TransactionSummaryType target = null; target = (net.opengis.wfs.TransactionSummaryType)get_store().find_element_user(TRANSACTIONSUMMARY$0, 0); if (target == null) { target = (net.opengis.wfs.TransactionSummaryType)get_store().add_element_user(TRANSACTIONSUMMARY$0); } target.set(transactionSummary); } }
BigInteger totalInserted = ts.getTotalInserted(); BigInteger totalDeleted = ts.getTotalDeleted(); BigInteger totalUpdated = ts.getTotalUpdated(); this.updatedCount = totalUpdated == null ? -1 : totalUpdated.intValue(); this.deletedCount = totalDeleted == null ? -1 : totalDeleted.intValue();