Arquillian Persistence Extension Implementation 1.0.0.Alpha4

org.jboss.arquillian.persistence.data.dbunit.dataset.yaml
Class YamlDataSet

java.lang.Object
  extended by org.dbunit.dataset.AbstractDataSet
      extended by org.dbunit.dataset.CachedDataSet
          extended by org.jboss.arquillian.persistence.data.dbunit.dataset.yaml.YamlDataSet
All Implemented Interfaces:
org.dbunit.dataset.IDataSet, org.dbunit.dataset.stream.IDataSetConsumer

public class YamlDataSet
extends org.dbunit.dataset.CachedDataSet

DBUnit data set produced from YAML format. Each table has its own section in the YAML document, where its' name is the root element indicating that following entries are describing rows using column name : value pairs. Each new row is denoted by '-', as in following example:


 useraccount:
   - id: 1
     firstname: Clark
     lastname: Kent
     username: superman
     password: kryptonite 
 address:  
   - id: 1    
     streetname: "Kryptonite Street"    
     houseNumber: 7    
     city: Metropolis    
     zipCode: 1234 
 useraccount_address: 
   - useraccount_id: 1
     addresses_id: 1  
 

Author:
Bartosz Majsak

Field Summary
 
Fields inherited from class org.dbunit.dataset.AbstractDataSet
_orderedTableNameMap
 
Constructor Summary
YamlDataSet(File file)
           
YamlDataSet(File file, boolean caseSensitiveTableNames)
           
YamlDataSet(InputStream inputStream)
           
YamlDataSet(InputStream inputStream, boolean caseSensitiveTableNames)
           
YamlDataSet(YamlDataSetProducer producer)
           
YamlDataSet(YamlDataSetProducer producer, boolean caseSensitiveTableNames)
           
 
Method Summary
 
Methods inherited from class org.dbunit.dataset.CachedDataSet
createIterator, endDataSet, endTable, row, startDataSet, startTable
 
Methods inherited from class org.dbunit.dataset.AbstractDataSet
createTableNameMap, getTable, getTableMetaData, getTableNames, getTables, isCaseSensitiveTableNames, iterator, reverseIterator, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

YamlDataSet

public YamlDataSet(YamlDataSetProducer producer,
                   boolean caseSensitiveTableNames)
            throws org.dbunit.dataset.DataSetException
Throws:
org.dbunit.dataset.DataSetException

YamlDataSet

public YamlDataSet(File file,
                   boolean caseSensitiveTableNames)
            throws org.dbunit.dataset.DataSetException,
                   FileNotFoundException
Throws:
org.dbunit.dataset.DataSetException
FileNotFoundException

YamlDataSet

public YamlDataSet(File file)
            throws IOException,
                   org.dbunit.dataset.DataSetException
Throws:
IOException
org.dbunit.dataset.DataSetException

YamlDataSet

public YamlDataSet(YamlDataSetProducer producer)
            throws org.dbunit.dataset.DataSetException
Throws:
org.dbunit.dataset.DataSetException

YamlDataSet

public YamlDataSet(InputStream inputStream)
            throws org.dbunit.dataset.DataSetException
Throws:
org.dbunit.dataset.DataSetException

YamlDataSet

public YamlDataSet(InputStream inputStream,
                   boolean caseSensitiveTableNames)
            throws org.dbunit.dataset.DataSetException
Throws:
org.dbunit.dataset.DataSetException

Arquillian Persistence Extension Implementation 1.0.0.Alpha4

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.