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.
execute
void execute(java.sql.Connection connection,
BinderConfiguration configuration)
throws java.sql.SQLException
- Executes the operation
- Parameters:
connection
- the connection used to execute the operationconfiguration
- 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