Java Reference
In-Depth Information
from a web service, in order to calculate each account's current value. The job imports the downloaded
prices into the database.
After the initial imports are complete, your job can begin calculating transaction fees. The brokerage
makes its money by charging a fee for each transaction it does. These fees are based on how many
transactions a customer has in a month. The more transactions a customer has, the less they're charged
per transaction. The first step in calculating the transaction fees is to determine what level or tier the
user falls into; then you can calculate the price for the customer's transactions. When all the calculations
have been completed, you can generate the user's monthly statement.
This list of features is intended to provide a complete view into how Spring Batch is used in a real-
world problem. Throughout the topic, you learn about the features Spring Batch provides to help you
develop batch processes like the one required for this scenario. In Chapter 10, you implement the batch
job to meet the requirements outlined in the following user stories:
Import Transactions: As the batch process, I will import the customer
information and their related transactions into the database for future
processing. Acceptance criteria:
The batch job will import a predefined customer/transaction file into a
database table.
After the file has been imported, it will be deleted.
The customer/transaction file will have two record formats. The first will be to
identify the customer the subsequent transactions belong to. The second
will be the individual transaction records.
The format for the customer record is a comma-delimited record of the
following fields:
Customer Tax ID
Customer First Name
Customer Last Name
Customer Address 1
Customer City
Customer State
Customer Zip
Customer Account Number
A customer record will look like the following:
205866465,Joshua,Thompson,3708 Park,Fairview,LA,58517,3276793917668488
Search WWH ::

Custom Search