null when no sheet available.
+ */
protected abstract Sheet getSheet(int sheet);
+ /**
+ * The number of sheets in the underlying workbook.
+ *
+ * @return the number of sheets.
+ */
protected abstract int getNumberOfSheets();
+ /**
+ *
+ * @param resource {@code Resource} pointing to the Excel file to read
+ * @throws Exception when the Excel sheet cannot be accessed
+ */
protected abstract void openExcelFile(Resource resource) throws Exception;
/**
@@ -170,14 +190,28 @@ public abstract class AbstractExcelItemReaderrowSetFactory. Used to create a {@code RowSet} implemenation. By default the
+ * {@code DefaultRowSetFactory} is used.
+ *
+ * @param rowSetFactory the {@code RowSetFactory} to use.
+ */
public void setRowSetFactory(RowSetFactory rowSetFactory) {
this.rowSetFactory = rowSetFactory;
}
+ /**
+ * @param skippedRowsCallback will be called for each one of the initial skipped lines before any items are read.
+ */
public void setSkippedRowsCallback(final RowCallbackHandler skippedRowsCallback) {
this.skippedRowsCallback = skippedRowsCallback;
}
diff --git a/spring-batch-excel/src/main/java/org/springframework/batch/item/excel/RowMapper.java b/spring-batch-excel/src/main/java/org/springframework/batch/item/excel/RowMapper.java
index 6bda223..03971f8 100644
--- a/spring-batch-excel/src/main/java/org/springframework/batch/item/excel/RowMapper.java
+++ b/spring-batch-excel/src/main/java/org/springframework/batch/item/excel/RowMapper.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006-2014 the original author or authors.
+ * Copyright 2006-2015 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -20,7 +20,7 @@ import org.springframework.batch.item.excel.support.rowset.RowSet;
/**
* Map rows from an excel sheet to an object.
*
- * @param Default is {@code false}, accepting unpopulated properties in the
- * target bean.
+ * mapped from corresponding database fields. Default is {@code false},
+ * accepting unpopulated properties in the target bean.
+ *
+ * @param checkFullyPopulated true or false
*/
public void setCheckFullyPopulated(boolean checkFullyPopulated) {
this.checkFullyPopulated = checkFullyPopulated;
@@ -198,6 +200,8 @@ public class BeanPropertyRowMapper Default is {@code false}, throwing an exception when nulls are mapped to Java primitives.
+ *
+ * Default is {@code false}, throwing an exception when nulls are mapped to Java primitives.
+ *
+ * @param primitivesDefaultedForNullValue should default values be used when read value is {@code null}
*/
public void setPrimitivesDefaultedForNullValue(boolean primitivesDefaultedForNullValue) {
this.primitivesDefaultedForNullValue = primitivesDefaultedForNullValue;
@@ -215,6 +222,8 @@ public class BeanPropertyRowMapper Utilizes public setters and result set metadata.
+ *
+ * Utilizes public setters and result set metadata.
*
* @see java.sql.ResultSetMetaData
*/
@@ -314,6 +324,8 @@ public class BeanPropertyRowMapper