IN PROGRESS - BATCH-693: Refactor samples along domain contours

This commit is contained in:
robokaso
2008-07-25 12:33:24 +00:00
parent b7e5ff13fb
commit f636d042f8
132 changed files with 264 additions and 264 deletions

View File

@@ -1,4 +1,4 @@
package org.springframework.batch.sample.football;
package org.springframework.batch.sample.domain.football;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

View File

@@ -1,4 +1,4 @@
package org.springframework.batch.sample.football;
package org.springframework.batch.sample.domain.football;
import java.io.Serializable;

View File

@@ -1,4 +1,4 @@
package org.springframework.batch.sample.football;
package org.springframework.batch.sample.domain.football;
import org.springframework.batch.item.file.mapping.FieldSet;
import org.springframework.batch.item.file.mapping.FieldSetMapper;

View File

@@ -1,4 +1,4 @@
package org.springframework.batch.sample.football;
package org.springframework.batch.sample.domain.football;
import org.springframework.batch.item.ClearFailedException;
import org.springframework.batch.item.FlushFailedException;

View File

@@ -1,7 +1,7 @@
/**
*
*/
package org.springframework.batch.sample.football;
package org.springframework.batch.sample.domain.football;
import org.springframework.jdbc.core.support.JdbcDaoSupport;

View File

@@ -1,4 +1,4 @@
package org.springframework.batch.sample.football;
package org.springframework.batch.sample.domain.football;
import org.springframework.batch.item.ClearFailedException;
import org.springframework.batch.item.FlushFailedException;

View File

@@ -1,4 +1,4 @@
package org.springframework.batch.sample.football;
package org.springframework.batch.sample.domain.football;
import java.io.Serializable;

View File

@@ -1,4 +1,4 @@
package org.springframework.batch.sample.football;
package org.springframework.batch.sample.domain.football;
/**

View File

@@ -1,4 +1,4 @@
package org.springframework.batch.sample.football;
package org.springframework.batch.sample.domain.football;
import org.springframework.batch.item.file.mapping.FieldSet;
import org.springframework.batch.item.file.mapping.FieldSetMapper;

View File

@@ -1,4 +1,4 @@
package org.springframework.batch.sample.football;
package org.springframework.batch.sample.domain.football;
import org.springframework.batch.item.support.AbstractItemWriter;

View File

@@ -1,4 +1,4 @@
package org.springframework.batch.sample.football;
package org.springframework.batch.sample.domain.football;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.batch.sample.football;
package org.springframework.batch.sample.domain.football;
import java.sql.ResultSet;
import java.sql.SQLException;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.batch.sample.football;
package org.springframework.batch.sample.domain.football;
import java.sql.ResultSet;
import java.sql.SQLException;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.batch.sample.order;
package org.springframework.batch.sample.domain.order;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.batch.sample.order;
package org.springframework.batch.sample.domain.order;
import org.springframework.batch.item.file.mapping.FieldSet;
import org.springframework.batch.item.file.mapping.FieldSetMapper;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.batch.sample.order;
package org.springframework.batch.sample.domain.order;
import org.springframework.batch.item.file.mapping.FieldSet;
import org.springframework.batch.item.file.mapping.FieldSetMapper;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.batch.sample.order;
package org.springframework.batch.sample.domain.order;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.batch.sample.order;
package org.springframework.batch.sample.domain.order;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.batch.sample.order;
package org.springframework.batch.sample.domain.order;
import org.springframework.batch.item.file.mapping.FieldSet;
import org.springframework.batch.item.file.mapping.FieldSetMapper;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.batch.sample.order;
package org.springframework.batch.sample.domain.order;
import org.springframework.batch.item.file.mapping.FieldSet;
import org.springframework.batch.item.file.mapping.FieldSetMapper;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.batch.sample.order;
package org.springframework.batch.sample.domain.order;
import java.math.BigDecimal;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.batch.sample.order;
package org.springframework.batch.sample.domain.order;
import java.math.BigDecimal;
import java.util.Date;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.batch.sample.order;
package org.springframework.batch.sample.domain.order;
/**

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.batch.sample.order;
package org.springframework.batch.sample.domain.order;
import org.springframework.batch.item.file.mapping.FieldSet;
import org.springframework.batch.item.file.mapping.FieldSetMapper;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.batch.sample.order;
package org.springframework.batch.sample.domain.order;
import java.util.ArrayList;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.batch.sample.order;
package org.springframework.batch.sample.domain.order;
import java.text.SimpleDateFormat;
import java.util.ArrayList;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.batch.sample.order;
package org.springframework.batch.sample.domain.order;
import org.springframework.batch.item.file.mapping.FieldSet;
import org.springframework.batch.item.file.mapping.FieldSetMapper;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.batch.sample.order;
package org.springframework.batch.sample.domain.order;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.batch.sample.order.valang;
package org.springframework.batch.sample.domain.order.valang;
import java.util.Date;

View File

@@ -14,12 +14,12 @@
* limitations under the License.
*/
package org.springframework.batch.sample.order.valang;
package org.springframework.batch.sample.domain.order.valang;
import java.util.Iterator;
import java.util.List;
import org.springframework.batch.sample.order.LineItem;
import org.springframework.batch.sample.domain.order.LineItem;
import org.springmodules.validation.valang.functions.AbstractFunction;
import org.springmodules.validation.valang.functions.Function;

