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

Class RowBuilder

    • Method Detail

      • column

        public RowBuilder column(ColumnSpec column,                         Object value)
        Adds a column to current row
        Parameters:
        column - column definition
        value - the column value
        Returns:
        current row builder
      • column

        public RowBuilder column(String columnName,                         Date value)
        Adds a date column to current row The date will be converted to dbunit default format (yyyy-MM-dd HH:mm:ss) Note that if the date has hour/minutes/seconds unset (0) then 'yyyy-MM-dd' will be used as format
        Parameters:
        columnName - the column name
        value - the column value
        Returns:
        current row builder
      • column

        public RowBuilder column(String columnName,                         Calendar value)
        Adds a calendar column to current row The calendar will be converted to dbunit default format (yyyy-MM-dd HH:mm:ss) Note that if the date has hour/minutes/seconds unset (0) then 'yyyy-MM-dd' will be used as format
        Parameters:
        columnName - the column name
        value - the column value
        Returns:
        current row builder
      • column

        public RowBuilder column(javax.persistence.metamodel.Attribute column,                         Object value)
        Type safe approach to add a column to current row based on JPA metamodel. The actual name of the column will be extracted from the metamodel.
        Parameters:
        column - JPA metamodel column
        value - the column value
        Returns:
        current row builder
      • column

        public RowBuilder column(String columnName,                         Object value)
        Adds a column to current row
        Overrides:
        column in class BasicRowBuilder
        Parameters:
        columnName - the column name
        value - the column value
        Returns:
        current row builder
      • column

        public RowBuilder column(javax.persistence.metamodel.Attribute column,                         Calendar value)
        Adds a calendar column to current row based on JPA metamodel The calendar will be converted to dbunit default format (yyyy-MM-dd HH:mm:ss) Note that if the date has hour/minutes/seconds unset (0) then 'yyyy-MM-dd' will be used as format
        Parameters:
        column - JPA metamodel column
        value - the column value
        Returns:
        current row builder
      • column

        public RowBuilder column(javax.persistence.metamodel.Attribute column,                         Date value)
        Adds a date column to current row based on JPA metamodel The date will be converted to dbunit default format (yyyy-MM-dd HH:mm:ss) Note that if the date has hour/minutes/seconds unset (0) then 'yyyy-MM-dd' will be used as format
        Parameters:
        column - JPA metamodel column
        value - the column value
        Returns:
        current row builder
      • row

        public RowBuilder row()
        starts a new row for current table
        Returns:
        current row builder
      • table

        public TableBuilder table(String tableName)
        Starts creating rows for a new table
        Parameters:
        tableName - table which new rows will be added
        Returns:
        a table builder
      • build

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

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