public interface DataProvider
EntityImporter
.
The constructor must either be the "no arguments constructor" - or accept one or more of the following parameters:
File
Properties
settingsbuildEntities()
method of these
providers are called before our buildEntities()
.Modifier and Type | Method and Description |
---|---|
void |
buildEntities()
Builds the entities that are accessed later using
writeEntities(EntitySqlGenerator) . |
default int |
getOrder()
An additional helper to sort the output by its precedence.
|
void |
writeEntities(EntitySqlGenerator sqlGenerator)
Adds all
entities to the SQL file using the given generator. |
void buildEntities() throws IOException
writeEntities(EntitySqlGenerator)
.IOException
- if something happens during any possible import of the generated entitiesdefault int getOrder()
void writeEntities(EntitySqlGenerator sqlGenerator) throws IOException
entities
to the SQL file using the given generator.sqlGenerator
- the SQL file generatorIOException
- if the generator throws oneCopyright © 2022 fastnate.org. All rights reserved.