Class DefaultRowSetMetaData

java.lang.Object
org.springframework.batch.extensions.excel.support.rowset.DefaultRowSetMetaData
All Implemented Interfaces:
RowSetMetaData

public class DefaultRowSetMetaData extends Object implements RowSetMetaData
Default implementation for the RowSetMetaData interface. Requires a Sheet and ColumnNameExtractor to operate correctly. Delegates the retrieval of the column names to the ColumnNameExtractor.
Since:
0.1.0
Author:
Marten Deinum
  • Method Details

    • getColumnNames

      public String[] getColumnNames()
      Description copied from interface: RowSetMetaData
      Retrieves the names of the columns for the current sheet.
      Specified by:
      getColumnNames in interface RowSetMetaData
      Returns:
      the column names.
    • getSheetName

      public String getSheetName()
      Description copied from interface: RowSetMetaData
      Retrieves the name of the sheet the RowSet is based on.
      Specified by:
      getSheetName in interface RowSetMetaData
      Returns:
      the name of the sheet