org.salespointframework.core.data
Class CatalogItemDataBasketEntry

java.lang.Object
  extended by org.salespointframework.core.data.DataBasketEntryImpl<java.lang.Object>
      extended by org.salespointframework.core.data.CatalogItemDataBasketEntry
All Implemented Interfaces:
DataBasketEntry<java.lang.Object>, DataBasketKeys, SpItem, Loggable

public class CatalogItemDataBasketEntry
extends DataBasketEntryImpl<java.lang.Object>

A DataBasketEntry representing operations on CatalogImpls and CatalogItemImpls. The fields of the DataBasketEntry are set as follows:

FieldValue
main key CATALOG_ITEM_MAIN_KEY
secondary key name of the CatalogItem in question
source source catalog
destination destination catalog
value CatalogItem in question

Since:
v2.0
Version:
2.0 19/08/1999
Author:
Steffen Zschaler

Nested Class Summary
static class CatalogItemDataBasketEntry.CIDBELogEntry
          A LogEntry that describes CatalogItemDataBasketEntries.
 
Field Summary
 
Fields inherited from class org.salespointframework.core.data.DataBasketEntryImpl
m_dbedDest, m_dbesSource, m_dbiOwner, m_fHandled, m_oValue, m_sMainKey, m_sSecondaryKey
 
Fields inherited from interface org.salespointframework.core.data.interfaces.DataBasketKeys
CATALOG_ITEM_MAIN_KEY, STOCK_ITEM_MAIN_KEY
 
Constructor Summary
CatalogItemDataBasketEntry(CatalogImpl cSource, CatalogImpl cDest, CatalogItemImpl ci)
          Create a new CatalogItemDataBasketEntry.
 
Method Summary
 LogEntry getLogData()
          Return a LogEntry describing this DataBasketEntry.
 void setDestination(CatalogImpl cDest)
          Set the destination of the DataBasketEntry.
 void setSource(CatalogImpl cSource)
          Set the source of the DataBasketEntry.
 
Methods inherited from class org.salespointframework.core.data.DataBasketEntryImpl
commit, DBEtoCatalogItem, getDestination, getMainKey, getName, getOwner, getSecondaryKey, getSource, getValue, isHandled, rollback, setOwner, setSecondaryKey, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CatalogItemDataBasketEntry

public CatalogItemDataBasketEntry(CatalogImpl cSource,
                                  CatalogImpl cDest,
                                  CatalogItemImpl ci)
Create a new CatalogItemDataBasketEntry.

Parameters:
cSource - the source Catalog.
cDest - the destination Catalog.
ci - the CatalogItem that was operated on.
Method Detail

setSource

public void setSource(CatalogImpl cSource)
Set the source of the DataBasketEntry.

This method is public as an implementation detail and must not be called directly!


setDestination

public void setDestination(CatalogImpl cDest)
Set the destination of the DataBasketEntry.

This method is public as an implementation detail and must not be called directly!


getLogData

public LogEntry getLogData()
Return a LogEntry describing this DataBasketEntry.

Specified by:
getLogData in interface Loggable
Overrides:
getLogData in class DataBasketEntryImpl<java.lang.Object>
Returns:
the data to be stored in the log file.