View File

@@ -14,12 +14,12 @@
* limitations under the License.
*/
package org.springframework.batch.sample.order.valang;
package org.springframework.batch.sample.domain.order.valang;
import java.math.BigDecimal;
import java.util.List;
import org.springframework.batch.sample.order.LineItem;
import org.springframework.batch.sample.domain.order.LineItem;
import org.springmodules.validation.valang.functions.AbstractFunction;
import org.springmodules.validation.valang.functions.Function;

View File

@@ -14,12 +14,12 @@
* limitations under the License.
*/
package org.springframework.batch.sample.order.valang;
package org.springframework.batch.sample.domain.order.valang;
import java.math.BigDecimal;
import java.util.List;
import org.springframework.batch.sample.order.LineItem;
import org.springframework.batch.sample.domain.order.LineItem;
import org.springmodules.validation.valang.functions.AbstractFunction;
import org.springmodules.validation.valang.functions.Function;

View File

@@ -14,11 +14,11 @@
* limitations under the License.
*/
package org.springframework.batch.sample.order.valang;
package org.springframework.batch.sample.domain.order.valang;
import java.util.List;
import org.springframework.batch.sample.order.LineItem;
import org.springframework.batch.sample.domain.order.LineItem;
import org.springmodules.validation.valang.functions.AbstractFunction;
import org.springmodules.validation.valang.functions.Function;

View File

@@ -14,12 +14,12 @@
* limitations under the License.
*/
package org.springframework.batch.sample.order.valang;
package org.springframework.batch.sample.domain.order.valang;
import java.math.BigDecimal;
import java.util.List;
import org.springframework.batch.sample.order.LineItem;
import org.springframework.batch.sample.domain.order.LineItem;
import org.springmodules.validation.valang.functions.AbstractFunction;
import org.springmodules.validation.valang.functions.Function;

View File

@@ -14,11 +14,11 @@
* limitations under the License.
*/
package org.springframework.batch.sample.order.valang;
package org.springframework.batch.sample.domain.order.valang;
import java.util.List;
import org.springframework.batch.sample.order.LineItem;
import org.springframework.batch.sample.domain.order.LineItem;
import org.springmodules.validation.valang.functions.AbstractFunction;
import org.springmodules.validation.valang.functions.Function;

View File

@@ -14,12 +14,12 @@
* limitations under the License.
*/
package org.springframework.batch.sample.order.valang;
package org.springframework.batch.sample.domain.order.valang;
import java.math.BigDecimal;
import java.util.List;
import org.springframework.batch.sample.order.LineItem;
import org.springframework.batch.sample.domain.order.LineItem;
import org.springmodules.validation.valang.functions.AbstractFunction;
import org.springmodules.validation.valang.functions.Function;

View File

