|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensubsystems.core.data.DataObject
org.opensubsystems.core.data.BasicDataObject
org.opensubsystems.inventory.data.ItemUnitView
org.opensubsystems.inventory.data.ItemUnitIdentificationView
public class ItemUnitIdentificationView
This data object represents union of information between identification, unit and item. Since this is a combination of these three objects and cannot be modified on its own, we will use identification data type to represent this object rather then define new data type. In this case it is critical to reuse the constants from the original objects especially for the id attribute since the combination of the data type (identification) and id (which then has to be unit id) is being used for acccess rights checking. This class is immutable since it is a view and it should be never modified.
| Fields inherited from class org.opensubsystems.core.data.BasicDataObject |
|---|
m_creationTimestamp, m_iDomainId |
| Fields inherited from class org.opensubsystems.core.data.DataObject |
|---|
NEW_ID, NEW_ID_OBJ, NEW_ID_STR |
| Constructor Summary | |
|---|---|
ItemUnitIdentificationView()
Empty constructor |
|
ItemUnitIdentificationView(int iUnitId,
int iDomainId,
int iInventoryId,
int iItemId,
int iShippedCount,
int iAvailableCount,
double dCost,
boolean bFoundHolder,
java.sql.Timestamp creationDate,
java.sql.Timestamp modificationDate,
java.lang.String strName,
java.lang.String strDescription,
int iUnitOfMeasure,
boolean bReusable,
int iExpenseType,
int iAvailableCount2,
int iOnHoldCount,
int iPopularityRank,
int iShippedCount2,
boolean bUniquelyTracked,
int iMinimalAvailableCount,
boolean bPermanentlyAssigned,
double dAverageCost,
double dPrice,
int iDisplayOrder,
java.lang.String strNameStem,
java.lang.String strSize,
java.sql.Timestamp lastRecountDate,
java.sql.Timestamp creationDate2,
java.sql.Timestamp modificationDate2,
int iIdentificationId,
java.lang.String strExternalNumber,
int iManufacturerId,
java.lang.String strInternalNumber,
int iRenterId,
java.lang.String strComments,
boolean bRetired,
double dCost2,
java.sql.Timestamp creationDate3,
java.sql.Timestamp modificationDate3)
Full constructor. |
|
ItemUnitIdentificationView(Item item,
Unit unit,
Identification identification)
Constructor |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object oObject)
|
java.sql.Timestamp |
getCreationTimestamp()
|
int |
getDomainId()
|
int |
getId()
|
java.lang.Integer |
getIdAsObject()
|
Identification |
getIdentification()
Return identification object |
int |
hashCode()
|
boolean |
isSame(java.lang.Object oObject)
|
void |
setCreationTimestamp(java.sql.Timestamp creationTimestamp)
Creation timestamp is timestamp when the data object was created. |
void |
setId(int iNewId)
|
| Methods inherited from class org.opensubsystems.inventory.data.ItemUnitView |
|---|
getItem, getUnit |
| Methods inherited from class org.opensubsystems.core.data.BasicDataObject |
|---|
restore |
| Methods inherited from class org.opensubsystems.core.data.DataObject |
|---|
isFromPersistenceStore, setFromPersistenceStore |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int COL_ITEM_UNIT_IDENTIFICATION_VIEW_ID
public static final int COL_ITEM_UNIT_IDENTIFICATION_VIEW_EXTERNAL_NUMBER
public static final int COL_ITEM_UNIT_IDENTIFICATION_VIEW_MANUFACTURER_ID
public static final int COL_ITEM_UNIT_IDENTIFICATION_VIEW_INTERNAL_NUMBER
public static final int COL_ITEM_UNIT_IDENTIFICATION_VIEW_RENTER_ID
public static final int COL_ITEM_UNIT_IDENTIFICATION_VIEW_COMMENTS
public static final int COL_ITEM_UNIT_IDENTIFICATION_VIEW_RETIRED
public static final int COL_ITEM_UNIT_IDENTIFICATION_VIEW_COST
public static final int COL_ITEM_UNIT_IDENTIFICATION_VIEW_CREATION_DATE
public static final int COL_ITEM_UNIT_IDENTIFICATION_VIEW_MODIFICATION_DATE
public static final int ITEM_UNIT_IDENTIFICATION_VIEW_ADDITIONAL_COLUMNS
public static final int[] ALL_ITEM_UNIT_IDENTIFICATION_VIEW_COLUMNS
protected Identification m_identification
| Constructor Detail |
|---|
public ItemUnitIdentificationView()
public ItemUnitIdentificationView(Item item,
Unit unit,
Identification identification)
item - - item objectunit - - unit objectidentification - - identification object
public ItemUnitIdentificationView(int iUnitId,
int iDomainId,
int iInventoryId,
int iItemId,
int iShippedCount,
int iAvailableCount,
double dCost,
boolean bFoundHolder,
java.sql.Timestamp creationDate,
java.sql.Timestamp modificationDate,
java.lang.String strName,
java.lang.String strDescription,
int iUnitOfMeasure,
boolean bReusable,
int iExpenseType,
int iAvailableCount2,
int iOnHoldCount,
int iPopularityRank,
int iShippedCount2,
boolean bUniquelyTracked,
int iMinimalAvailableCount,
boolean bPermanentlyAssigned,
double dAverageCost,
double dPrice,
int iDisplayOrder,
java.lang.String strNameStem,
java.lang.String strSize,
java.sql.Timestamp lastRecountDate,
java.sql.Timestamp creationDate2,
java.sql.Timestamp modificationDate2,
int iIdentificationId,
java.lang.String strExternalNumber,
int iManufacturerId,
java.lang.String strInternalNumber,
int iRenterId,
java.lang.String strComments,
boolean bRetired,
double dCost2,
java.sql.Timestamp creationDate3,
java.sql.Timestamp modificationDate3)
iUnitId - - see unit objectiDomainId - - see unit objectiInventoryId - - see unit objectiItemId - - see unit objectiShippedCount - - see unit objectiAvailableCount - - see unit objectdCost - - see unit objectbFoundHolder - - see unit objectcreationDate - - see unit objectmodificationDate - - see unit objectstrName - - see item objectstrDescription - - see item objectiUnitOfMeasure - - see item objectbReusable - - see item objectiExpenseType - - see item objectiAvailableCount2 - - see item objectiOnHoldCount - - see item objectiPopularityRank - - see item objectiShippedCount2 - - see item objectbUniquelyTracked - - see item objectiMinimalAvailableCount - - see item objectbPermanentlyAssigned - - see item objectdAverageCost - - see item objectdPrice - - see item objectiDisplayOrder - - see item objectstrNameStem - - see item objectstrSize - - see item objectlastRecountDate - - see item objectcreationDate2 - - see item objectmodificationDate2 - - see item objectiIdentificationId - - unique database generated ID for this identificationstrExternalNumber - - unique identification for an item assigned by
manufacturer. This is combination of characters
and digits and it is only unique in combination
with manufacturer.iManufacturerId - - since two manufacturers can use the same
mechanism to generate serial numbers, we need to
track, who is the manufacturer, who generated this
number.strInternalNumber - - This is inventory wide unique number assigned by
user which allows them to track uniquely their
items independently from the manufacturer's external
numbers. User can edit this number when the item
is created. Even though it is called number this
is combination of characters and digits.iRenterId - - Items which have serial numbers are often rented and we
need to identify them so they can be later returned.
This will contain ID of the company we are renting it
from or DataObject.NEW_ID if not rented.dCost2 - - cost of item with external numberstrComments - - Any comments about this item, e.g. who to return it
to when rented.bRetired - - If this external number should not be used again (for order)
or issue, then user can retire the item by setting this flag.creationDate3 - - timestamp when was the identification createdmodificationDate3 - - timestamp when was the identification last
time modified.| Method Detail |
|---|
public int getDomainId()
getDomainId in class ItemUnitViewpublic int getId()
getId in class ItemUnitViewpublic java.lang.Integer getIdAsObject()
getIdAsObject in class ItemUnitViewpublic void setId(int iNewId)
setId in class ItemUnitViewpublic java.sql.Timestamp getCreationTimestamp()
getCreationTimestamp in class ItemUnitViewpublic void setCreationTimestamp(java.sql.Timestamp creationTimestamp)
setCreationTimestamp in class ItemUnitViewcreationTimestamp - - new creation timestamppublic Identification getIdentification()
public boolean equals(java.lang.Object oObject)
equals in class ItemUnitViewpublic int hashCode()
hashCode in class ItemUnitViewpublic boolean isSame(java.lang.Object oObject)
isSame in class ItemUnitView
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||