Package org.geotools.arcsde.versioning

Examples of org.geotools.arcsde.versioning.AutoCommitVersionHandler


            final boolean versioned = featureTypeInfo.isVersioned();

            ArcTransactionState state = getState(transaction);
            if (null == state) {
                if (versioned) {
                    versionHandler = new AutoCommitVersionHandler(version);
                }
            } else {
                versionHandler = state.getVersionHandler(versioned, version);
            }
        }
View Full Code Here


    private ArcSDEQuery createFilteringQuery() throws IOException {
        ISession session = dstore.getSession(Transaction.AUTO_COMMIT);
        FeatureTypeInfo fti = ArcSDEAdapter.fetchSchema(typeName, null, session);
        this.queryFiltered = ArcSDEQuery.createQuery(session, ftype, filteringQuery, fti
                .getFidStrategy(), new AutoCommitVersionHandler(
                SeVersion.SE_QUALIFIED_DEFAULT_VERSION_NAME));
        return this.queryFiltered;
    }
View Full Code Here

        // same filter than ArcSDEJavaApiTest.testCalculateCountSpatialFilter
        Filter filter = toFilter("BBOX(SHAPE, -180, -90, -170, -80)");
        filteringQuery = new Query(typeName, filter);
        ArcSDEQuery q = ArcSDEQuery.createQuery(session, ftype, filteringQuery, fti
                .getFidStrategy(), new AutoCommitVersionHandler(
                SeVersion.SE_QUALIFIED_DEFAULT_VERSION_NAME));
        int calculated;
        try {
            calculated = q.calculateResultCount();
        } finally {
View Full Code Here

        FeatureTypeInfo fti = ArcSDEAdapter.fetchSchema(typeName, null, session);

        Filter filter = toFilter("INT32_COL < 5 AND BBOX(SHAPE, -180, -90, -170, -80)");
        filteringQuery = new Query(typeName, filter);
        ArcSDEQuery q = ArcSDEQuery.createQuery(session, ftype, filteringQuery, fti
                .getFidStrategy(), new AutoCommitVersionHandler(
                SeVersion.SE_QUALIFIED_DEFAULT_VERSION_NAME));
        int calculated;
        try {
            calculated = q.calculateResultCount();
        } finally {
View Full Code Here

            throws IOException {
        ISession session = dstore.getSession(Transaction.AUTO_COMMIT);
        FeatureTypeInfo fti = ArcSDEAdapter.fetchSchema(typeName, null, session);
        filteringQuery = new Query(typeName, filter);
        ArcSDEQuery q = ArcSDEQuery.createQuery(session, ftype, filteringQuery, fti
                .getFidStrategy(), new AutoCommitVersionHandler(
                SeVersion.SE_QUALIFIED_DEFAULT_VERSION_NAME));

        Envelope queryExtent = q.calculateQueryExtent();
        assertFalse(queryExtent.isNull());
View Full Code Here

TOP

Related Classes of org.geotools.arcsde.versioning.AutoCommitVersionHandler

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.