com.github.database.rider.core.dataset.builder

Class DataSetBuilder



  • public class DataSetBuilderextends Object
    • Constructor Detail

      • DataSetBuilder

        public DataSetBuilder()
    • Method Detail

      • table

        public TableBuilder table(String tableName)
        Starts creating a dataset for the given table, ex:
           builder.table("user")         .row()            .column("id", 1)            .column("name", "@dbunit")  
        Parameters:
        tableName - name of the table to screate the dataset
        Returns:
        current table builder
      • build

        public org.dbunit.dataset.IDataSet build()
        Returns:
        a dbunit dataset based on current builder
      • addDataSet

        public DataSetBuilder addDataSet(org.dbunit.dataset.IDataSet iDataSet)
        Adds a previously created dataset to current builder
        Parameters:
        iDataSet - dbunit dataset
        Returns:
        current builder
      • add

        public DataSetBuilder add(BasicRowBuilder row)
        Add a previously created row to current dataset, ex:
          RowBuilder user1Row = new DataSetBuilder().table("USER")     .row()         .column("id", "1")         .column("name", "user1"); RowBuilder user2Row = new DataSetBuilder().table("USER")     .row()         .column("id", "2")         .column("name", "user2"); IDataSet iDataSet = builder.add(user1Row).add(user2Row)  
        Parameters:
        row - an already built row
        Returns:
        current builder
      • defaultValue

        public DataSetBuilder defaultValue(String columnName,                                   Object value)
        Adds a default value for the given column for all tables. The default value will be used only if the column is not specified
        Parameters:
        columnName - name of the column
        value - default value associated with the column
        Returns:
        current builder
      • fillUndefinedColumns

        protected void fillUndefinedColumns(BasicRowBuilder row)
      • hasDefaulValuesForTable

        protected boolean hasDefaulValuesForTable(String tableName)
      • addTableDefaultValue

        protected void addTableDefaultValue(String tableName,                                    String columnName,                                    Object value)

Copyright © 2019. All rights reserved.



NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14