Class BasicImportProcessor
java.lang.Object
com.softslate.commerce.businessobjects.core.BaseBusinessObject
com.softslate.commerce.businessobjects.core.BaseBusinessProcessor
com.softslate.commerce.businessobjects.importexport.BasicImportExportProcessor
com.softslate.commerce.businessobjects.importexport.BasicImportProcessor
- All Implemented Interfaces:
BusinessObject
,BusinessProcessor
,ImportExportProcessor
,ImportProcessor
Business object class handling the processing of a text file import.
- Author:
- David Tobey, Ashish Jain
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
protected boolean
(package private) static org.apache.commons.logging.Log
protected ProductGatewayDAO
protected Collection
static final int
static final int
protected boolean
Fields inherited from class com.softslate.commerce.businessobjects.importexport.BasicImportExportProcessor
ATTRIBUTE_TABLE, attributeDAO, BASICTAXRATE_TABLE, basicTaxRateDAO, CATEGORY_TABLE, categoryDAO, countryDAO, CUSTOMER_TABLE, manufacturerDAO, OPTION_TABLE, optionDAO, ORDER_TABLE, PRODUCT_SETTING_TABLE, PRODUCT_TABLE, productDAO, productSettingDAO, SHIPPINGRULE_TABLE, SHIPPINGRULERANGE_TABLE, SKU_TABLE, skuDAO, stateDAO
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
processAttributeImport
(Map attributeMap, boolean commit) int
processBasicTaxRateImport
(Map basicTaxRateMap, boolean commit) int
processCategoryImport
(Map categoryMap, boolean commit) int
processImport
(DAOInterface dao, Map objectMap, Object bean, boolean commit) processImport
(String tableName, Collection businessObjects, Map parameters) int
processImport
(String tableName, Map boMap, boolean commit) int
processOptionImport
(Map optionMap, boolean commit) int
processProductImport
(Map productMap, boolean commit) int
processProductSettingImport
(Map productSettingMap, boolean commit) int
processSKUImport
(Map skuMap, boolean commit) protected int
updateExtraCategories
(String productCode, Set<String> categoryCodes) Methods inherited from class com.softslate.commerce.businessobjects.importexport.BasicImportExportProcessor
filterColumns, filterColumns, getImplementorNameFromTableName, loadColumnNames, loadMaxAttributeID, loadMaxBasicTaxRateID, loadMaxCategoryID, loadMaxCustomerID, loadMaxID, loadMaxOptionID, loadMaxOrderID, loadMaxProductID, loadMaxProductSettingID, loadMaxSKUID, processAttributeExport, processBasicTaxRateExport, processCategoryExport, processCustomerExport, processExport, processOptionExport, processOrderExport, processProductExport, processProductSettingExport, processSKUExport
Methods inherited from class com.softslate.commerce.businessobjects.core.BaseBusinessProcessor
formatDateTime, formatPrice, getAppComponents, getAppSettings, getAttributeIDs, getBusinessObjectFactory, getDaoFactory, getEventBus, getInjector, getProductIDs, getSettings, getUser, initialize, isProcessorClassActive, loadMatchingSkus, parseDateTime, parseResponseData, prepareRequestData, sendHTTPGet, sendHTTPPost, sendHTTPPost, setAppComponents, setAppSettings, setBusinessObjectFactory, setDaoFactory, setEventBus, setInjector, setSettings, setUser, updateOrderTotals, updateOrderTotals, updateOrderTotals, utils
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.softslate.commerce.businessobjects.core.BusinessObject
initialize
Methods inherited from interface com.softslate.commerce.businessobjects.core.BusinessProcessor
getAppComponents, getAppSettings, getBusinessObjectFactory, getDaoFactory, getEventBus, getInjector, getSettings, getUser, setAppComponents, setAppSettings, setBusinessObjectFactory, setDaoFactory, setEventBus, setInjector, setSettings, setUser, utils
Methods inherited from interface com.softslate.commerce.businessobjects.importexport.ImportExportProcessor
loadColumnNames, loadMaxID, processExport
-
Field Details
-
log
static org.apache.commons.logging.Log log -
resultMessages
-
insertBehavior
protected boolean insertBehavior -
updateBehavior
protected boolean updateBehavior -
INSERT
public static final int INSERT- See Also:
-
UPDATE
public static final int UPDATE- See Also:
-
SKIP
public static final int SKIP- See Also:
-
FAIL
public static final int FAIL- See Also:
-
productGatewayDAO
-
-
Constructor Details
-
BasicImportProcessor
public BasicImportProcessor()
-
-
Method Details
-
processImport
public Map processImport(String tableName, Collection businessObjects, Map parameters) throws Exception - Specified by:
processImport
in interfaceImportProcessor
- Throws:
Exception
-
processImport
- Throws:
Exception
-
processImport
public int processImport(DAOInterface dao, Map objectMap, Object bean, boolean commit) throws Exception - Throws:
Exception
-
processProductImport
- Throws:
Exception
-
updateExtraCategories
- Throws:
Exception
-
processOptionImport
- Throws:
Exception
-
processAttributeImport
- Throws:
Exception
-
processSKUImport
- Throws:
Exception
-
processCategoryImport
- Throws:
Exception
-
processProductSettingImport
- Throws:
Exception
-
processBasicTaxRateImport
- Throws:
Exception
-