public class SqlFileFixture extends Object implements RawFixture, CleanableFixture
| Constructor and Description |
|---|
SqlFileFixture(String filePath) |
SqlFileFixture(String filePath,
Class... classes) |
| Modifier and Type | Method and Description |
|---|---|
Iterator<Class> |
getClassesToDeleteIterator()
Returns an ordered iterator of mapping classes to delete from database.
|
void |
load(UnitDaoFactory unitDaoFactory)
Execute the SQL file's content.
|
public SqlFileFixture(String filePath)
filePath - the path to the SQL file. If the path starts with classpath:/, the path is relative
the classpath's root. Otherwise, it's considered a filesystem path.public SqlFileFixture(String filePath, Class... classes)
filePath - the path to the SQL file. If the path starts with classpath:/, the path is relative
the classpath's root. Otherwise, it's considered a filesystem path.classes - the mapping classes representing tge tables to truncate before executing the SQL commands.public void load(UnitDaoFactory unitDaoFactory)
load in interface RawFixtureunitDaoFactory - the UnitDaoFactory to use.public Iterator<Class> getClassesToDeleteIterator()
getClassesToDeleteIterator in interface CleanableFixtureCopyright © 2014. All Rights Reserved.