@Test public void testClose() throws IOException { ArcSDEQuery queryAll = getQueryAll(); assertNotNull(queryAll.session); queryAll.execute(); assertNotNull(queryAll.session); ISession session = queryAll.session; queryAll.close(); assertNotNull(queryAll.session); assertFalse(session.isClosed()); session.dispose(); }
private static void close(final SeQuery query, final ISession session) throws IOException { if (query == null) { return; } session.close(query); }
ArcSDEQuery implements Closeable { private static void close(final SeQuery query, final ISession session) throws IOException { if (query == null) { return; } session.close(query); } }
ArcSDEQuery implements Closeable { private static void close(final SeQuery query, final ISession session) throws IOException { if (query == null) { return; } session.close(query); } private  ArcSDEQuery(
            final ISession session,
            final SimpleFeatureType schema,
            final FilterSet filterSet,
            final String sortByClause,
            final FIDReader fidReader,
            ArcSdeVersionHandler versioningHandler); }
ArcSDEQuery implements Closeable { private static void close(final SeQuery query, final ISession session) throws IOException { if (query == null) { return; } session.close(query); } private  ArcSDEQuery(
            final ISession session,
            final SimpleFeatureType schema,
            final FilterSet filterSet,
            final String sortByClause,
            final FIDReader fidReader,
            ArcSdeVersionHandler versioningHandler); static ArcSDEQuery createQuery(
            final ISession session,
            final SimpleFeatureType fullSchema,
            final Query query,
            final FIDReader fidReader,
            final ArcSdeVersionHandler versioningHandler); static ArcSDEQuery createInprocessViewQuery(
            final ISession session,
            final SimpleFeatureType fullSchema,
            final Query query,
            final SeQueryInfo definitionQuery,
            final PlainSelect viewSelectStatement); static SimpleFeatureType getQuerySchema(
            final String[] queryProperties,
            Filter unsupportedFilter,
            final SimpleFeatureType fullSchema); FIDReader getFidReader(); SimpleFeatureType getSchema(); ArcSDEQuery.FilterSet getFilters(); static int calculateResultCount(
            final ISession session,
            final FeatureTypeInfo typeInfo,
            final Query query,
            final ArcSdeVersionHandler versioningHandler); static Envelope calculateQueryExtent(
            final ISession session,
            final FeatureTypeInfo typeInfo,
            final Query query,
            final ArcSdeVersionHandler versioningHandler); int calculateResultCount(); Envelope calculateQueryExtent(); void close(); void execute(); SdeRow fetch(); void setSpatialConstraints(SeFilter[] filters); @Override String toString(); }
ArcSDEQuery implements Closeable { private static void close(final SeQuery query, final ISession session) throws IOException { if (query == null) { return; } session.close(query); } private  ArcSDEQuery(
            final ISession session,
            final SimpleFeatureType schema,
            final FilterSet filterSet,
            final String sortByClause,
            final FIDReader fidReader,
            ArcSdeVersionHandler versioningHandler); static ArcSDEQuery createQuery(
            final ISession session,
            final SimpleFeatureType fullSchema,
            final Query query,
            final FIDReader fidReader,
            final ArcSdeVersionHandler versioningHandler); static ArcSDEQuery createInprocessViewQuery(
            final ISession session,
            final SimpleFeatureType fullSchema,
            final Query query,
            final SeQueryInfo definitionQuery,
            final PlainSelect viewSelectStatement); static SimpleFeatureType getQuerySchema(
            final String[] queryProperties,
            Filter unsupportedFilter,
            final SimpleFeatureType fullSchema); FIDReader getFidReader(); SimpleFeatureType getSchema(); ArcSDEQuery.FilterSet getFilters(); static int calculateResultCount(
            final ISession session,
            final FeatureTypeInfo typeInfo,
            final Query query,
            final ArcSdeVersionHandler versioningHandler); static Envelope calculateQueryExtent(
            final ISession session,
            final FeatureTypeInfo typeInfo,
            final Query query,
            final ArcSdeVersionHandler versioningHandler); int calculateResultCount(); Envelope calculateQueryExtent(); void close(); void execute(); SdeRow fetch(); void setSpatialConstraints(SeFilter[] filters); @Override String toString();  }