com.retek.component.inventory.impl.persistence.cache
Class CacheInventoryDao

java.lang.Object
  extended bycom.retek.commons.domain.core.impl.persistence.cache.CacheDao
      extended bycom.retek.component.inventory.impl.persistence.cache.CacheInventoryDao
All Implemented Interfaces:
InventoryDao

public class CacheInventoryDao
extends CacheDao
implements InventoryDao


Field Summary
static java.lang.String WAREHOUSE
           
 
Constructor Summary
CacheInventoryDao()
           
 
Method Summary
static void add(WarehouseSkuAvailabilityRecordDto whSkuAvailRecDto)
           
static void addInventoryToCache(InventoryDto dto, IntegrationReference bannerRef, IntegrationReference channelTypeRef)
           
static void addNoLongerAvailableSku(java.lang.String skuId)
           
static PurchaseOrderDto addPurchaseOrderToCache(PurchaseOrderDto purchaseOrderDto)
           
static void addSupplierInventoryToCache(SupplierInventoryDto dto)
           
 InventoryDto applyQtyEquationRules(InventoryDto dto)
           
static void clearWarehouseSkuAvailabilityRecords()
           
 InventoryQtyDto createInventoryQty(InventoryQtyDto inventoryQtyDto)
           
static void decrementReservedQtyInSupplierInventory(java.lang.String skuId, java.lang.String supplierId, Quantity reservedQuantity, RDate startDateTime)
           
 java.util.Set findAllVirtualWarehouses(IntegrationReference bannerRef, IntegrationReference channelTypeRef)
           
 java.util.Collection findPurchaseOrders(PurchaseOrderSearchCriteria criteria)
           
 java.util.Set findSupplierInventoriesBySysdate(java.lang.String itemId)
           
 java.util.Set findSupplierInventoriesBySysdate(java.lang.String sellableItemId, java.lang.String supplierId)
           
 java.util.Set findWarehouseSkuAvailabilityRecords(java.lang.String sellableItemId)
           
 java.util.HashMap getMap()
           
 java.util.HashMap getPurchaseOrderMap()
           
static java.lang.String getSizeReport()
           
static Quantity getTotalBackorderedQuantity(java.lang.String sellableItemId, IntegrationReference bannerRef, IntegrationReference channelTypeRef)
           
static void incrementReservedQtyInSupplierInventory(java.lang.String skuId, java.lang.String supplierId, Quantity reservedQuantity, RDate startDateTime)
           
 InventoryDto readInventory(java.lang.String sellableItemId, IntegrationReference bannerReference, IntegrationReference channelTypeReference, boolean lockForUpdate)
           
 InventoryDto readInventory(java.lang.String sellableItemId, IntegrationReference bannerReference, IntegrationReference channelTypeReference, IntegrationReference warehouseRef, boolean lockForUpdate)
           
 InventoryQtyDto readInventoryQty(InventoryQtyType inventoryQtyType)
           
 PurchaseOrderDto readPurchaseOrder(java.lang.String id)
           
static void removeNoLongerAvailableSku(java.lang.String skuId)
           
static void reset()
           
static void resetPurchaseOrders()
           
 InventoryQtyDto updateInventoryQty(InventoryQtyDto inventoryQtyDto)
           
static void updateInventoryToCache(InventoryDto dto, IntegrationReference bannerRef, IntegrationReference channelTypeRef)
           
 
Methods inherited from class com.retek.commons.domain.core.impl.persistence.cache.CacheDao
deleteDto, findAllDtos, getLogger, getNextId, isWildCardEqual, readDto, submitDto
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WAREHOUSE

public static final java.lang.String WAREHOUSE
See Also:
Constant Field Values
Constructor Detail

CacheInventoryDao

public CacheInventoryDao()
Method Detail

reset

public static void reset()

resetPurchaseOrders

public static void resetPurchaseOrders()

getSizeReport

public static java.lang.String getSizeReport()

readInventory

public InventoryDto readInventory(java.lang.String sellableItemId,
                                  IntegrationReference bannerReference,
                                  IntegrationReference channelTypeReference,
                                  IntegrationReference warehouseRef,
                                  boolean lockForUpdate)
                           throws SystemException
Specified by:
readInventory in interface InventoryDao
Throws:
SystemException

readInventory

public InventoryDto readInventory(java.lang.String sellableItemId,
                                  IntegrationReference bannerReference,
                                  IntegrationReference channelTypeReference,
                                  boolean lockForUpdate)
                           throws SystemException
Specified by:
readInventory in interface InventoryDao
Throws:
SystemException

addNoLongerAvailableSku

public static void addNoLongerAvailableSku(java.lang.String skuId)

removeNoLongerAvailableSku

public static void removeNoLongerAvailableSku(java.lang.String skuId)

