001: /**
002: * $Id: Customer.java,v 1.3 2005/08/12 07:38:46 nk137934 Exp $
003: * Copyright 2005 Sun Microsystems, Inc. All
004: * rights reserved. Use of this product is subject
005: * to license terms. Federal Acquisitions:
006: * Commercial Software -- Government Users
007: * Subject to Standard License Terms and
008: * Conditions.
009: *
010: * Sun, Sun Microsystems, the Sun logo, and Sun ONE
011: * are trademarks or registered trademarks of Sun Microsystems,
012: * Inc. in the United States and other countries.
013: */package com.sun.portal.sapportlet.customer;
014:
015: import com.sun.portal.sapportlet.stubs.customer.BRFCKNA1;
016: import java.io.Serializable;
017:
018: /**
019: * This class represents a Customer in the SAP system.
020: *
021: * @author nk137934
022: */
023: public class Customer implements Serializable {
024:
025: private String customerNumber;
026: private String customerName;
027: private String customerTitle;
028: private String customerStreet;
029: private String customerCity;
030: private String customerPostBox;
031: private String customerPostalCode;
032: private String customerPhone;
033: private String customerFax;
034:
035: public Customer(BRFCKNA1 data) {
036:
037: this .setCustomerNumber(data.getKUNNR());
038: this .setCustomerName(data.getNAME1());
039: this .setCustomerTitle(data.getANRED());
040: this .setCustomerStreet(data.getSTRAS());
041: this .setCustomerCity(data.getORT01());
042: this .setCustomerPostBox(data.getPFACH());
043: this .setCustomerPostalCode(data.getPSTLZ());
044: this .setCustomerPhone(data.getTELF1());
045: this .setCustomerFax(data.getTELFX());
046:
047: }
048:
049: public String getCustomerNumber() {
050: return customerNumber;
051: }
052:
053: public void setCustomerNumber(String customerNumber) {
054: this .customerNumber = customerNumber;
055: }
056:
057: public String getCustomerName() {
058: return customerName;
059: }
060:
061: public void setCustomerName(String customerName) {
062: this .customerName = customerName;
063: }
064:
065: public String getCustomerTitle() {
066: return customerTitle;
067: }
068:
069: public void setCustomerTitle(String customerTitle) {
070: this .customerTitle = customerTitle;
071: }
072:
073: public String getCustomerStreet() {
074: return customerStreet;
075: }
076:
077: public void setCustomerStreet(String customerStreet) {
078: this .customerStreet = customerStreet;
079: }
080:
081: public String getCustomerCity() {
082: return customerCity;
083: }
084:
085: public void setCustomerCity(String customerCity) {
086: this .customerCity = customerCity;
087: }
088:
089: public String getCustomerPostBox() {
090: return customerPostBox;
091: }
092:
093: public void setCustomerPostBox(String customerPostBox) {
094: this .customerPostBox = customerPostBox;
095: }
096:
097: public String getCustomerPostalCode() {
098: return customerPostalCode;
099: }
100:
101: public void setCustomerPostalCode(String customerPostalCode) {
102: this .customerPostalCode = customerPostalCode;
103: }
104:
105: public String getCustomerPhone() {
106: return customerPhone;
107: }
108:
109: public void setCustomerPhone(String customerPhone) {
110: this .customerPhone = customerPhone;
111: }
112:
113: public String getCustomerFax() {
114: return customerFax;
115: }
116:
117: public void setCustomerFax(String customerFax) {
118: this.customerFax = customerFax;
119: }
120:
121: }
|