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
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final String(package private) static org.apache.commons.logging.Logstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfilterColumns(Collection columns, String tableName) filterColumns(Collection columns, String[] filterColumnNames) getImplementorNameFromTableName(String tableName) loadColumnNames(String tableName, boolean filterId) intloadMaxAttributeID(Map parameters) intloadMaxBasicTaxRateID(Map parameters) intloadMaxCategoryID(Map parameters) intloadMaxCustomerID(Map parameters) intintloadMaxOptionID(Map parameters) intloadMaxOrderID(Map parameters) intloadMaxProductID(Map parameters) intloadMaxProductSettingID(Map parameters) intloadMaxSKUID(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, utilsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.softslate.commerce.businessobjects.core.BusinessObject
initializeMethods 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:
loadColumnNamesin interfaceImportExportProcessor- Throws:
Exception
-
getImplementorNameFromTableName
- Throws:
Exception
-
filterColumns
- Throws:
Exception
-
filterColumns
-
loadMaxID
- Specified by:
loadMaxIDin 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:
processExportin 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
-