com.elasticpath.service.catalog.impl
Class InventoryAuditServiceImpl

java.lang.Object
  extended by com.elasticpath.service.impl.AbstractEpServiceImpl
      extended by com.elasticpath.service.impl.AbstractEpPersistenceServiceImpl
          extended by com.elasticpath.service.catalog.impl.InventoryAuditServiceImpl
All Implemented Interfaces:
InventoryAuditService, EpPersistenceService, EpService

public class InventoryAuditServiceImpl
extends AbstractEpPersistenceServiceImpl
implements InventoryAuditService

Provides inventory auditing services.


Constructor Summary
InventoryAuditServiceImpl()
           
 
Method Summary
 java.util.List findByInventoryUid(long inventoryUid)
          Returns a list of InventoryAudit based on the given inventory Uid.
 InventoryAudit get(long inventoryAuditUid)
          Get the InventoryAudit with the given UID.
 java.lang.Object getObject(long uid)
          Generic get method for all persistable domain models.
 void saveOrUpdate(InventoryAudit inventoryAudit)
          Save or update the given InventoryAudit item.
 
Methods inherited from class com.elasticpath.service.impl.AbstractEpPersistenceServiceImpl
getPersistenceEngine, setPersistenceEngine
 
Methods inherited from class com.elasticpath.service.impl.AbstractEpServiceImpl
getElasticPath, setElasticPath
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.elasticpath.service.EpPersistenceService
getPersistenceEngine, setPersistenceEngine
 
Methods inherited from interface com.elasticpath.service.EpService
getElasticPath, setElasticPath
 

Constructor Detail

InventoryAuditServiceImpl

public InventoryAuditServiceImpl()
Method Detail

findByInventoryUid

public java.util.List findByInventoryUid(long inventoryUid)
Returns a list of InventoryAudit based on the given inventory Uid.

Specified by:
findByInventoryUid in interface InventoryAuditService
Parameters:
inventoryUid - the inventory Uid
Returns:
a list of InventoryAudit

get

public InventoryAudit get(long inventoryAuditUid)
                   throws EpServiceException
Get the InventoryAudit with the given UID. Return null if no matching record exists.

Specified by:
get in interface InventoryAuditService
Parameters:
inventoryAuditUid - the UID of the inventory audit
Returns:
the inventory if UID exists, otherwise null
Throws:
EpServiceException - - in case of any errors

getObject

public java.lang.Object getObject(long uid)
                           throws EpServiceException
Generic get method for all persistable domain models.

Specified by:
getObject in interface EpPersistenceService
Parameters:
uid - the persisted instance uid
Returns:
the persisted instance if exists, otherwise null
Throws:
EpServiceException - - in case of any errors

saveOrUpdate

public void saveOrUpdate(InventoryAudit inventoryAudit)
                  throws EpServiceException
Save or update the given InventoryAudit item.

Specified by:
saveOrUpdate in interface InventoryAuditService
Parameters:
inventoryAudit - the inventory audit to save or update
Throws:
EpServiceException - - in case of any errors