|
SalesPoint Framework v3.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An entry in a DataBasket
.
DataBasketEntries describe an object that was removed from a data container, put into a data container
or moved between data containers. They know about the source
and
destination
of the operation and about the object
that was moved.
Additionally, they know how to commit
or rollback
the operation.
For reasons of efficency, DataBasketEntries are stored in a hierarchical structure, with three levels:
categories, these are selected via the DataBasketEntry's main key
; subcategories,
selected via the DataBasketEntry's secondary key
; and the items selected by the
DataBasketEntry's value
.
Field Summary |
Fields inherited from interface data.DataBasketKeys |
CATALOG_ITEM_MAIN_KEY, STOCK_ITEM_MAIN_KEY |
Method Summary | |
void |
commit()
Commit the operation described by the DataBasketEntry. |
DataBasketEntryDestination |
getDestination()
Get the destination of the operation described by the DataBasketEntry. |
String |
getMainKey()
Get the DataBasketEntry's main key. |
DataBasket |
getOwner()
Return the DataBasket containing this DataBasketEntry. |
String |
getSecondaryKey()
Get the DataBasketEntry's secondary key. |
DataBasketEntrySource |
getSource()
Get the source of the operation described by the DataBasketEntry. |
Object |
getValue()
Get the object moved by the operation described by the DataBasketEntry. |
boolean |
isHandled()
Return false as long as no complete commit or rollback has been issued for this DataBasketEntry. |
void |
rollback()
Roll back the operation described by the DataBasketEntry. |
void |
setOwner(DataBasket dbOwner)
Notification that the DataBasketEntry was put into a DataBasket. |
Method Detail |
public void rollback()
public void commit()
public void setOwner(DataBasket dbOwner)
dbOwner
- the DataBasket that owns this DataBasketEntry. Can be null
.public DataBasket getOwner()
null
. Once
setOwner(data.DataBasket)
has been called, always returns the last value of the dbOwner
parameter passed to setOwner
.
public DataBasketEntrySource getSource()
public DataBasketEntryDestination getDestination()
public Object getValue()
public String getMainKey()
public String getSecondaryKey()
public boolean isHandled()
|
SalesPoint Framework v3.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |