com.ninja_squad.dbsetup.destination
Interface Destination

All Known Implementing Classes:
DataSourceDestination, DriverManagerDestination

public interface Destination

The destination of a database setup. It's advised to make implementations of this interface immutable, and to make them implement equals and hashCode in order for DbSetupTracker to function properly, or to make them singletons.


Method Summary
 java.sql.Connection getConnection()
          Returns a connection to the destination database
 

Method Detail

getConnection

java.sql.Connection getConnection()
                                  throws java.sql.SQLException
Returns a connection to the destination database

Returns:
a connection to the destination database
Throws:
java.sql.SQLException - if a connection can't be returned