T - type of target ImporterDescriptionpublic abstract class AbstractImporterPreparator<T extends ImporterDescription> extends BaseImporterPreparator<T>
ImporterPreparator.| Constructor and Description |
|---|
AbstractImporterPreparator() |
| Modifier and Type | Method and Description |
|---|---|
abstract <V> ModelOutput<V> |
createOutput(DataModelDefinition<V> definition,
T description)
Creates a
ModelOutput to prepare the resource which the importer will use. |
<V> ModelOutput<V> |
createOutput(DataModelDefinition<V> definition,
T description,
TestContext context)
Redirects to
createOutput(definition, description). |
abstract void |
truncate(T description)
Truncates all resources which the importer will use.
|
void |
truncate(T description,
TestContext context)
Redirects to
this.truncate(description). |
getDescriptionClasspublic abstract void truncate(T description) throws IOException
If target resources do not support truncate operations, this method has no effects.
description - the descriptionIOException - if failed to open the targetpublic void truncate(T description, TestContext context) throws IOException
this.truncate(description).description - the descriptioncontext - the current test contextIOException - if failed to open the targetpublic abstract <V> ModelOutput<V> createOutput(DataModelDefinition<V> definition, T description) throws IOException
ModelOutput to prepare the resource which the importer will use.V - type of modeldefinition - the data model definitiondescription - the descriptionModelOutputIOException - if failed to open the targetpublic <V> ModelOutput<V> createOutput(DataModelDefinition<V> definition, T description, TestContext context) throws IOException
createOutput(definition, description).V - type of modeldefinition - the data model definitiondescription - the descriptioncontext - the current test contextModelOutputIOException - if failed to open the targetCopyright © 2011–2018 Asakusa Framework Team. All rights reserved.