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

This commit is contained in:
robokaso
2008-07-25 11:01:21 +00:00
parent f58b33f83c
commit 925fdd3bc6
93 changed files with 373 additions and 308 deletions

View File

@@ -22,6 +22,8 @@ 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.order.Child;
public class Person {

View File

@@ -21,6 +21,8 @@ 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.order.Child;
/**
* 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.domain;
package org.springframework.batch.sample.order;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -14,9 +14,8 @@
* limitations under the License.
*/
package org.springframework.batch.sample.dao;
package org.springframework.batch.sample.order;
import org.springframework.batch.sample.domain.Order;
/**
* Interface for writing <code>Order</code> objects.

View File

@@ -14,11 +14,10 @@
* limitations under the License.
*/
package org.springframework.batch.sample.mapping;
package org.springframework.batch.sample.order;
import org.springframework.batch.item.file.mapping.FieldSet;
import org.springframework.batch.item.file.mapping.FieldSetMapper;
import org.springframework.batch.sample.domain.LineItem;
public class OrderItemFieldSetMapper implements FieldSetMapper<LineItem> {

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.batch.sample.item.reader;
package org.springframework.batch.sample.order;
import java.util.ArrayList;
@@ -24,12 +24,6 @@ import org.springframework.batch.item.ItemReader;
import org.springframework.batch.item.file.mapping.FieldSet;
import org.springframework.batch.item.file.mapping.FieldSetMapper;
import org.springframework.batch.item.support.AbstractItemReader;
import org.springframework.batch.sample.domain.Address;
import org.springframework.batch.sample.domain.BillingInfo;
import org.springframework.batch.sample.domain.Customer;
import org.springframework.batch.sample.domain.LineItem;
import org.springframework.batch.sample.domain.Order;
import org.springframework.batch.sample.domain.ShippingInfo;
/**
* @author peter.zozom

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.batch.sample.dao;
package org.springframework.batch.sample.order;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
@@ -25,11 +25,6 @@ import org.springframework.batch.item.file.mapping.DefaultFieldSet;
import org.springframework.batch.item.file.mapping.FieldSet;
import org.springframework.batch.item.file.transform.LineAggregator;
import org.springframework.batch.item.transform.ItemTransformer;
import org.springframework.batch.sample.domain.Address;
import org.springframework.batch.sample.domain.BillingInfo;
import org.springframework.batch.sample.domain.Customer;
import org.springframework.batch.sample.domain.LineItem;
import org.springframework.batch.sample.domain.Order;
/**
* Converts <code>Order</code> object to a String.

View File

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

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.batch.sample.domain;
package org.springframework.batch.sample.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.validation.valang.custom;
package org.springframework.batch.sample.order.valang;
import java.util.Date;

View File

@@ -14,12 +14,12 @@
* limitations under the License.
*/
package org.springframework.batch.sample.validation.valang.custom;
package org.springframework.batch.sample.order.valang;
import java.util.Iterator;
import java.util.List;
import org.springframework.batch.sample.domain.LineItem;
import org.springframework.batch.sample.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.validation.valang.custom;
package org.springframework.batch.sample.order.valang;
import java.math.BigDecimal;
import java.util.List;
import org.springframework.batch.sample.domain.LineItem;
import org.springframework.batch.sample.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.validation.valang.custom;
package org.springframework.batch.sample.order.valang;
import java.math.BigDecimal;
import java.util.List;
import org.springframework.batch.sample.domain.LineItem;
import org.springframework.batch.sample.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.validation.valang.custom;
package org.springframework.batch.sample.order.valang;
import java.util.List;
import org.springframework.batch.sample.domain.LineItem;
import org.springframework.batch.sample.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.validation.valang.custom;
package org.springframework.batch.sample.order.valang;
import java.math.BigDecimal;
import java.util.List;
import org.springframework.batch.sample.domain.LineItem;
import org.springframework.batch.sample.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.validation.valang.custom;
package org.springframework.batch.sample.order.valang;
import java.util.List;
import org.springframework.batch.sample.domain.LineItem;
import org.springframework.batch.sample.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.validation.valang.custom;
package org.springframework.batch.sample.order.valang;
import java.math.BigDecimal;
import java.util.List;
import org.springframework.batch.sample.domain.LineItem;
import org.springframework.batch.sample.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.validation.valang.custom;
package org.springframework.batch.sample.order.valang;
import java.math.BigDecimal;
import java.util.List;
import org.springframework.batch.sample.domain.LineItem;
import org.springframework.batch.sample.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.domain.xml;
package org.springframework.batch.sample.order.xml;
import org.apache.commons.lang.builder.ToStringBuilder;

View File

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

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.batch.sample.domain.xml;
package org.springframework.batch.sample.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.domain.xml;
package org.springframework.batch.sample.order.xml;
/**