public class FetchPhysicalStoreFromGeoCodeCmdImpl extends AbstractFetchNounUsingBusinessObjectMediatorCmdImpl implements FetchPhysicalStoreCmd
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM Copyright notice field.
|
protected PhysicalStoreGeoCodeType | iGeoCode
the goe code
|
Constructor and Description |
---|
FetchPhysicalStoreFromGeoCodeCmdImpl()
Create an instance of the fetch noun command that uses the business object manager to execute the search expression.
|
Modifier and Type | Method and Description |
---|---|
java.util.List | getPhysicalStores()
This method returns a list of PhysicalStores that result because of the fetch operation.
|
void | performExecute()
This method calculates geo code data, updates the geo code context with the result data before the actual fetch data command is executed.
|
protected void | retrieveGetPhysicalStoresSearchConditions(java.util.Map mapQueryParameters)
This method retrieves the values set for radius, radius unit of measure and maximum number of stores to return.
|
protected void | roundGeoCode(PhysicalStoreGeoCodeType geoCode)
Round the geo code.
|
protected void | setGeoCodeContext(PhysicalStoreGeoCodeType geoCode, double radiusInKm)
The method sets the geocode context with the calculated geocode values.
|
protected void | setPhysicalStores(java.util.List physicalstores)
This method sets the list of PhysicalStores that result from executing the fetch operation.
|
protected java.math.BigDecimal | validateGeoCodeAngularDistance(RelationalExpression angularDistanceRelExpr)
This method validates the geo code parameters.
|
protected void | validateGetPhysicalStoresParameters(java.util.Map mapQueryParameters)
This method validates the parameters 'latitude' and 'longitude' of the getPhysicalStores with a geo code as the starting point.
|
public static final java.lang.String COPYRIGHT
protected PhysicalStoreGeoCodeType iGeoCode
public FetchPhysicalStoreFromGeoCodeCmdImpl()
public java.util.List getPhysicalStores()
protected void setPhysicalStores(java.util.List physicalstores)
protected void roundGeoCode(PhysicalStoreGeoCodeType geoCode)
protected void setGeoCodeContext(PhysicalStoreGeoCodeType geoCode, double radiusInKm) throws java.lang.Exception
public void performExecute() throws java.lang.Exception
protected void validateGetPhysicalStoresParameters(java.util.Map mapQueryParameters) throws StoreApplicationException
protected java.math.BigDecimal validateGeoCodeAngularDistance(RelationalExpression angularDistanceRelExpr) throws StoreApplicationException
protected void retrieveGetPhysicalStoresSearchConditions(java.util.Map mapQueryParameters)