com.ninja_squad.dbsetup.operation
Interface Operation

All Known Implementing Classes:
CompositeOperation, DeleteAll, Insert, SqlOperation, Truncate

public interface Operation

An operation that the database setup executes. 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.


Method Summary
 void execute(java.sql.Connection connection, BinderConfiguration configuration)
          Executes the operation
 

Method Detail

execute

void execute(java.sql.Connection connection,
             BinderConfiguration configuration)
             throws java.sql.SQLException
Executes the operation

Parameters:
connection - the connection used to execute the operation
configuration - the binder configuration, used to get appropriate binders based on the metadata of the prepared statements
Throws:
java.sql.SQLException - if the execution throws a SQLException