~ubuntu-branches/ubuntu/raring/libjboss-remoting-java/raring

« back to all changes in this revision

Viewing changes to examples/org/jboss/remoting/samples/transporter/multiple/Customer.java

  • Committer: Package Import Robot
  • Author(s): Torsten Werner
  • Date: 2011-09-09 14:01:03 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: package-import@ubuntu.com-20110909140103-hqokx61534tas9rg
Tags: 2.5.3.SP1-1
* Newer but not newest upstream release. Do not build samples.
* Change debian/watch to upstream's svn repo.
* Add patch to fix compile error caused by tomcat update.
  (Closes: #628303)
* Switch to source format 3.0.
* Switch to debhelper level 7.
* Remove useless Depends.
* Update Standards-Version: 3.9.2.
* Update README.source.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
package org.jboss.remoting.samples.transporter.multiple;
2
 
 
3
 
import java.io.Serializable;
4
 
 
5
 
/**
6
 
 * Simple data object to represent customer data, to include
7
 
 * Address object.
8
 
 *
9
 
 * @author <a href="mailto:telrod@e2technologies.net">Tom Elrod</a>
10
 
 */
11
 
public class Customer implements Serializable
12
 
{
13
 
   private String firstName = null;
14
 
   private String lastName = null;
15
 
   private Address addr = null;
16
 
   private int customerId = -1;
17
 
 
18
 
   public String getFirstName()
19
 
   {
20
 
      return firstName;
21
 
   }
22
 
 
23
 
   public void setFirstName(String firstName)
24
 
   {
25
 
      this.firstName = firstName;
26
 
   }
27
 
 
28
 
   public String getLastName()
29
 
   {
30
 
      return lastName;
31
 
   }
32
 
 
33
 
   public void setLastName(String lastName)
34
 
   {
35
 
      this.lastName = lastName;
36
 
   }
37
 
 
38
 
   public Address getAddr()
39
 
   {
40
 
      return addr;
41
 
   }
42
 
 
43
 
   public void setAddr(Address addr)
44
 
   {
45
 
      this.addr = addr;
46
 
   }
47
 
 
48
 
   public int getCustomerId()
49
 
   {
50
 
      return customerId;
51
 
   }
52
 
 
53
 
   public void setCustomerId(int customerId)
54
 
   {
55
 
      this.customerId = customerId;
56
 
   }
57
 
 
58
 
   public String toString()
59
 
   {
60
 
      StringBuffer buffer = new StringBuffer();
61
 
      buffer.append("\nCustomer:\n");
62
 
      buffer.append("customer id: " + customerId + "\n");
63
 
      buffer.append("first name: " + firstName + "\n");
64
 
      buffer.append("last name: " + lastName + "\n");
65
 
      buffer.append("street: " + addr.getStreet() + "\n");
66
 
      buffer.append("city: " + addr.getCity() + "\n");
67
 
      buffer.append("state: " + addr.getState() + "\n");
68
 
      buffer.append("zip: " + addr.getZip() + "\n");
69
 
 
70
 
      return buffer.toString();
71
 
   }
72
 
 
73
 
 
74
 
}