InventoryLevels Bean を表示するには、以下のようにします。
import com.ibm.pdq.annotation.Table;
import com.ibm.pdq.annotation.Id;
import com.ibm.pdq.annotation.Column;
@Table(name = "INVENTORY_LEVELS", schema = "GOSALES")
public class InventoryLevels {
// Class variables
protected short inventoryYear;
protected short inventoryMonth;
protected int warehouseBranchCode;
protected int productNumber;
protected int openingInventory;
protected int quantityShipped;
protected int additions;
protected BigDecimal unitCost;
protected int closingInventory;
protected BigDecimal averageUnitCost;
/**
* Constructor for InventoryLevels.
*/
public InventoryLevels() {
super();
}
/**
* Constructor for InventoryLevels that sets all fields.
*/
public InventoryLevels(short inventoryYear, short inventoryMonth,
int warehouseBranchCode, int productNumber, int openingInventory,
int quantityShipped, int additions, BigDecimal unitCost,
int closingInventory, BigDecimal averageUnitCost) {
super();
this.inventoryYear = inventoryYear;
this.inventoryMonth = inventoryMonth;
this.warehouseBranchCode = warehouseBranchCode;
this.productNumber = productNumber;
this.openingInventory = openingInventory;
this.quantityShipped = quantityShipped;
this.additions = additions;
this.unitCost = unitCost;
this.closingInventory = closingInventory;
this.averageUnitCost = averageUnitCost;
}
/**
* Get inventoryYear.
*
* @return return inventoryYear
*/
@Id
@Column(name = "INVENTORY_YEAR")
public short getInventoryYear() {
return inventoryYear;
}
/**
* Set inventoryYear.
*
* @param short inventoryYear
*/
@Id
public void setInventoryYear(short inventoryYear) {
this.inventoryYear = inventoryYear;
}