public class DefaultRowSetMetaData extends java.lang.Object implements RowSetMetaData
RowSetMetaData interface.
Requires a Sheet and ColumnNameExtractor to operate correctly.
Delegates the retrieval of the column names to the ColumnNameExtractor.| Constructor and Description |
|---|
DefaultRowSetMetaData(Sheet sheet,
ColumnNameExtractor columnNameExtractor) |
| Modifier and Type | Method and Description |
|---|---|
int |
getColumnCount()
Retrieves the number of columns in the RowSet.
|
java.lang.String |
getColumnName(int idx)
Retrieves the column name for the indicatd column.
|
java.lang.String[] |
getColumnNames()
Retrieves the names of the columns for the current sheet.
|
java.lang.String |
getSheetName()
Retrieves the name of the sheet the RowSet is based on.
|
public DefaultRowSetMetaData(Sheet sheet, ColumnNameExtractor columnNameExtractor)
public java.lang.String[] getColumnNames()
RowSetMetaDatagetColumnNames in interface RowSetMetaDatapublic java.lang.String getColumnName(int idx)
RowSetMetaDatagetColumnName in interface RowSetMetaDataidx - the index of the column, 0 basedpublic int getColumnCount()
RowSetMetaDatagetColumnCount in interface RowSetMetaDatapublic java.lang.String getSheetName()
RowSetMetaDatagetSheetName in interface RowSetMetaData