|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.konakartadmin.bl.AdminBaseMgr
com.konakartadmin.bl.AdminBatchBaseMgr
com.konakartadmin.bl.AdminProductBatchMgr
public class AdminProductBatchMgr
The ProductBatchMgr
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.konakartadmin.bl.AdminBaseMgr |
|---|
AdminBaseMgr.StaticData |
| Field Summary |
|---|
| Fields inherited from class com.konakartadmin.bl.AdminBatchBaseMgr |
|---|
log |
| Fields inherited from class com.konakartadmin.bl.AdminBaseMgr |
|---|
adminEng, baseMgrMutex, baseStaticDataHM, cDataEnd, cDataStart, kkConf, kkInstanceId, mgrFactory, STORE_ID, templateBaseDir |
| Constructor Summary | |
|---|---|
AdminProductBatchMgr(KKAdminIf eng)
|
|
| Method Summary | |
|---|---|
void |
setProductAverageRatingsBatch(java.lang.String logName,
java.lang.String appendLogStr)
Whenever a product review is submitted, a rating is given to the product. |
void |
setSpecialPriceStateBatch(java.lang.String logName,
java.lang.String appendLogStr,
java.lang.String recordFetchSizeStr)
Whenever a product special price is set and active, it is used in sort / filter by price queries regardless of whether it has expired or has yet to start. |
private void |
setSpecialState(com.konakart.bl.KKCriteria updateC,
com.konakart.bl.KKCriteria selectC,
int id,
boolean enable)
Private method to enable or disable the special |
void |
synchronizeStoresBatch(java.lang.String logName,
java.lang.String appendLogStr,
java.lang.String recordFetchSizeStr,
java.lang.String storeIdFrom,
java.lang.String storeIdTo)
This batch synchronizes the products in storeIdFrom with the ones in storeIdTo. |
| Methods inherited from class com.konakartadmin.bl.AdminBatchBaseMgr |
|---|
executeQuery, getBoolean, getInt, getIntArray, getLogName, validateTemplate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AdminProductBatchMgr(KKAdminIf eng)
throws java.lang.Exception
eng -
java.lang.Exception| Method Detail |
|---|
public void setProductAverageRatingsBatch(java.lang.String logName,
java.lang.String appendLogStr)
throws java.lang.Exception
The product rating may be used by the application to filter and order products.
logName - The name of the log which shouldn't include the path or extension. i.e. It should
be myLog rather than /logs/myLog.txt.appendLogStr - If set to false, a new log will be created every time the batch job is run.
Otherwise new data will be appended to the existing log. It defaults to false.
java.lang.Exception
public void setSpecialPriceStateBatch(java.lang.String logName,
java.lang.String appendLogStr,
java.lang.String recordFetchSizeStr)
throws java.lang.Exception
If your policy is to set special prices on a daily basis, then this batch should be run on a daily basis. It looks at the start and expiry dates of the special and disables it if the current date doesn't lie in between these two dates. Otherwise the special is enabled if there is a start date and the special price should have started.
logName - The name of the log which shouldn't include the path or extension. i.e. It should
be myLog rather than /logs/myLog.txt.appendLogStr - If set to false, a new log will be created every time the batch job is run.
Otherwise new data will be appended to the existing log. It defaults to false.recordFetchSizeStr - It the batch involves reading many records in a loop, this determines the maximum
number read in any one loop. It defaults to 100.
java.lang.Exception
private void setSpecialState(com.konakart.bl.KKCriteria updateC,
com.konakart.bl.KKCriteria selectC,
int id,
boolean enable)
throws org.apache.torque.TorqueException
updateC - selectC - id - enable -
org.apache.torque.TorqueException
public void synchronizeStoresBatch(java.lang.String logName,
java.lang.String appendLogStr,
java.lang.String recordFetchSizeStr,
java.lang.String storeIdFrom,
java.lang.String storeIdTo)
throws java.lang.Exception
logName - The name of the log which shouldn't include the path or extension. i.e. It should
be myLog rather than /logs/myLog.txt.appendLogStr - If set to false, a new log will be created every time the batch job is run.
Otherwise new data will be appended to the existing log. It defaults to false.recordFetchSizeStr - It the batch involves reading many records in a loop, this determines the maximum
number read in any one loop. It defaults to 100.storeIdFrom - The id of the source storestoreIdTo - The id of the destination store
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||