wt.clients.replication.unit
Class UnitUsageInterfaceItem

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

Field Summary
private  String id
           
private  String managedBy
           
private  boolean modified
           
private static int newUsageCounter
           
private  double quantity
           
private  QuantityUnit unit
           
private  UnitWTPartUsageLink usageLink
           
 
Constructor Summary
UnitUsageInterfaceItem(UnitItem uses, WTPartMaster usedBy)
           
UnitUsageInterfaceItem(UnitWTPartUsageLink usage_link)
           
 
Method Summary
 void create()
          Create the object.
 void delete()
          Delete the object.
 String getId()
           
 String getIdentity()
           
 String getManagedBy()
           
 UnitWTPartUsageLink getPartUsageLink()
           
 double getQuantity()
           
 String getQuantityString()
           
 QuantityUnit getUnits()
           
 WTPartMaster getUsedBy()
           
 UnitItem getUses()
           
 boolean isModified()
           
 void setModified(boolean modified_flag)
           
 void setPartUsageLink(UnitWTPartUsageLink usage_link)
           
 void setQuantity(double a_quantity)
           
 void setUnit(QuantityUnit a_unit)
           
 void setUsedBy(WTPartMaster usedBy)
           
 void setUses(UnitItem 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 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
Constructor Detail

UnitUsageInterfaceItem

public UnitUsageInterfaceItem(UnitItem uses,
                              WTPartMaster usedBy)
                       throws WTException

UnitUsageInterfaceItem

public UnitUsageInterfaceItem(UnitWTPartUsageLink 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(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()