KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mule > samples > loanbroker > LoanRequest


1 /*
2  * $Id: LoanRequest.java 3982 2006-11-22 14:28:01Z lajos $
3  * --------------------------------------------------------------------------------------
4  * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
5  *
6  * The software in this package is published under the terms of the MuleSource MPL
7  * license, a copy of which has been included with this distribution in the
8  * LICENSE.txt file.
9  */

10
11 package org.mule.samples.loanbroker;
12
13 import java.io.Serializable JavaDoc;
14
15 /**
16  * <code>LoanRequest</code> is the request sent by the the LoanBroker
17  */

18 public class LoanRequest implements Serializable JavaDoc
19 {
20     /**
21      * Serial version
22      */

23     private static final long serialVersionUID = -3148402182454459673L;
24
25     /** The customer that requested the quote */
26     private Customer customer;
27
28     /** credit profile for the customer */
29     private CreditProfile creditProfile;
30
31     /** The requested loan Amount */
32     private double loanAmount;
33
34     /** the duration of the loan */
35     private int loanDuration;
36
37     public LoanRequest()
38     {
39         super();
40     }
41
42     public LoanRequest(Customer customer, double loanAmount, int loanDuration)
43     {
44         this.customer = customer;
45         this.loanAmount = loanAmount;
46         this.loanDuration = loanDuration;
47     }
48
49     public Customer getCustomer()
50     {
51         return customer;
52     }
53
54     public void setCustomer(Customer customer)
55     {
56         this.customer = customer;
57     }
58
59     public double getLoanAmount()
60     {
61         return loanAmount;
62     }
63
64     public void setLoanAmount(double loanAmount)
65     {
66         this.loanAmount = loanAmount;
67     }
68
69     public int getLoanDuration()
70     {
71         return loanDuration;
72     }
73
74     public void setLoanDuration(int loanDuration)
75     {
76         this.loanDuration = loanDuration;
77     }
78
79     public CreditProfile getCreditProfile()
80     {
81         return creditProfile;
82     }
83
84     public void setCreditProfile(CreditProfile creditProfile)
85     {
86         this.creditProfile = creditProfile;
87     }
88 }
89
Popular Tags