Class BasicImportExportProcessor
java.lang.Object
com.softslate.commerce.businessobjects.core.BaseBusinessObject
com.softslate.commerce.businessobjects.core.BaseBusinessProcessor
com.softslate.commerce.businessobjects.importexport.BasicImportExportProcessor
- All Implemented Interfaces:
BusinessObject
,BusinessProcessor
,ImportExportProcessor
- Direct Known Subclasses:
BasicExportProcessor
,BasicImportProcessor
public class BasicImportExportProcessor
extends BaseBusinessProcessor
implements ImportExportProcessor
Base class with common methods handling the processing of text file imports
and exports.
- Author:
- David Tobey, Ashish Jain
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
(package private) static org.apache.commons.logging.Log
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfilterColumns
(Collection columns, String tableName) filterColumns
(Collection columns, String[] filterColumnNames) getImplementorNameFromTableName
(String tableName) loadColumnNames
(String tableName, boolean filterId) int
loadMaxAttributeID
(Map parameters) int
loadMaxBasicTaxRateID
(Map parameters) int
loadMaxCategoryID
(Map parameters) int
loadMaxCustomerID
(Map parameters) int
int
loadMaxOptionID
(Map parameters) int
loadMaxOrderID
(Map parameters) int
loadMaxProductID
(Map parameters) int
loadMaxProductSettingID
(Map parameters) int
loadMaxSKUID
(Map parameters) processAttributeExport
(Map parameters) processBasicTaxRateExport
(Map parameters) processCategoryExport
(Map parameters) processCustomerExport
(Map parameters) processExport
(Map parameters) processOptionExport
(Map parameters) processOrderExport
(Map parameters) processProductExport
(Map parameters) processProductSettingExport
(Map parameters) processSKUExport
(Map parameters) 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
-
Field Details
-
log
static org.apache.commons.logging.Log log -
PRODUCT_TABLE
- See Also:
-
CATEGORY_TABLE
- See Also:
-
ATTRIBUTE_TABLE
- See Also:
-
SKU_TABLE
- See Also:
-
OPTION_TABLE
- See Also:
-
ORDER_TABLE
- See Also:
-
SHIPPINGRULE_TABLE
- See Also:
-
SHIPPINGRULERANGE_TABLE
- See Also:
-
CUSTOMER_TABLE
- See Also:
-
PRODUCT_SETTING_TABLE
- See Also:
-
BASICTAXRATE_TABLE
- See Also:
-
productDAO
-
categoryDAO
-
attributeDAO
-
optionDAO
-
manufacturerDAO
-
skuDAO
-
productSettingDAO
-
basicTaxRateDAO
-
stateDAO
-
countryDAO
-
-
Constructor Details
-
BasicImportExportProcessor
public BasicImportExportProcessor()
-
-
Method Details
-
loadColumnNames
- Specified by:
loadColumnNames
in interfaceImportExportProcessor
- Throws:
Exception
-
getImplementorNameFromTableName
- Throws:
Exception
-
filterColumns
- Throws:
Exception
-
filterColumns
-
loadMaxID
- Specified by:
loadMaxID
in interfaceImportExportProcessor
- Throws:
Exception
-
loadMaxProductID
- Throws:
Exception
-
loadMaxCategoryID
- Throws:
Exception
-
loadMaxAttributeID
- Throws:
Exception
-
loadMaxOptionID
- Throws:
Exception
-
loadMaxSKUID
- Throws:
Exception
-
loadMaxOrderID
- Throws:
Exception
-
loadMaxCustomerID
- Throws:
Exception
-
loadMaxProductSettingID
- Throws:
Exception
-
loadMaxBasicTaxRateID
- Throws:
Exception
-
processExport
- Specified by:
processExport
in interfaceImportExportProcessor
- Throws:
Exception
-
processProductExport
- Throws:
Exception
-
processCategoryExport
- Throws:
Exception
-
processAttributeExport
- Throws:
Exception
-
processOptionExport
- Throws:
Exception
-
processSKUExport
- Throws:
Exception
-
processOrderExport
- Throws:
Exception
-
processCustomerExport
- Throws:
Exception
-
processProductSettingExport
- Throws:
Exception
-
processBasicTaxRateExport
- Throws:
Exception
-