Package org.geotools.arcsde.session

Examples of org.geotools.arcsde.session.ISession.dispose()


                }
            } finally {
                writer.close();
            }
        } finally {
            session.dispose();
        }
    }

    public void modifyFeatures(String name, Object attributeValue, Filter filter)
            throws IOException {
View Full Code Here


        try {
            // truncate using this connection to apply or not depending on
            // whether a transaction is in progress
            truncate(typeName, session);
        } finally {
            session.dispose();
        }

        final FeatureWriter<SimpleFeatureType, SimpleFeature> writer;
        writer = dataStore.getFeatureWriterAppend(typeName, transaction);
        try {
View Full Code Here

        try {
            GatherCoverageMetadataCommand command = new GatherCoverageMetadataCommand(rasterTable,
                    statisticsMandatory);
            rasterInfo = scon.issue(command);
        } finally {
            scon.dispose();
        }
        return rasterInfo;
    }

    private ArcSDEConnectionConfig getConnectionConfig(final String coverageUrl) {
View Full Code Here

            final String versionName = config.getVersion();
            if (versionName != null && !("".equals(versionName.trim()))) {
                session.issue(new Commands.GetVersionCommand(versionName));
            }
        } finally {
            session.dispose();
        }

        String namespaceUri = config.getNamespaceUri();
        if (namespaceUri != null && "".equals(namespaceUri.trim())) {
            namespaceUri = null;
View Full Code Here

                i++;
                row = session.fetch(query);
            }
            session.close(query);
        } finally {
            session.dispose();
        }

        for (int i = 0; i < fetched.length; i++) {
            final Geometry expected = original[i];
            final Geometry actual = fetched[i];
View Full Code Here

            ISession session = testData.getConnectionPool().getSession();
            try {
                SeTable versionedTable = testData.createVersionedTable(session);
                tableName = versionedTable.getQualifiedName();
            } finally {
                session.dispose();
            }
        }
    }

    @After
View Full Code Here

                ISession session = testData.getConnectionPool().getSession();
                try {
                    SeTable versionedTable = testData.createVersionedTable(session);
                    tableName = versionedTable.getQualifiedName();
                } finally {
                    session.dispose();
                }
            }

            final ArcSDEDataStore dataStore = testData.getDataStore();
            final SimpleFeatureSource source;
View Full Code Here

        ISession session = getConnectionPool().getSession();
        String tempTableName;
        try {
            tempTableName = getTempTableName(session);
        } finally {
            session.dispose();
        }
        return tempTableName;
    }

    /**
 
View Full Code Here

                return null;
            }
        };

        session.issue(deleteCmd);
        session.dispose();
    }

    /**
     * Creates an ArcSDE feature type names as <code>getTemp_table()</code> on the underlying
     * database and if <code>insertTestData == true</code> also inserts some sample values. *Stolen
 
View Full Code Here

            }
        } catch (Exception e) {
            e.printStackTrace();
            throw e;
        } finally {
            session.dispose();
        }
    }

    /**
     * Truncates the temp layer and populates it with fresh data. This method cannot be called if
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.