Package net.opengis.wfs

Examples of net.opengis.wfs.TransactionSummaryType


     * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
     * @generated
     */
  public NotificationChain basicSetTransactionSummary(TransactionSummaryType newTransactionSummary, NotificationChain msgs) {
        TransactionSummaryType oldTransactionSummary = transactionSummary;
        transactionSummary = newTransactionSummary;
        if (eNotificationRequired()) {
            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, WfsPackage.TRANSACTION_RESPONSE_TYPE__TRANSACTION_SUMMARY, oldTransactionSummary, newTransactionSummary);
            if (msgs == null) msgs = notification; else msgs.add(notification);
        }
View Full Code Here


    public void testEncode() throws Exception {
        final TransactionResponseType tr = factory.createTransactionResponseType();
        {
            tr.setVersion("1.1.0");

            TransactionSummaryType summary = factory.createTransactionSummaryType();
            summary.setTotalDeleted(BigInteger.valueOf(2));
            summary.setTotalInserted(BigInteger.valueOf(3));
            summary.setTotalUpdated(BigInteger.valueOf(4));
            tr.setTransactionSummary(summary);

            TransactionResultsType results = factory.createTransactionResultsType();
            ActionType action = factory.createActionType();
            action.setCode("actionCode");
View Full Code Here

        assertTrue(parsed instanceof TransactionResponseType);

        final TransactionResponseType tr = (TransactionResponseType) parsed;
        assertEquals("1.1.0", tr.getVersion());
        {
            TransactionSummaryType summary = tr.getTransactionSummary();

            assertNotNull(summary);

            assertNotNull(summary.getTotalInserted());
            assertNotNull(summary.getTotalDeleted());
            assertNotNull(summary.getTotalUpdated());

            assertEquals(3, summary.getTotalInserted().intValue());
            assertEquals(2, summary.getTotalUpdated().intValue());
            assertEquals(1, summary.getTotalDeleted().intValue());
        }

        {
            TransactionResultsType results = tr.getTransactionResults();
            assertEquals(2, results.getAction().size());
View Full Code Here

                    if (null != featureIds) {
                        this.inserted.addAll(featureIds);
                    }
                }
            }
            TransactionSummaryType ts = tr.getTransactionSummary();
            if (ts != null) {
                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();
                this.insertCount = totalInserted == null ? -1 : totalInserted.intValue();
            }
        } else {
View Full Code Here

TOP

Related Classes of net.opengis.wfs.TransactionSummaryType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.