|
SalesPoint v3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object data.swing.CountingStockDBEGrouper
public class CountingStockDBEGrouper
DataBasketEntryGrouper that groups entries that have the same main and secondary key as well as the same
source and destination and where both values contain an Integer
object. These are DataBasketEntries
that describe operations on CountingStock items.
Constructor Summary | |
---|---|
CountingStockDBEGrouper()
Create a new CountingStockDBEGrouper. |
Method Summary | |
---|---|
boolean |
canGroup(DataBasketEntry dbe1,
DataBasketEntry dbe2)
Return true if dbe1 and dbe2 have the same main and secondary key as well as
the same source and destination and both values contain an Integer object. |
DataBasketEntry |
group(DataBasketEntry dbe1,
DataBasketEntry dbe2)
Return a new DataBasketEntry with the same main and secondary key, source and destination as dbe1 and a value of dbe1.getValue() + dbe2.getValue() . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CountingStockDBEGrouper()
Method Detail |
---|
public boolean canGroup(DataBasketEntry dbe1, DataBasketEntry dbe2)
dbe1
and dbe2
have the same main and secondary key as well as
the same source and destination and both values contain an Integer
object.
canGroup
in interface DataBasketEntryGrouper
public DataBasketEntry group(DataBasketEntry dbe1, DataBasketEntry dbe2)
dbe1
and a value of dbe1.getValue() + dbe2.getValue()
.
The returned DataBasketEntry cannot be used for commiting or rolling back operations.
group
in interface DataBasketEntryGrouper
|
SalesPoint v3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |