com.konakartadmin.bl
Class AdminBatchBaseMgr

java.lang.Object
  extended by com.konakartadmin.bl.AdminBaseMgr
      extended by com.konakartadmin.bl.AdminBatchBaseMgr
Direct Known Subclasses:
AdminCustomerBatchMgr, AdminOrderBatchMgr, AdminProductBatchMgr

public class AdminBatchBaseMgr
extends AdminBaseMgr

The BatchBaseMgr


Nested Class Summary
 
Nested classes/interfaces inherited from class com.konakartadmin.bl.AdminBaseMgr
AdminBaseMgr.StaticData
 
Field Summary
protected static org.apache.commons.logging.Log log
          the log
 
Fields inherited from class com.konakartadmin.bl.AdminBaseMgr
adminEng, baseMgrMutex, baseStaticDataHM, cDataEnd, cDataStart, kkConf, kkInstanceId, mgrFactory, STORE_ID, templateBaseDir
 
Constructor Summary
AdminBatchBaseMgr()
           
 
Method Summary
protected  java.util.List<com.workingdogs.village.Record> executeQuery(java.lang.String query)
          Execute query that works for all engine modes
protected  boolean getBoolean(java.lang.String in, boolean defValue, boolean useDefault)
          Convert a String to a boolean, passing in a default value.
protected  int getInt(java.lang.String in, int defValue, boolean useDefault)
          Convert a String to an int, passing in a default value.
protected  int[] getIntArray(java.lang.String in)
          Convert a String to an int[]
protected  java.lang.String getLogName(java.lang.String logNameIn, boolean appendLog)
          Creates the name of the log depending on whether it has to be unique or not and appends it to the log file directory.
protected  void validateTemplate(java.lang.String templateName)
          Check that the Velocity template is valid
 
Methods inherited from class com.konakartadmin.bl.AdminBaseMgr
addInsertAttr, addInsertAttr, checkIntIsSet, checkRequired, getAdminAddressMgr, getAdminAuditMgr, getAdminBillingMgr, getAdminBookableProductMgr, getAdminCatMgr, getAdminConfigMgr, getAdminCurrMgr, getAdminCustMgr, getAdminCustTagMgr, getAdminEmailMgr, getAdminEng, getAdminHtmlMgr, getAdminLanguageMgr, getAdminManuMgr, getAdminMessageMgr, getAdminMiscItemMgr, getAdminModulesMgr, getAdminMultiStoreMgr, getAdminOrderMgr, getAdminPdfMgr, getAdminProdAttrMgr, getAdminProdMgr, getAdminPromMgr, getAdminPublishProdMgr, getAdminReviewMgr, getAdminSearchRuleMgr, getAdminSecMgr, getAdminSolrMgr, getAdminStoreMgr, getAdminTagMgr, getAdminTaxMgr, getAdminValidationMgr, getAdminVelocityContextMgr, getAdminWishListMgr, getBooleanFromString, getExportXMLData, getIntFromString, getKkConfig, getKkInstanceId, getMode, getModeString, getMqMgr, getNewCriteria, getNewCriteria, getPostSearchText, getPreSearchText, getPropertyValue, getRecordCount, getRewardPointMgr, getSingleIntResult, getStoreId, getTemplate, getTemplateBase, getXml_io, init, isConfigSet, isEnterprise, isMultiStoreLanguagesShared, isMultiStoreMode, isMultiStoreShareCategories, isMultiStoreShareCustomers, isMultiStoreShareProducts, isMultiStoreSingleDBCSMode, isMultiStoreSingleDBMode, isMultiStoreSingleDBNonCSMode, manageException, refreshConfigs, removeCData, setAdminEng, setupWildCardRules, setWildCardAfter, setWildCardBefore, shutdownGracefully, shutdownGracefully, timestampStr
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.commons.logging.Log log
the log

Constructor Detail

AdminBatchBaseMgr

public AdminBatchBaseMgr()
Method Detail

getLogName

protected java.lang.String getLogName(java.lang.String logNameIn,
                                      boolean appendLog)
                               throws org.apache.torque.TorqueException,
                                      com.workingdogs.village.DataSetException,
                                      KKAdminException,
                                      java.lang.Exception
Creates the name of the log depending on whether it has to be unique or not and appends it to the log file directory.

Parameters:
logNameIn -
appendLog -
Returns:
The name of the log
Throws:
java.lang.Exception
KKAdminException
com.workingdogs.village.DataSetException
org.apache.torque.TorqueException

validateTemplate

protected void validateTemplate(java.lang.String templateName)
                         throws java.lang.Exception
Check that the Velocity template is valid

Parameters:
templateName - Velocity template name to validate
Throws:
java.lang.Exception

getInt

protected int getInt(java.lang.String in,
                     int defValue,
                     boolean useDefault)
              throws KKAdminException
Convert a String to an int, passing in a default value.

Parameters:
in -
defValue -
useDefault -
Returns:
Returns an int
Throws:
KKAdminException

getBoolean

protected boolean getBoolean(java.lang.String in,
                             boolean defValue,
                             boolean useDefault)
                      throws KKAdminException
Convert a String to a boolean, passing in a default value.

Parameters:
in -
defValue -
useDefault -
Returns:
Returns a boolean
Throws:
KKAdminException

getIntArray

protected int[] getIntArray(java.lang.String in)
                     throws KKAdminException
Convert a String to an int[]

Parameters:
in -
Returns:
Returns an int[]
Throws:
KKAdminException

executeQuery

protected java.util.List<com.workingdogs.village.Record> executeQuery(java.lang.String query)
                                                               throws org.apache.torque.TorqueException,
                                                                      KKAdminException
Execute query that works for all engine modes

Parameters:
query -
Returns:
the result of the query
Throws:
org.apache.torque.TorqueException
KKAdminException


Copyright © 2011 DS Data Systems UK Ltd.