1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102
|
/*
*
* Derby - Class org.apache.derbyTesting.system.oe.model.OrderItem
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
* either express or implied. See the License for the specific
* language governing permissions and limitations under the License.
*/
package org.apache.derbyTesting.system.oe.model;
import java.sql.Timestamp;
/**
* An Order Entry order line item.
* <P>
* Fields map to definition in TPC-C for the ORDERLINE table.
* The Java names of fields do not include the OL_ prefix
* and are in lower case.
* <BR>
* All fields have Java bean setters and getters.
* <BR>
* Fields that are DECIMAL in the database map to String in Java
* (rather than BigDecimal) to allow running on J2ME/CDC/Foundation.
* <P>
* Primary key maps to {Order,id}, it is assumed that an OrderLine object
* exists in the context of an Order object, thus the columns
* {OL_O_ID, OL_D_ID, OL_W_ID} are not represented in this class.
*
* <P>
* An OrderLine object may sparsely populated, when returned from a
* business transaction it is only guaranteed to contain the information
* required to display the result of that transaction.
*/
public class OrderLine {
/**
* Line item order number.
*/
private short number;
/**
* ITEM number.
*/
private int i_id;
private short supply_w_id;
private Timestamp delivery_d;
private short quantity;
private String amount;
private String dist_info;
public String getAmount() {
return amount;
}
public void setAmount(String amount) {
this.amount = amount;
}
public Timestamp getDelivery_d() {
return delivery_d;
}
public void setDelivery_d(Timestamp delivery_d) {
this.delivery_d = delivery_d;
}
public String getDist_info() {
return dist_info;
}
public void setDist_info(String dist_info) {
this.dist_info = dist_info;
}
public int getI_id() {
return i_id;
}
public void setI_id(int i_id) {
this.i_id = i_id;
}
public short getNumber() {
return number;
}
public void setNumber(short number) {
this.number = number;
}
public short getQuantity() {
return quantity;
}
public void setQuantity(short quantity) {
this.quantity = quantity;
}
public short getSupply_w_id() {
return supply_w_id;
}
public void setSupply_w_id(short supply_w_id) {
this.supply_w_id = supply_w_id;
}
}
|