public class CachedInventoryInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
Constructor and Description |
---|
CachedInventoryInfo() |
CachedInventoryInfo(double pStockLevelWithFraction,
double pBackorderLevelWithFraction,
double pPreorderLevelWithFraction,
long pStockThreshold,
long pBackorderThreshold,
long pPreorderThreshold,
int pAvailabilityStatus,
java.util.Date pAvailabilityDate)
Construct a new CachedInventoryInfo with the given static information
|
CachedInventoryInfo(long pStockLevel,
double pStockLevelWithFraction,
long pBackorderLevel,
double pBackorderLevelWithFraction,
long pPreorderLevel,
double pPreorderLevelWithFraction,
long pStockThreshold,
long pBackorderThreshold,
long pPreorderThreshold,
int pAvailabilityStatus,
java.util.Date pAvailabilityDate)
Construct a new CachedInventoryInfo with the given static information
|
CachedInventoryInfo(long pStockLevel,
long pBackorderLevel,
long pPreorderLevel,
long pStockThreshold,
long pBackorderThreshold,
long pPreorderThreshold,
int pAvailabilityStatus,
java.util.Date pAvailabilityDate)
Construct a new CachedInventoryInfo with the given static information
|
CachedInventoryInfo(java.lang.String pInventoryId,
InventoryManager pInventoryManager)
Construct a new CachedInventoryInfo with the given inventory id
|
CachedInventoryInfo(java.lang.String pInventoryId,
InventoryManager pInventoryManager,
ApplicationLogging pLog)
Construct a new CachedInventoryInfo with the given inventory id
|
CachedInventoryInfo(java.lang.String pInventoryId,
java.lang.String pLocationId,
InventoryManager pInventoryManager)
Construct a new CachedInventoryInfo with the given inventory id
|
CachedInventoryInfo(java.lang.String pInventoryId,
java.lang.String pLocationId,
InventoryManager pInventoryManager,
ApplicationLogging pLog)
Construct a new CachedInventoryInfo with the given inventory id
|
Modifier and Type | Method and Description |
---|---|
java.util.Date |
getAvailabilityDate()
The availabilityDate for the inventory item with id
inventoryId |
int |
getAvailabilityStatus()
The availabilityStatus for the inventory item with id
inventoryId |
AvailableToPromise |
getAvailableToPromise()
The availability information for the inventory item with id
inventoryId
This method only returns a value if the configured InventoryManager is an instance of
LocationInventoryManager, otherwise null is returned. |
long |
getBackorderLevel()
The backorderLevel for the inventory item with id
inventoryId |
double |
getBackorderLevelWithFraction()
The BackorderLevelWithFraction for the inventory item with id
inventoryId |
long |
getBackorderThreshold()
The backorderThreshold for the inventory item with id
inventoryId |
java.lang.String |
getInventoryId()
The id of the inventory item having each of these properties.
|
InventoryManager |
getInventoryManager()
The inventory manager used to retrieve each of these properties
|
java.lang.String |
getLocationId()
Gets the location id for the inventory item
|
ApplicationLogging |
getLog()
Error messages are logged here.
|
long |
getPreorderLevel()
The preorderLevel for the inventory item with id
inventoryId |
double |
getPreorderLevelWithFraction()
The PreorderLevelWithFraction for the inventory item with id
inventoryId |
long |
getPreorderThreshold()
The preorderThreshold for the inventory item with id
inventoryId |
long |
getStockLevel()
The stockLevel for the inventory item with id
inventoryId |
double |
getStockLevelWithFraction()
The stockLevelWithFraction for the inventory item with id
inventoryId |
long |
getStockThreshold()
The stockThreshold for the inventory item with id
inventoryId |
void |
setInventoryId(java.lang.String pInventoryId) |
void |
setInventoryManager(InventoryManager pInventoryManager) |
void |
setLocationId(java.lang.String pLocationId) |
void |
setLog(ApplicationLogging pLog) |
java.lang.String |
toString() |
public CachedInventoryInfo()
public CachedInventoryInfo(java.lang.String pInventoryId, InventoryManager pInventoryManager)
pInventoryId
- The sku whose inventory we are querying.pInventoryManager
- The inventory manager used to retrieve the inventory information.
If the inventory manage is also an instance of ApplicationLogging then we use that for the logpublic CachedInventoryInfo(java.lang.String pInventoryId, java.lang.String pLocationId, InventoryManager pInventoryManager)
pInventoryId
- The sku whose inventory we are querying.pInventoryManager
- The inventory manager used to retrieve the inventory information.
If the inventory manage is also an instance of ApplicationLogging then we use that for the logpublic CachedInventoryInfo(java.lang.String pInventoryId, InventoryManager pInventoryManager, ApplicationLogging pLog)
pInventoryId
- The sku whose inventory we are querying.pInventoryManager
- The inventory manager used to retrieve the inventory information.pLog
- All errors are logged here.public CachedInventoryInfo(java.lang.String pInventoryId, java.lang.String pLocationId, InventoryManager pInventoryManager, ApplicationLogging pLog)
pInventoryId
- The sku whose inventory we are querying.pInventoryManager
- The inventory manager used to retrieve the inventory information.pLog
- All errors are logged here.public CachedInventoryInfo(long pStockLevel, long pBackorderLevel, long pPreorderLevel, long pStockThreshold, long pBackorderThreshold, long pPreorderThreshold, int pAvailabilityStatus, java.util.Date pAvailabilityDate)
public CachedInventoryInfo(double pStockLevelWithFraction, double pBackorderLevelWithFraction, double pPreorderLevelWithFraction, long pStockThreshold, long pBackorderThreshold, long pPreorderThreshold, int pAvailabilityStatus, java.util.Date pAvailabilityDate)
public CachedInventoryInfo(long pStockLevel, double pStockLevelWithFraction, long pBackorderLevel, double pBackorderLevelWithFraction, long pPreorderLevel, double pPreorderLevelWithFraction, long pStockThreshold, long pBackorderThreshold, long pPreorderThreshold, int pAvailabilityStatus, java.util.Date pAvailabilityDate)
public long getStockLevel() throws InventoryException
inventoryId
InventoryException
public double getStockLevelWithFraction() throws InventoryException
inventoryId
InventoryException
public long getBackorderLevel() throws InventoryException
inventoryId
InventoryException
public double getBackorderLevelWithFraction() throws InventoryException
inventoryId
InventoryException
public long getPreorderLevel() throws InventoryException
inventoryId
InventoryException
public double getPreorderLevelWithFraction() throws InventoryException
inventoryId
InventoryException
public long getStockThreshold() throws InventoryException
inventoryId
InventoryException
public long getBackorderThreshold() throws InventoryException
inventoryId
InventoryException
public long getPreorderThreshold() throws InventoryException
inventoryId
InventoryException
public int getAvailabilityStatus() throws InventoryException
inventoryId
InventoryException
public java.util.Date getAvailabilityDate() throws InventoryException
inventoryId
InventoryException
public AvailableToPromise getAvailableToPromise() throws InventoryException
inventoryId
This method only returns a value if the configured InventoryManager is an instance of
LocationInventoryManager, otherwise null is returned.InventoryException
public void setInventoryManager(InventoryManager pInventoryManager)
public InventoryManager getInventoryManager()
public void setInventoryId(java.lang.String pInventoryId)
public java.lang.String getInventoryId()
public void setLocationId(java.lang.String pLocationId)
public java.lang.String getLocationId()
public void setLog(ApplicationLogging pLog)
public ApplicationLogging getLog()
public java.lang.String toString()
toString
in class java.lang.Object