net.refractions.udig.catalog.service.database
Interface LookUpSchemaRunnable


public interface LookUpSchemaRunnable

This runnable looks up the objects (typically tables and schemas) that can be used to create layers from. The objects should be verified as valid as much as possible. This runnable is ran in an isolated thread so it can connect to the database.

Please make sure to test against sources that are slow to connect to (slow ping) to ensure good user experience

Since:
1.1.0
Author:
jesse

Method Summary
 java.lang.String getError()
          Returns null if the run method was able to connect to the database otherwise will return a message indicating what went wrong.
 java.util.Set<TableDescriptor> getSchemas()
          Returns the names of the databases in the database that this object connected to when the run method was executed.
 

Method Detail

getError

java.lang.String getError()
                          throws java.lang.IllegalStateException
Returns null if the run method was able to connect to the database otherwise will return a message indicating what went wrong.

Returns:
null if the run method was able to connect to the database otherwise will return a message indicating what went wrong.
Throws:
java.lang.IllegalStateException - if called before run.

getSchemas

java.util.Set<TableDescriptor> getSchemas()
Returns the names of the databases in the database that this object connected to when the run method was executed.

Returns:
the names of the databases in the database that this object connected to when the run method was executed.