TransactionSummaryType ts = tr.getTransactionSummary(); if (ts != null) { BigInteger totalInserted = ts.getTotalInserted();
@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); }
TransactionSummaryType ts = tr.getTransactionSummary(); if (ts != null) { BigInteger totalInserted = ts.getTotalInserted();
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