eu.drus.jpa.unit.sql.dbunit.DataSeedStrategyProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jpa-unit-rdbms Show documentation
Show all versions of jpa-unit-rdbms Show documentation
Makes JPA Unit support SQL databases
package eu.drus.jpa.unit.sql.dbunit;
import org.dbunit.operation.DatabaseOperation;
import eu.drus.jpa.unit.api.DataSeedStrategy.StrategyProvider;
public class DataSeedStrategyProvider implements StrategyProvider {
@Override
public DatabaseOperation insertStrategy() {
return DatabaseOperation.INSERT;
}
@Override
public DatabaseOperation cleanInsertStrategy() {
return DatabaseOperation.CLEAN_INSERT;
}
@Override
public DatabaseOperation refreshStrategy() {
return DatabaseOperation.REFRESH;
}
@Override
public DatabaseOperation updateStrategy() {
return DatabaseOperation.UPDATE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy