Package org.geotools.arcsde.session

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


        ISession session = connPool.getSession();
        try {
            SeLayer tempTableLayer = getTempLayer(session);
            insertData(tempTableLayer, session, tempTableColumns);
        } finally {
            session.dispose();
        }
    }

    public void truncateTempTable() throws IOException, UnavailableConnectionException {
        final ISessionPool connPool = getConnectionPool();
View Full Code Here


                    table.truncate();
                    return null;
                }
            });
        } finally {
            session.dispose();
        }
    }

    /**
       *
 
View Full Code Here

            e.printStackTrace();
        } finally {
            if (!commited) {
                transSession.rollbackTransaction();
            }
            transSession.dispose();
            // conn.close(); closed at tearDown
        }
    }

    /**
 
View Full Code Here

            UnavailableConnectionException {
        ISession session = testData.getConnectionPool().getSession(true);
        try {
            InProcessViewSupportTestData.setUp(session, testData);
        } finally {
            session.dispose();
        }

        Map<String, Serializable> workingParamsWithSqlView = new HashMap<String, Serializable>(
                workingParams);
        workingParamsWithSqlView.putAll(InProcessViewSupportTestData.registerViewParams);
View Full Code Here

        final String versionName = "testVersionParamCheck";
        try {
            testData.createVersion(session, versionName,
                    SeVersion.SE_QUALIFIED_DEFAULT_VERSION_NAME);
        } finally {
            session.dispose();
        }

        Map<String, Serializable> paramsWithVersion = new HashMap<String, Serializable>(
                workingParams);
        try {
View Full Code Here

        final String versionName = "testVersioned";
        try {
            testData.createVersion(session, versionName,
                    SeVersion.SE_QUALIFIED_DEFAULT_VERSION_NAME);
        } finally {
            session.dispose();
        }

        Map<String, Serializable> paramsWithVersion = new HashMap<String, Serializable>(
                workingParams);
        paramsWithVersion.put(VERSION_PARAM_NAME, versionName);
View Full Code Here

        assertNotNull(session);
        try {
            assertEquals(String.valueOf(config.get("user")).toUpperCase(), session.getUser()
                    .toUpperCase());
        } finally {
            session.dispose();
        }
    }

    @Test
    @Ignore //TODO: revisit
View Full Code Here

        ArcSDEDataStore dataStore = (ArcSDEDataStore) factory.createDataStore(params);
        assertNotNull(dataStore);
        ISession session = dataStore.getSession(Transaction.AUTO_COMMIT);
        assertNotNull(session);
        session.dispose();
    }

    /**
     * Test method for {@link ArcSDEJNDIDataStoreFactory#canProcess(java.util.Map)}.
     */
 
View Full Code Here

                    RasterInfo pyramid = new RasterInfo(rAttr, crs);
                    return pyramid;
                }
            });
        } finally {
            conn.dispose();
        }

        System.out.println(pyramid);

        /*
 
View Full Code Here

        ISession session = dstore.getSession(Transaction.AUTO_COMMIT);
        try {
            sdeQuery = ArcSDEQuery.createQuery(session, fullSchema, query, fidReader,
                    versioningHandler);
        } finally {
            session.dispose();
        }
        SimpleFeatureType schema = sdeQuery.getSchema();
        assertNotNull(schema);
        return schema;
    }
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.