wt.clients.replication.unit
Class UnitUsageInterfaceItem
java.lang.Object
wt.clients.replication.unit.UnitUsageInterfaceItem
- All Implemented Interfaces:
- Updateable
- public class UnitUsageInterfaceItem
- extends Object
- implements Updateable
UnitUsageInterfaceItem is a model class for manipulating WTPartUsageLinks.
Supported API: false
Extendable: false
- See Also:
WTPartUsageLink
usageLink
private UnitWTPartUsageLink 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
UnitUsageInterfaceItem
public UnitUsageInterfaceItem(UnitItem uses,
WTPartMaster usedBy)
throws WTException
UnitUsageInterfaceItem
public UnitUsageInterfaceItem(UnitWTPartUsageLink 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(UnitWTPartUsageLink usage_link)
getPartUsageLink
public UnitWTPartUsageLink getPartUsageLink()
setUses
public void setUses(UnitItem uses)
getUses
public UnitItem 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()