|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface UnitFactory
Methods to create, retrieve and manipulate units in the persistence store.
| Method Summary | |
|---|---|
boolean |
changeAvailableCount(int iUnitId,
int iValue)
Change the available count for specified unit by specified relative value. |
boolean |
changeAvailableCount(java.util.List lstChanges)
Change the available count for specified unit by specified relative values. |
boolean |
changeShippedAndAvailableCount(int iUnitId,
int iValue)
Change the shipped and available count for specified unit by specified relative value. |
boolean |
changeShippedAndAvailableCountSecure(int iUnitId,
int iValue)
Change the shipped and available count for specified unit by specified relative value. |
Unit |
get(int iItemId,
double cost)
Get unit based on the item it belongs to and cost of this unit. |
java.util.List |
getAvailableItems(int iItemId)
This method returnd ids of all units for specified item which are available (that is the available count > 0) |
java.util.List |
getExceptFoundHolder(int iItemId)
Get all units for specified item except the "found holder" (if any exists). |
Unit |
getFoundHolderItem(int iItemId)
Get unit which is marked as "found holder". |
int |
resetCounts(int iInventoryId)
Reset all counts of all items in the inventory to 0. |
int |
save(java.util.Collection colUnits)
Update collection of Units |
| 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 |
|---|
int save(java.util.Collection colUnits)
throws org.opensubsystems.core.error.OSSException
colUnits - - collection of units that have to be updated
org.opensubsystems.core.error.OSSException - - an error has occured
Unit get(int iItemId,
double cost)
throws org.opensubsystems.core.error.OSSException
iItemId - - id of item to get unit forcost - - cost of unit to get
org.opensubsystems.core.error.OSSException - - an error has occured
Unit getFoundHolderItem(int iItemId)
throws org.opensubsystems.core.error.OSSException
iItemId - - id of item to get found holder unit for
org.opensubsystems.core.error.OSSException - - an error has occured
java.util.List getExceptFoundHolder(int iItemId)
throws org.opensubsystems.core.error.OSSException
iItemId - - id of item to get units for
org.opensubsystems.core.error.OSSException - - an error has occured
java.util.List getAvailableItems(int iItemId)
throws org.opensubsystems.core.error.OSSException
iItemId - - item id to get the units for
org.opensubsystems.core.error.OSSException - - an error has occured
boolean changeAvailableCount(int iUnitId,
int iValue)
throws org.opensubsystems.core.error.OSSException
iUnitId - - unit id to change the available count foriValue - - value to add (if positive) or remove (if negative)
org.opensubsystems.core.error.OSSException - - an error has occured
boolean changeShippedAndAvailableCount(int iUnitId,
int iValue)
throws org.opensubsystems.core.error.OSSException
iUnitId - - unit id to change the available count foriValue - - value to add (if positive) or remove (if negative)
org.opensubsystems.core.error.OSSException - - an error has occured
boolean changeShippedAndAvailableCountSecure(int iUnitId,
int iValue)
throws org.opensubsystems.core.error.OSSException
iUnitId - - Unit idiValue - - value to add ( have to be >= 0 )
org.opensubsystems.core.error.OSSException - - error in database
boolean changeAvailableCount(java.util.List lstChanges)
throws org.opensubsystems.core.error.OSSException
lstChanges - - list of TwoIntStructs where the first int is the
unit id and the second int is the integer
value (positive or negative to change the count by)
org.opensubsystems.core.error.OSSException - - an error has occured
int resetCounts(int iInventoryId)
throws org.opensubsystems.core.error.OSSException
iInventoryId - - inventory id where to reset count of items
org.opensubsystems.core.error.OSSException - - an error has occured
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||