LineItempublic class LineItem extends Object
Fields Summary |
---|
private LineItemPK | pk | private int | quantity | private String | id |
Constructors Summary |
---|
public LineItem()
| public LineItem(LineItemPK pk, int quantity)
this.pk = pk;
this.quantity = quantity;
this.pk.getOrder().getLineItems().add( this );
| public LineItem(Order order, String productCode, int quantity)
this( new LineItemPK( order, productCode ), quantity );
|
Methods Summary |
---|
public java.lang.String | getId()
return id;
| public LineItemPK | getPk()
return pk;
| public int | getQuantity()
return quantity;
| public void | setId(java.lang.String id)
this.id = id;
| public void | setPk(LineItemPK pk)
this.pk = pk;
| public void | setQuantity(int quantity)
this.quantity = quantity;
|
|