public abstract class AbstractDataProvider extends Object implements DataProvider
EntityImporter
.
The constructor must either be the "no arguments constructor" - or accept one or more of the following parameters:
File
Properties
settingsDataProvider.buildEntities()
method of these
providers are called before our DataProvider.buildEntities()
.Constructor and Description |
---|
AbstractDataProvider() |
Modifier and Type | Method and Description |
---|---|
protected abstract Collection<?> |
getEntities()
The list of entities for which INSERT SQL statements will be generated.
|
void |
writeEntities(EntitySqlGenerator sqlGenerator)
The default implementation just writes all
entities that were created during
DataProvider.buildEntities() . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
buildEntities, getOrder
protected abstract Collection<?> getEntities()
public void writeEntities(EntitySqlGenerator sqlGenerator) throws IOException
entities
that were created during
DataProvider.buildEntities()
.writeEntities
in interface DataProvider
sqlGenerator
- the SQL file generatorIOException
- if the generator throws oneCopyright © 2022 fastnate.org. All rights reserved.