Package com.rapiddweller.platform.dbunit
Class DbUnitEntityExporter
- java.lang.Object
-
- com.rapiddweller.benerator.consumer.AbstractConsumer
-
- com.rapiddweller.platform.dbunit.DbUnitEntityExporter
-
- All Implemented Interfaces:
Consumer
,java.io.Closeable
,java.io.Flushable
,java.lang.AutoCloseable
public class DbUnitEntityExporter extends AbstractConsumer
Exports entities in DbUnit XML file format.- Since:
- 0.3.04
- Author:
- Volker Bergmann
-
-
Constructor Summary
Constructors Constructor Description DbUnitEntityExporter()
Instantiates a new Db unit entity exporter.DbUnitEntityExporter(java.lang.String uri)
Instantiates a new Db unit entity exporter.DbUnitEntityExporter(java.lang.String uri, java.lang.String encoding)
Instantiates a new Db unit entity exporter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
When called, the implementor has to close and free all resources.void
flush()
Is called by Benerator for advising the Consumer to finish processing of the objects consumed so far.java.lang.String
getEncoding()
Gets encoding.java.lang.String
getUri()
Gets uri.void
setEncoding(java.lang.String encoding)
Sets encoding.void
setUri(java.lang.String uri)
Sets uri.void
startProductConsumption(java.lang.Object object)
Start product consumption.java.lang.String
toString()
-
Methods inherited from class com.rapiddweller.benerator.consumer.AbstractConsumer
finishConsuming, finishProductConsumption, startConsuming
-
-
-
-
Constructor Detail
-
DbUnitEntityExporter
public DbUnitEntityExporter()
Instantiates a new Db unit entity exporter.
-
DbUnitEntityExporter
public DbUnitEntityExporter(java.lang.String uri)
Instantiates a new Db unit entity exporter.- Parameters:
uri
- the uri
-
DbUnitEntityExporter
public DbUnitEntityExporter(java.lang.String uri, java.lang.String encoding)
Instantiates a new Db unit entity exporter.- Parameters:
uri
- the uriencoding
- the encoding
-
-
Method Detail
-
getUri
public java.lang.String getUri()
Gets uri.- Returns:
- the uri
-
setUri
public void setUri(java.lang.String uri)
Sets uri.- Parameters:
uri
- the uri
-
getEncoding
public java.lang.String getEncoding()
Gets encoding.- Returns:
- the encoding
-
setEncoding
public void setEncoding(java.lang.String encoding)
Sets encoding.- Parameters:
encoding
- the encoding
-
startProductConsumption
public void startProductConsumption(java.lang.Object object)
Description copied from class:AbstractConsumer
Start product consumption.- Specified by:
startProductConsumption
in classAbstractConsumer
- Parameters:
object
- the object
-
flush
public void flush()
Description copied from interface:Consumer
Is called by Benerator for advising the Consumer to finish processing of the objects consumed so far. In Benerator descriptor files, the flushing behavior is controlled by thepageSize
attribute.- Specified by:
flush
in interfaceConsumer
- Specified by:
flush
in interfacejava.io.Flushable
- Overrides:
flush
in classAbstractConsumer
-
close
public void close()
Description copied from interface:Consumer
When called, the implementor has to close and free all resources. It will not receive any more calls.- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Specified by:
close
in interfaceConsumer
- Overrides:
close
in classAbstractConsumer
-
toString
public java.lang.String toString()
- Overrides:
toString
in classAbstractConsumer
-
-