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:
FileProperties 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.
|
int |
getOrder()
The order of a data provider in comparison to others, defaults to 0.
|
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, waitbuildEntitiesprotected abstract Collection<?> getEntities()
public int getOrder()
getOrder in interface DataProviderpublic void writeEntities(EntitySqlGenerator sqlGenerator) throws IOException
entities that were created during
DataProvider.buildEntities().writeEntities in interface DataProvidersqlGenerator - the SQL file generatorIOException - if the generator throws oneCopyright © 2016 fastnate.org. All rights reserved.