wt.clients.replication.unit
Class UsageInterfaceItem

java.lang.Object
  extended bywt.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

Field Summary
private  String id
           
private  String managedBy
           
private  boolean modified
           
private static int newUsageCounter
           
private  double quantity
           
private  QuantityUnit unit
           
private  WTPartUsageLink usageLink
           
private  WTPartMaster usedBy
           
private  PartItem uses
           
 
Constructor Summary
UsageInterfaceItem()
           
UsageInterfaceItem(PartItem uses, WTPartMaster usedBy)
           
UsageInterfaceItem(WTPartUsageLink usage_link)
           
 
Method Summary
 void create()
          Create the object.
 void delete()
          Delete the object.
 String getId()
           
 String getIdentity()
           
 String getManagedBy()
           
 WTPartUsageLink getPartUsageLink()
           
 double getQuantity()
           
 String getQuantityString()
           
 QuantityUnit getUnits()
           
 WTPartMaster getUsedBy()
           
 PartItem getUses()
           
 boolean isModified()
           
 void setModified(boolean modified_flag)
           
 void setPartUsageLink(WTPartUsageLink usage_link)
           
 void setQuantity(double a_quantity)
           
 void setUnit(QuantityUnit a_unit)
           
 void setUsedBy(WTPartMaster usedBy)
           
 void setUses(PartItem uses)
           
 String toString()
           
 void update()
          Update the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

UsageInterfaceItem

public UsageInterfaceItem()

UsageInterfaceItem

public UsageInterfaceItem(PartItem uses,
                          WTPartMaster usedBy)

UsageInterfaceItem

public UsageInterfaceItem(WTPartUsageLink usage_link)
Method Detail

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()