public abstract class BaseObjectFixture<T extends BaseObjectFixture> extends Object implements ObjectFixture<Object>, ExtractionCapableFixture, CleanableFixture, FilterableFixture
ObjectFixture implementations. Provide sensible implementation of getClassesToDelete().| Modifier | Constructor and Description |
|---|---|
protected |
BaseObjectFixture() |
| Modifier and Type | Method and Description |
|---|---|
T |
addExtractorMatcher(ExtractorMatcher extractorMatcher)
Add an extractor matcher.
|
boolean |
filter(Object entity)
Determines whether the entity must be inserted in database or not.
|
Iterator<Class> |
getClassesToDeleteIterator()
Returns an ordered iterator of mapping classes to delete from database.
|
ExtractionResult |
getExtractionResult()
Returns the extraction result.
|
boolean |
hasNext()
Returns
true if the fixture has more elements. |
Object |
next()
Returns the next element in the fixture.
|
T |
setFilter(Filter filter) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddObjects, getObjectspublic Iterator<Class> getClassesToDeleteIterator()
getClassesToDeleteIterator in interface CleanableFixturepublic boolean hasNext()
ScrollableFixturetrue if the fixture has more elements.
(In other words, returns true if ScrollableFixture.next() would
return an element rather than throwing an exception.)hasNext in interface ScrollableFixturetrue if the fixture has more elementspublic Object next()
ScrollableFixturenext in interface ScrollableFixturepublic T addExtractorMatcher(ExtractorMatcher extractorMatcher)
extractorMatcher - the extraction matcher to add.ExtractorMatcherpublic ExtractionResult getExtractionResult()
getExtractionResult in interface ExtractionCapableFixturepublic boolean filter(Object entity)
filter in interface FilterableFixtureentity - the entity to filter.true if the entity must be inserted.Copyright © 2014. All Rights Reserved.