|
SalesPoint Framework v3.0 | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--data.DataBasketConditionImpl
Basic implementation of the DataBasketCondition
interface. You can use this
class as a basis for implementing more sophisticated queries.
Field Summary | |
static DataBasketCondition |
ALL_CATALOG_ITEMS
A DataBasketCondition that matches all entries that describe CatalogItem movements. |
static DataBasketCondition |
ALL_ENTRIES
A DataBasketCondition matching all items in a DataBasket. |
static DataBasketCondition |
ALL_STOCK_ITEMS
A DataBasketCondition that matches all entries that describe StockItem movements. |
protected DataBasketEntryDestination |
m_dbedDest
The destination condition. |
protected DataBasketEntrySource |
m_dbesSource
The source condition. |
protected Object |
m_oValue
The value condition. |
protected String |
m_sMainKey
The main key condition. |
protected String |
m_sSecondaryKey
The secondary key condition. |
Constructor Summary | |
DataBasketConditionImpl(String sMainKey,
String sSecondaryKey,
DataBasketEntrySource dbesSource,
DataBasketEntryDestination dbedDest,
Object oValue)
Create a new DataBasketConditionImpl. |
Method Summary | |
static DataBasketCondition |
allCatalogItemsWithDest(Catalog cDest)
A DataBasketCondition that matches all entries that describe CatalogItems being entered into the given Catalog. |
static DataBasketCondition |
allCatalogItemsWithSource(Catalog cSource)
A DataBasketCondition that matches all entries that describe CatalogItems being taken from the given Catalog. |
static DataBasketCondition |
allStockItemsWithDest(Stock stDest)
A DataBasketCondition that matches all entries that describe StockItems being entered into the given Stock. |
static DataBasketCondition |
allStockItemsWithSource(Stock stSource)
A DataBasketCondition that matches all entries that describe StockItems being taken from the given Stock. |
DataBasketEntryDestination |
getDestination()
|
String |
getMainKey()
|
String |
getSecondaryKey()
|
DataBasketEntrySource |
getSource()
|
Object |
getValue()
|
boolean |
match(DataBasketEntry dbe)
As a default, always returns true. |
static DataBasketCondition |
specificCatalogItem(CatalogItem ci)
A DataBasketCondition that matches exactly one given CatalogItem. |
static DataBasketCondition |
specificStockItem(StockItem si)
A DataBasketCondition that matches exactly one given StockItem. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected DataBasketEntrySource m_dbesSource
protected DataBasketEntryDestination m_dbedDest
protected String m_sMainKey
protected String m_sSecondaryKey
protected Object m_oValue
public static final DataBasketCondition ALL_ENTRIES
public static final DataBasketCondition ALL_STOCK_ITEMS
public static final DataBasketCondition ALL_CATALOG_ITEMS
Constructor Detail |
public DataBasketConditionImpl(String sMainKey, String sSecondaryKey, DataBasketEntrySource dbesSource, DataBasketEntryDestination dbedDest, Object oValue)
sMainKey
- the value for m_sMainKey
.sSecondaryKey
- the value for m_sSecondaryKey
.dbesSource
- the value for m_dbesSource
.dbedDest
- the value for m_dbedDest
.oValue
- the value for m_oValue
.Method Detail |
public DataBasketEntrySource getSource()
m_dbesSource
.m_dbesSource
.public DataBasketEntryDestination getDestination()
m_dbedDest
.m_dbedDest
.public Object getValue()
m_oValue
.m_oValue
.public String getMainKey()
m_sMainKey
.m_sMainKey
.public String getSecondaryKey()
m_sSecondaryKey
.m_sSecondaryKey
.public boolean match(DataBasketEntry dbe)
public static final DataBasketCondition allStockItemsWithSource(Stock stSource)
public static final DataBasketCondition allStockItemsWithDest(Stock stDest)
public static final DataBasketCondition allCatalogItemsWithSource(Catalog cSource)
public static final DataBasketCondition allCatalogItemsWithDest(Catalog cDest)
public static final DataBasketCondition specificCatalogItem(CatalogItem ci)
public static final DataBasketCondition specificStockItem(StockItem si)
|
SalesPoint Framework v3.0 | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |