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


public interface DatabaseConnectionRunnable

A runnable that attempts to connect to a database. If it does it will get a list of all the databases and store them for later access. If it does not then it will store an error message.

Since:
1.1.0
Author:
jesse

Method Summary
 java.lang.String canConnect()
          Returns null if the run method was able to connect to the database otherwise will return a message indicating what went wrong.
 java.lang.String[] getDatabaseNames()
          Returns the names of the databases in the database that this object connected to when the run method was executed.
 

Method Detail

canConnect

java.lang.String canConnect()
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.

getDatabaseNames

java.lang.String[] getDatabaseNames()
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.