Package org.geotools.data.Transaction

Examples of org.geotools.data.Transaction.State


     *            The externally managed connection
     */
    public Transaction buildTransaction(Connection cx) {
        DefaultTransaction tx = new DefaultTransaction();

        State state = new JDBCTransactionState(cx, this, true);
        tx.putState(this, state);

        return tx;
    }
View Full Code Here


        if (Transaction.AUTO_COMMIT.equals(getTransaction())) {
            localState = getState().getLocalTransactionState();
            autoCommit = true;
        } else {
            autoCommit = false;
            State state = transaction.getState(getEntry());
            localState = (WFSLocalTransactionState) state;
        }

        final FeatureReader<SimpleFeatureType, SimpleFeature> reader = getReader(query);
        final WFSFeatureWriter writer = new WFSFeatureWriter(this, localState, reader, autoCommit);
View Full Code Here

        reader = applyReprojectionDecorator(reader, localQuery, request);

        Transaction transaction = getTransaction();
        if (!Transaction.AUTO_COMMIT.equals(transaction)) {
            ContentEntry entry = getEntry();
            State state = transaction.getState(entry);
            WFSLocalTransactionState wfsState = (WFSLocalTransactionState) state;
            if (wfsState != null) {
                WFSDiff diff = wfsState.getDiff();
                reader = new DiffFeatureReader<SimpleFeatureType, SimpleFeature>(reader, diff, localQuery.getFilter());
            }
View Full Code Here

TOP

Related Classes of org.geotools.data.Transaction.State

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.