Examples of DataAccess


Examples of org.geotools.data.DataAccess

                DataStoreInfo meta = (DataStoreInfo) i.next();
                DataStore dataStore = null;
               
                // TODO: support locking for DataAccess
                if (meta.isEnabled()) {
                    DataAccess da = meta.getDataStore(null);
                    if ( da instanceof DataStore ) {
                        dataStore = (DataStore) da;
                    }
                }
               
View Full Code Here

Examples of org.geotools.data.DataAccess

                DataStoreInfo meta = (DataStoreInfo) i.next();
                DataStore dataStore = null;
               
                // TODO: support locking for DataAccess
                if (meta.isEnabled()) {
                    DataAccess da = meta.getDataStore(null);
                    if ( da instanceof DataStore ) {
                        dataStore = (DataStore) da;
                    }
                }
               
View Full Code Here

Examples of org.geotools.data.DataAccess

                    // Don't count locks from disabled datastores.
                    continue;
                }
   
                try {
                    DataAccess store = meta.getDataStore(null);
                    if(store instanceof DataStore) {
                        LockingManager lockingManager = ((DataStore) store).getLockingManager();
                        if (lockingManager != null){
                            // we can't actually *count* locks right now?
                            // count += lockingManager.getLockSet().size();
View Full Code Here

Examples of org.geotools.data.DataAccess

   
   
    @Test
    public void testReadOnlyFeatureSourceDataAccess() throws Exception {
        // build the mock up
        DataAccess da = createNiceMock(DataAccess.class);
        replay(da);
        FeatureSource fs = createNiceMock(FeatureSource.class);
        expect(fs.getDataStore()).andReturn(da);
        replay(fs);
       
View Full Code Here

Examples of org.geotools.data.DataAccess

                // Don't count locks from disabled datastores.
                continue;
            }

            try {
                DataAccess store = meta.getDataStore(null);
                if(store instanceof DataStore) {
                    LockingManager lockingManager = ((DataStore) store).getLockingManager();
                    if (lockingManager != null){
                        // we can't actually *count* locks right now?
                        // count += lockingManager.getLockSet().size();
View Full Code Here

Examples of org.geotools.data.DataAccess

    public CatalogRepository(Catalog catalog) {
        this.catalog = catalog;
    }

    public DataStore dataStore(Name name) {
        DataAccess da = access(name);
        if ( da instanceof DataStore ) {
            return (DataStore) da;
        }
       
        LOGGER.severe( name + " is not a data store.");
View Full Code Here

Examples of org.geotools.data.DataAccess

            if ( !ds.isEnabled() ) {
                continue;
            }
           
            try {
                DataAccess da = ds.getDataStore( null );
                if ( da instanceof DataStore ) {
                    dataStores.add( (DataStore) da );
                }
            }
            catch (IOException e) {
View Full Code Here

Examples of org.geotools.data.DataAccess

            if(virtualTable == null) {
                throw new IllegalArgumentException("The specified feature type does not have a sql view attached to it");
            }

            // get the store
            DataAccess da = store.getDataStore(null);
            if (!(da instanceof JDBCDataStore)) {
                error("Cannot create a SQL view if the store is not database based");
                doReturn(StorePage.class);
                return;
            }
View Full Code Here

Examples of org.geotools.data.DataAccess

        // reset to default first, to avoid the container being displayed if store is not a
        // DataStoreInfo
        createSQLViewContainer.setVisible(false);
        if (store instanceof DataStoreInfo) {
            try {
                DataAccess da = ((DataStoreInfo) store).getDataStore(null);
                createSQLViewContainer.setVisible(da instanceof JDBCDataStore);
            } catch (IOException e) {
                LOGGER.log(Level.FINEST, e.getMessage());
            }
        }
View Full Code Here

Examples of org.geotools.data.DataAccess

        }

        FeatureIterator<SimpleFeature> fi = null;
        try {
            // basic sanity checks on the datastore
            DataAccess ds = info.getVersioningDataStore().getDataStore(null);
            if (!(ds instanceof VersionedPostgisDataStore)) {
                throw new GSSException(
                        "The store attached to the gss module is not a PostGIS versioning one");
            }
            VersionedPostgisDataStore dataStore = (VersionedPostgisDataStore) ds;
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.