T
- type of target ExporterDescription
public abstract class AbstractExporterRetriever<T extends ExporterDescription> extends BaseExporterRetriever<T>
ExporterRetriever
.Constructor and Description |
---|
AbstractExporterRetriever() |
Modifier and Type | Method and Description |
---|---|
abstract <V> ModelOutput<V> |
createOutput(DataModelDefinition<V> definition,
T description)
Creates a
ModelOutput to prepare what the exporter will use. |
<V> ModelOutput<V> |
createOutput(DataModelDefinition<V> definition,
T description,
TestContext context)
Redirects to
createOutput(definition, description) . |
abstract <V> DataModelSource |
createSource(DataModelDefinition<V> definition,
T description)
Creates a
DataModelSource to retrieve what the target exporter had created. |
<V> DataModelSource |
createSource(DataModelDefinition<V> definition,
T description,
TestContext context)
Redirects to
createSource(definition, description) . |
abstract void |
truncate(T description)
Truncates all resources which the exporter will use.
|
void |
truncate(T description,
TestContext context)
Redirects to
this.truncate(description) . |
getDescriptionClass
public 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 what the exporter will use.V
- type of modeldefinition
- the data model definitiondescription
- the descriptionModelOutput
IOException
- if failed to open the targetIllegalArgumentException
- if some parameters were null
public <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 contextModelOutput
IOException
- if failed to open the targetIllegalArgumentException
- if some parameters were null
public abstract <V> DataModelSource createSource(DataModelDefinition<V> definition, T description) throws IOException
DataModelSource
to retrieve what the target exporter had created.V
- type of modeldefinition
- the data model definitiondescription
- the descriptionDataModelSource
IOException
- if failed to open the targetIllegalArgumentException
- if some parameters were null
public <V> DataModelSource createSource(DataModelDefinition<V> definition, T description, TestContext context) throws IOException
createSource(definition, description)
.V
- type of modeldefinition
- the data model definitiondescription
- the descriptioncontext
- the current test contextDataModelSource
IOException
- if failed to open the targetIllegalArgumentException
- if some parameters were null
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.