Class 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.
    • 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 uri
        encoding - 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
      • 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 the pageSize attribute.
        Specified by:
        flush in interface Consumer
        Specified by:
        flush in interface java.io.Flushable
        Overrides:
        flush in class AbstractConsumer
      • 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 interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in interface Consumer
        Overrides:
        close in class AbstractConsumer