@@ -14,12 +14,12 @@
* limitations under the License.
*/
package org.springframework.batch.sample.order.valang;
package org.springframework.batch.sample.domain.order.valang;
import java.math.BigDecimal;
import java.util.List;
import org.springframework.batch.sample.order.LineItem;
import org.springframework.batch.sample.domain.order.LineItem;
import org.springmodules.validation.valang.functions.AbstractFunction;
import org.springmodules.validation.valang.functions.Function;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.batch.sample.order.xml;
package org.springframework.batch.sample.domain.order.xml;
import org.apache.commons.lang.builder.ToStringBuilder;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.batch.sample.order.xml;
package org.springframework.batch.sample.domain.order.xml;
/**

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.batch.sample.order.xml;
package org.springframework.batch.sample.domain.order.xml;
import java.util.Date;
import java.util.List;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.batch.sample.order.xml;
package org.springframework.batch.sample.domain.order.xml;
/**

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.batch.sample.person;
package org.springframework.batch.sample.domain.person;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.batch.sample.person;
package org.springframework.batch.sample.domain.person;
import java.util.ArrayList;
import java.util.List;
@@ -22,7 +22,7 @@ import java.util.List;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.springframework.batch.sample.order.Address;
import org.springframework.batch.sample.domain.order.Address;
public class Person {

View File

@@ -14,14 +14,14 @@
* limitations under the License.
*/
package org.springframework.batch.sample.person;
package org.springframework.batch.sample.domain.person;
import java.util.ArrayList;
import java.util.List;
import org.springframework.batch.item.ItemReader;
import org.springframework.batch.item.ItemWriter;
import org.springframework.batch.sample.order.Address;
import org.springframework.batch.sample.domain.order.Address;
/**
* Custom class that contains logic that would normally be be contained in

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.batch.sample.person;
package org.springframework.batch.sample.domain.person;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.batch.sample.trade;
package org.springframework.batch.sample.domain.trade;
import java.math.BigDecimal;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.batch.sample.trade;
package org.springframework.batch.sample.domain.trade;
/**

View File

@@ -1,4 +1,4 @@
package org.springframework.batch.sample.trade;
package org.springframework.batch.sample.domain.trade;
import java.math.BigDecimal;

View File

@@ -1,4 +1,4 @@
package org.springframework.batch.sample.trade;
package org.springframework.batch.sample.domain.trade;
import java.sql.ResultSet;
import java.sql.SQLException;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.batch.sample.trade;
package org.springframework.batch.sample.domain.trade;
import java.math.BigDecimal;
import java.sql.PreparedStatement;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.batch.sample.trade;
package org.springframework.batch.sample.domain.trade;
import org.springframework.batch.item.support.AbstractItemWriter;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.batch.sample.trade;
package org.springframework.batch.sample.domain.trade;
import java.math.BigDecimal;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.batch.sample.trade;
package org.springframework.batch.sample.domain.trade;
/**

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.batch.sample.trade;
package org.springframework.batch.sample.domain.trade;
import java.sql.ResultSet;
import java.sql.SQLException;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.batch.sample.trade;
package org.springframework.batch.sample.domain.trade;
import org.springframework.batch.item.support.AbstractItemWriter;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.batch.sample.trade;
package org.springframework.batch.sample.domain.trade;
import org.springframework.batch.item.ExecutionContext;
import org.springframework.batch.item.ItemStream;

View File

@@ -1,4 +1,4 @@
package org.springframework.batch.sample.trade;
package org.springframework.batch.sample.domain.trade;
import java.math.BigDecimal;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.batch.sample.trade;
package org.springframework.batch.sample.domain.trade;
import java.util.ArrayList;
import java.util.List;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.batch.sample.trade;
package org.springframework.batch.sample.domain.trade;
import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.batch.sample.trade;
package org.springframework.batch.sample.domain.trade;
import javax.sql.DataSource;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.batch.sample.trade;
package org.springframework.batch.sample.domain.trade;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.batch.sample.trade;
package org.springframework.batch.sample.domain.trade;
import java.io.Serializable;
import java.math.BigDecimal;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.batch.sample.trade;
package org.springframework.batch.sample.domain.trade;
/**

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.batch.sample.trade;
package org.springframework.batch.sample.domain.trade;
import org.springframework.batch.item.file.mapping.FieldSet;
import org.springframework.batch.item.file.mapping.FieldSetMapper;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.batch.sample.trade;
package org.springframework.batch.sample.domain.trade;
import java.sql.ResultSet;
import java.sql.SQLException;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.batch.sample.trade;
package org.springframework.batch.sample.domain.trade;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

View File

@@ -1,4 +1,4 @@
package org.springframework.batch.sample.retry;
package org.springframework.batch.sample.support;
import org.springframework.batch.item.support.AbstractItemWriter;