Package org.locationtech.udig.catalog.internal.postgis.ui

Examples of org.locationtech.udig.catalog.internal.postgis.ui.PostgisLookUpSchemaRunnable


        Integer port = (Integer) params.get(PORT.key);
        String database = (String) params.get(DATABASE.key);
        String user = (String) params.get(USER.key);
        String pass = (String) params.get(PASSWD.key);

        PostgisLookUpSchemaRunnable runnable = new PostgisLookUpSchemaRunnable(host, port, user,
                pass, database);
        runnable.run(monitor);

        if (runnable.getError() != null) {
            message = new Exception(runnable.getError());
            status = Status.BROKEN;
            return null;
        }
        Set<TableDescriptor> tables = runnable.getTableDescriptors();
        Multimap<String, TableDescriptor> schemas = HashMultimap.create();
        for( TableDescriptor schema : tables ) {
            schemas.put(schema.schema,schema);
        }
        return schemas.asMap();
View Full Code Here

TOP

Related Classes of org.locationtech.udig.catalog.internal.postgis.ui.PostgisLookUpSchemaRunnable

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.