Methods Summary |
---|
public void | addCategory(Category category)
if ( category == null ) {
return;
}
if ( categories == null ) {
categories = new HashSet();
}
categories.add( category );
if ( category.getProducts() == null ) {
category.setProducts( new HashSet() );
}
category.getProducts().add( this );
|
public boolean | equals(java.lang.Object obj)
return ( (Product) obj ).stockNumber == this.stockNumber;
|
public java.util.Set | getCategories()
return categories;
|
public java.util.Date | getEffectiveEndDate()
return effectiveEndDate;
|
public java.util.Date | getEffectiveStartDate()
return effectiveStartDate;
|
public java.lang.Long | getId()
return id;
|
public java.lang.String | getName()
return name;
|
public java.util.Set | getOrderLineItems()
return orderLineItems;
|
public int | getStockNumber()
return stockNumber;
|
public int | hashCode()
return stockNumber;
|
public void | setCategories(java.util.Set categories)
this.categories = categories;
|
public void | setEffectiveEndDate(java.util.Date effectiveEndDate)
this.effectiveEndDate = effectiveEndDate;
|
public void | setEffectiveStartDate(java.util.Date effectiveStartDate)
this.effectiveStartDate = effectiveStartDate;
|
public void | setId(java.lang.Long id)
this.id = id;
|
public void | setName(java.lang.String name)
this.name = name;
|
public void | setOrderLineItems(java.util.Set orderLineItems)
this.orderLineItems = orderLineItems;
|
public void | setStockNumber(int stockNumber)
this.stockNumber = stockNumber;
|