findAllVirtualWarehouses

public java.util.Set findAllVirtualWarehouses(IntegrationReference bannerRef,
                                              IntegrationReference channelTypeRef)
                                       throws SystemException
Specified by:
findAllVirtualWarehouses in interface InventoryDao
Throws:
SystemException

applyQtyEquationRules

public InventoryDto applyQtyEquationRules(InventoryDto dto)
                                   throws SystemException
Throws:
SystemException

createInventoryQty

public InventoryQtyDto createInventoryQty(InventoryQtyDto inventoryQtyDto)
                                   throws SystemException,
                                          BusinessException
Specified by:
createInventoryQty in interface InventoryDao
Throws:
SystemException
BusinessException

readInventoryQty

public InventoryQtyDto readInventoryQty(InventoryQtyType inventoryQtyType)
                                 throws SystemException,
                                        BusinessException
Specified by:
readInventoryQty in interface InventoryDao
Throws:
SystemException
BusinessException

updateInventoryQty

public InventoryQtyDto updateInventoryQty(InventoryQtyDto inventoryQtyDto)
                                   throws SystemException,
                                          BusinessException
Specified by:
updateInventoryQty in interface InventoryDao
Throws:
SystemException
BusinessException

getMap

public java.util.HashMap getMap()
Specified by:
getMap in class CacheDao

addInventoryToCache

public static void addInventoryToCache(InventoryDto dto,
                                       IntegrationReference bannerRef,
                                       IntegrationReference channelTypeRef)
                                throws SystemException
Throws:
SystemException

updateInventoryToCache

public static void updateInventoryToCache(InventoryDto dto,
                                          IntegrationReference bannerRef,
                                          IntegrationReference channelTypeRef)
                                   throws SystemException
Throws:
SystemException

getTotalBackorderedQuantity

public static Quantity getTotalBackorderedQuantity(java.lang.String sellableItemId,
                                                   IntegrationReference bannerRef,
                                                   IntegrationReference channelTypeRef)
                                            throws SystemException
Throws:
SystemException

addSupplierInventoryToCache

public static void addSupplierInventoryToCache(SupplierInventoryDto dto)
                                        throws SystemException
Throws:
SystemException

findSupplierInventoriesBySysdate

public java.util.Set findSupplierInventoriesBySysdate(java.lang.String sellableItemId,
                                                      java.lang.String supplierId)
                                               throws SystemException
Specified by:
findSupplierInventoriesBySysdate in interface InventoryDao
Throws:
SystemException

findSupplierInventoriesBySysdate

public java.util.Set findSupplierInventoriesBySysdate(java.lang.String itemId)
                                               throws SystemException
Specified by:
findSupplierInventoriesBySysdate in interface InventoryDao
Throws:
SystemException

findWarehouseSkuAvailabilityRecords

public java.util.Set findWarehouseSkuAvailabilityRecords(java.lang.String sellableItemId)
                                                  throws SystemException,
                                                         BusinessException
Specified by:
findWarehouseSkuAvailabilityRecords in interface InventoryDao
Throws:
SystemException
BusinessException

add

public static void add(WarehouseSkuAvailabilityRecordDto whSkuAvailRecDto)

clearWarehouseSkuAvailabilityRecords

public static void clearWarehouseSkuAvailabilityRecords()

incrementReservedQtyInSupplierInventory

public static void incrementReservedQtyInSupplierInventory(java.lang.String skuId,
                                                           java.lang.String supplierId,
                                                           Quantity reservedQuantity,
                                                           RDate startDateTime)
                                                    throws SystemException
Throws:
SystemException

decrementReservedQtyInSupplierInventory

public static void decrementReservedQtyInSupplierInventory(java.lang.String skuId,
                                                           java.lang.String supplierId,
                                                           Quantity reservedQuantity,
                                                           RDate startDateTime)
                                                    throws SystemException
Throws:
SystemException

readPurchaseOrder

public PurchaseOrderDto readPurchaseOrder(java.lang.String id)
                                   throws SystemException,
                                          InvalidIdException
Throws:
SystemException
InvalidIdException

getPurchaseOrderMap

public java.util.HashMap getPurchaseOrderMap()

addPurchaseOrderToCache

public static PurchaseOrderDto addPurchaseOrderToCache(PurchaseOrderDto purchaseOrderDto)
                                                throws SystemException
Throws:
SystemException

findPurchaseOrders

public java.util.Collection findPurchaseOrders(PurchaseOrderSearchCriteria criteria)
                                        throws SystemException,
                                               InvalidIdException
Specified by:
findPurchaseOrders in interface InventoryDao
Throws:
SystemException
InvalidIdException


Copyright © 2004 Retek Inc. All Rights Reserved. - Generated at Fri, 10/22/2004 07:28