|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IdentificationFactory
This interface defines methods to create, retrieve and manipulate identifications.
| Method Summary | |
|---|---|
Identification |
create(Identification identification,
boolean bCheckUnique)
Create Identification in the persistance store. |
void |
create(java.util.List lstIdentifications,
boolean bCheckUnique)
Create list of Identifications in the persistance store. |
Identification |
get(int iInventoryId,
java.lang.String strInternalNumber)
Get specific identification identified by the number assigned to it by user, which should be unique in the inventory. |
java.util.Set |
getAllExternalNumbers(int iInventoryId)
Get all manufacturer specified external numbers in inventory. |
java.util.Set |
getAllInternalNumbers(int iInventoryId)
Get all user specified internal numbers for particular inventory. |
java.util.List |
getForItem(int iItemId)
Get list with all identifications for specified item. |
java.lang.String |
getInternalNumberForExternalNumber(int iInventoryId,
java.lang.String externalNumber)
Get internal numbers for external number in inventory. |
java.lang.String |
getInternalNumberForNotUniquelyTracked(int iItemId)
Return unique internal number associated with this non uniquely tracked item. |
java.lang.String |
getNextInternalNumber(int iInventoryId)
Try to get the next internal number for particular inventory. |
int |
save(java.util.Collection colDataObject)
Update collection of Identifications |
Identification |
save(Identification identification,
boolean bCheckUnique)
Updates Identification in the persistence store. |
void |
save(java.util.List lstIdentifications,
boolean bCheckUnique)
Update list of Identifications in the persistance store. |
void |
setAllRetired(int iInventoryId)
Set all identifications in the inventory as retired since they should not be used anymore. |
void |
setRetired(java.util.Set idList)
Set all identifications in the specified list as retired since they should not be used anymore. |
boolean |
verifyUniqueExternalNumber(Identification data,
boolean checkName)
Check external number, inventory, manufacturer is not used yet |
| Methods inherited from interface org.opensubsystems.core.persist.ModifiableDataFactory |
|---|
save |
| Methods inherited from interface org.opensubsystems.core.persist.BasicDataFactory |
|---|
create, create, delete |
| Methods inherited from interface org.opensubsystems.core.persist.DataFactory |
|---|
get, getDataType |
| Methods inherited from interface org.opensubsystems.patterns.listdata.persist.ListFactory |
|---|
get, getDefaultListDefinition |
| Method Detail |
|---|
Identification get(int iInventoryId,
java.lang.String strInternalNumber)
throws org.opensubsystems.core.error.OSSException
iInventoryId - - id of inventory to get the identification from
TODO: Improve: Why are we saying it should be unique? Why we do not
enforce the uniquenessstrInternalNumber - - internal number assigned to it by user which
should be unique in the inventory
org.opensubsystems.core.error.OSSException - - an error has occured
Identification create(Identification identification,
boolean bCheckUnique)
throws org.opensubsystems.core.error.OSSException
identification - - item number item to createbCheckUnique - - if true external number has to be unique in the
inventory
org.opensubsystems.core.error.OSSException - - an error has occured
Identification save(Identification identification,
boolean bCheckUnique)
throws org.opensubsystems.core.error.OSSException
identification - - Identification item to createbCheckUnique - - if true external number has to be unique in the
inventory
org.opensubsystems.core.error.OSSException - - an error has occured
void create(java.util.List lstIdentifications,
boolean bCheckUnique)
throws org.opensubsystems.core.error.OSSException
lstIdentifications - - list of Identification items to createbCheckUnique - - if true external number has to be unique in the
inventory
org.opensubsystems.core.error.OSSException - - an error has occured
void save(java.util.List lstIdentifications,
boolean bCheckUnique)
throws org.opensubsystems.core.error.OSSException
lstIdentifications - - list of Identification items to updatebCheckUnique - - if true external number has to be unique in the
inventory
org.opensubsystems.core.error.OSSException - - an error has occured
int save(java.util.Collection colDataObject)
throws org.opensubsystems.core.error.OSSException
colDataObject - - collection of identifications that have to be updated
org.opensubsystems.core.error.OSSException - - an error has occured
java.lang.String getInternalNumberForNotUniquelyTracked(int iItemId)
throws org.opensubsystems.core.error.OSSException
iItemId - - item id
org.opensubsystems.core.error.OSSException - - an error has occured
java.lang.String getNextInternalNumber(int iInventoryId)
throws org.opensubsystems.core.error.OSSException
iInventoryId - - inventory id to get the next internal number from
org.opensubsystems.core.error.OSSException - - an error has occured
java.util.List getForItem(int iItemId)
throws org.opensubsystems.core.error.OSSException
iItemId - - item id to get identification for
org.opensubsystems.core.error.OSSException - - an error has occured
java.util.Set getAllInternalNumbers(int iInventoryId)
throws org.opensubsystems.core.error.OSSException
iInventoryId - - inventory id to get the internal numbers for
org.opensubsystems.core.error.OSSException - - an error has occured
java.util.Set getAllExternalNumbers(int iInventoryId)
throws org.opensubsystems.core.error.OSSException
iInventoryId - - inventory id to get the external numbers from
org.opensubsystems.core.error.OSSException - - an error has occured
java.lang.String getInternalNumberForExternalNumber(int iInventoryId,
java.lang.String externalNumber)
throws org.opensubsystems.core.error.OSSException
iInventoryId - - inventory idexternalNumber - - external number
org.opensubsystems.core.error.OSSException - - an error has occured
void setAllRetired(int iInventoryId)
throws org.opensubsystems.core.error.OSSException
iInventoryId - - id of inventory for Identifications
org.opensubsystems.core.error.OSSException - - an error has occured
void setRetired(java.util.Set idList)
throws org.opensubsystems.core.error.OSSException
idList - - set with ids of Identification to set as retired
org.opensubsystems.core.error.OSSException - - an error has occured
boolean verifyUniqueExternalNumber(Identification data,
boolean checkName)
throws org.opensubsystems.core.error.OSSException
data - - data to checkcheckName - - if true name have to be unique
org.opensubsystems.core.error.OSSException - - an error occured
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||