wt.clients.replication.unit
Class UsageInterfaceItem
java.lang.Object
wt.clients.replication.unit.UsageInterfaceItem
- All Implemented Interfaces:
- Updateable
- public class UsageInterfaceItem
- extends Object
- implements Updateable
UsageInterfaceItem is a model class for manipulating WTPartUsageLinks.
Supported API: false
Extendable: false
- See Also:
WTPartUsageLink
usageLink
private WTPartUsageLink usageLink
newUsageCounter
private static int newUsageCounter
modified
private boolean modified
id
private String id
quantity
private double quantity
unit
private QuantityUnit unit
managedBy
private String managedBy
uses
private PartItem uses
usedBy
private WTPartMaster usedBy
UsageInterfaceItem
public UsageInterfaceItem()
UsageInterfaceItem
public UsageInterfaceItem(PartItem uses,
WTPartMaster usedBy)
UsageInterfaceItem
public UsageInterfaceItem(WTPartUsageLink usage_link)
setModified
public void setModified(boolean modified_flag)
isModified
public boolean isModified()
create
public void create()
throws WTException
- Description copied from interface:
Updateable
- Create the object.
- Specified by:
create
in interface Updateable
- Throws:
WTException
- See Also:
WTException
update
public void update()
throws WTException
- Description copied from interface:
Updateable
- Update the object.
- Specified by:
update
in interface Updateable
- Throws:
WTException
- See Also:
WTException
delete
public void delete()
throws WTException
- Description copied from interface:
Updateable
- Delete the object.
- Specified by:
delete
in interface Updateable
- Throws:
WTException
- See Also:
WTException
setPartUsageLink
public void setPartUsageLink(WTPartUsageLink usage_link)
getPartUsageLink
public WTPartUsageLink getPartUsageLink()
setUses
public void setUses(PartItem uses)
getUses
public PartItem getUses()
setUsedBy
public void setUsedBy(WTPartMaster usedBy)
getUsedBy
public WTPartMaster getUsedBy()
getId
public String getId()
setQuantity
public void setQuantity(double a_quantity)
getQuantityString
public String getQuantityString()
getQuantity
public double getQuantity()
setUnit
public void setUnit(QuantityUnit a_unit)
getUnits
public QuantityUnit getUnits()
getManagedBy
public String getManagedBy()
toString
public String toString()
getIdentity
public String getIdentity()