Package org.geotools.arcsde.versioning

Examples of org.geotools.arcsde.versioning.ArcSdeVersionHandler


     */
    protected ReferencedEnvelope getBounds(final Query namedQuery, final ISession session)
            throws DataSourceException, IOException {

        final String typeName = typeInfo.getFeatureTypeName();
        final ArcSdeVersionHandler versionHandler = dataStore.getVersionHandler(typeName,
                transaction);

        Envelope ev = ArcSDEQuery.calculateQueryExtent(session, typeInfo, namedQuery,
                versionHandler);

View Full Code Here


     * @see FeatureSource#getCount(Query)
     */
    protected int getCount(final Query namedQuery, final ISession session) throws IOException {
        final int count;
        final String typeName = typeInfo.getFeatureTypeName();
        final ArcSdeVersionHandler versionHandler = dataStore.getVersionHandler(typeName,
                transaction);
        count = ArcSDEQuery.calculateResultCount(session, typeInfo, namedQuery, versionHandler);
        return count;
    }
View Full Code Here

        if (filter == Filter.EXCLUDE || filter.equals(Filter.EXCLUDE)) {
            return new EmptyFeatureReader<SimpleFeatureType, SimpleFeature>(featureType);
        }

        final String typeName = query.getTypeName();
        ArcSdeVersionHandler versionHandler = getVersionHandler(typeName, transaction);
        ISession session = getSession(transaction);

        FeatureReader<SimpleFeatureType, SimpleFeature> reader;
        try {
            reader = getFeatureReader(query, featureType, session, versionHandler);
View Full Code Here

     * @return
     * @throws IOException
     */
    ArcSdeVersionHandler getVersionHandler(final String typeName, final Transaction transaction)
            throws IOException {
        ArcSdeVersionHandler versionHandler = ArcSdeVersionHandler.NONVERSIONED_HANDLER;
        {
            final FeatureTypeInfo featureTypeInfo = typeInfoCache.getFeatureTypeInfo(typeName);
            final boolean versioned = featureTypeInfo.isVersioned();

            ArcTransactionState state = getState(transaction);
View Full Code Here

    /**
     * @see DataStore#getFeatureWriter(String, Filter, Transaction)
     */
    public ArcSdeFeatureWriter getFeatureWriter(final String typeName, final Filter filter,
            final Transaction transaction) throws IOException {
        final ArcSdeVersionHandler versionHandler = getVersionHandler(typeName, transaction);
        // get the connection the streamed writer content has to work over
        // so the reader and writer share it
        final ISession session = getSession(transaction);

        try {
View Full Code Here

        assertNotNull(fullSchema.getDescriptor("SHAPE"));// just a safety check
        assertNotNull(fullSchema.getDescriptor("INT32_COL"));

        Query query = new Query(typeName, filter, requestProperties);
        FIDReader fidReader = new FIDReader.SdeManagedFidReader(typeName, "rowid");
        ArcSdeVersionHandler versioningHandler = ArcSdeVersionHandler.NONVERSIONED_HANDLER;

        ArcSDEQuery sdeQuery;
        ISession session = dstore.getSession(Transaction.AUTO_COMMIT);
        try {
            sdeQuery = ArcSDEQuery.createQuery(session, fullSchema, query, fidReader,
View Full Code Here

TOP

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

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.