|
SalesPoint Framework v3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdata.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. |
| Fields inherited from interface data.DataBasketKeys |
CATALOG_ITEM_MAIN_KEY, STOCK_ITEM_MAIN_KEY |
| 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()
Return the destination for operations that match the condition. |
String |
getMainKey()
Return the main key that DataBasketEntries must have to
match the condition. |
String |
getSecondaryKey()
Return the secondary key that DataBasketEntries must have to
match the condition. |
DataBasketEntrySource |
getSource()
Return the source for operations that match the condition. |
Object |
getValue()
Return the object for operations that match the condition. |
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()
DataBasketConditionnull
means any source, other values mean exactly what they say, i.e. they are tested for
identity.
getSource in interface DataBasketConditionm_dbesSource.m_dbesSource.public DataBasketEntryDestination getDestination()
DataBasketConditionnull means any destination, other values mean exactly what they say, i.e.
they are tested for identity.
getDestination in interface DataBasketConditionm_dbedDest.m_dbedDest.public Object getValue()
DataBasketConditionnull
means check each DataBasketEntry by calling match(), other values mean
exactly what they say, i.e. they are tested for identity.
getValue in interface DataBasketConditionm_oValue.m_oValue.public String getMainKey()
DataBasketConditionDataBasketEntries must have to
match the condition. Returning null means any main key.
getMainKey in interface DataBasketConditionm_sMainKey.m_sMainKey.public String getSecondaryKey()
DataBasketConditionDataBasketEntries must have to
match the condition. Returning null means any secondary key.
getSecondaryKey in interface DataBasketConditionm_sSecondaryKey.m_sSecondaryKey.public boolean match(DataBasketEntry dbe)
match in interface DataBasketConditionpublic 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.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||