001: /*
002: * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
003: *
004: * Redistribution and use in source and binary forms, with or without
005: * modification, are permitted provided that the following conditions
006: * are met:
007: *
008: * - Redistributions of source code must retain the above copyright
009: * notice, this list of conditions and the following disclaimer.
010: *
011: * - Redistribution in binary form must reproduce the above copyright
012: * notice, this list of conditions and the following disclaimer in
013: * the documentation and/or other materials provided with the
014: * distribution.
015: *
016: * Neither the name of Sun Microsystems, Inc. or the names of
017: * contributors may be used to endorse or promote products derived
018: * from this software without specific prior written permission.
019: *
020: * This software is provided "AS IS," without a warranty of any
021: * kind. ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND
022: * WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY,
023: * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY
024: * EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES
025: * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
026: * DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN
027: * OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR
028: * FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR
029: * PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF
030: * LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE SOFTWARE,
031: * EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
032: *
033: * You acknowledge that Software is not designed, licensed or intended
034: * for use in the design, construction, operation or maintenance of
035: * any nuclear facility.
036: */
037:
038: package com.sun.portal.oracleportlet.util;
039:
040: import java.lang.*;
041: import java.util.*;
042: import java.io.Serializable;
043:
044: /**
045: * This is a bean that holds summary info of a quotation
046: *
047: * @author Zahid Syed
048: */
049:
050: public class QuotationsBean extends Object implements Serializable {
051: String segmentOne;
052: String description;
053: String supplier;
054: String supplierQuote;
055: String buyer;
056: String type;
057: String status;
058:
059: public QuotationsBean() {
060: }
061:
062: public void setSegmentOne(String segOne) {
063: this .segmentOne = segOne;
064: }
065:
066: public String getSegmentOne() {
067: return (this .segmentOne);
068: }
069:
070: public void setDescription(String desc) {
071:
072: this .description = desc;
073: }
074:
075: public String getDescription() {
076: return (this .description);
077: }
078:
079: public void setSupplier(String supp) {
080:
081: this .supplier = supp;
082: }
083:
084: public String getSupplier() {
085: return (this .supplier);
086: }
087:
088: public void setSupplierQuote(String suppQuote) {
089:
090: this .supplierQuote = suppQuote;
091: }
092:
093: public String getSupplierQuote() {
094: return (this .supplierQuote);
095: }
096:
097: public void setBuyer(String byr) {
098:
099: this .buyer = byr;
100: }
101:
102: public String getBuyer() {
103: return (this .buyer);
104: }
105:
106: public void setType(String typ) {
107:
108: this .type = typ;
109: }
110:
111: public String getType() {
112: return (this .type);
113: }
114:
115: public void setStatus(String stat) {
116:
117: if (stat.equalsIgnoreCase("A")) {
118: this .status = "Active";
119: } else if (stat.equalsIgnoreCase("I")) {
120: this .status = "In Process";
121: } else
122: this .status = stat;
123: }
124:
125: public String getStatus() {
126: return (this.status);
127: }
128:
129: }
|