Class OfferCodeImportDaoImplImpl

java.lang.Object
com.broadleafcommerce.importer.dao.DefaultImportDaoImpl
com.broadleafcommerce.advancedoffer.admin.importer.dao.offercode.OfferCodeImportDaoImplImpl
All Implemented Interfaces:
OfferCodeImportDao, com.broadleafcommerce.importer.dao.DefaultImportDao, com.broadleafcommerce.importer.dao.IdCreator

@Repository("blOfferCodeImportDao") @ConditionalOnClass(name="com.broadleafcommerce.importer.admin.config.DataImporterAdminConfiguration") public class OfferCodeImportDaoImplImpl extends com.broadleafcommerce.importer.dao.DefaultImportDaoImpl implements OfferCodeImportDao
  • Field Summary

    Fields inherited from class com.broadleafcommerce.importer.dao.DefaultImportDaoImpl

    converter, em, idGenerationService, importDaoHelper
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    protected String
    buildInsertStatementForRecord(com.broadleafcommerce.importer.domain.ImportDataRecord record, com.broadleafcommerce.importer.domain.ImportContext context)
     
    protected String
    buildReadOfferCodeIdsForExternalIdsQuery(Collection<String> customerExternalIds, com.broadleafcommerce.importer.domain.ImportContext ctx)
     
    protected void
    processResultForReadCustomerIdsForExternalIdsQuery(List<com.broadleafcommerce.importer.domain.RecordIdDTO> customerIdDTOList, ResultSet rs)
     
    List<com.broadleafcommerce.importer.domain.RecordIdDTO>
    readOfferCodeIdsForExternalIds(Collection<String> offerCodeExternalIds, com.broadleafcommerce.importer.domain.ImportContext ctx)
     

    Methods inherited from class com.broadleafcommerce.importer.dao.DefaultImportDaoImpl

    addContextValues, addFieldIfSet, addFieldIfSet, addFieldIfSet, addIdParamsToQuery, addInClause, addInsertColumnsClause, addRecordValues, addSafeValuesClause, addSandboxValues, addUpdateColumnsClause, buildUpdateStatementForRecord, bulkInsert, bulkUpdate, createColumnValueMap, executeQueries, findNextId, getConnection, getFieldTypeForConverter, getMetadataForTable, getOrCreateList, readNextId, replaceValues, setConverter, setEm, setImportDaoHelper

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.broadleafcommerce.importer.dao.DefaultImportDao

    bulkInsert, bulkUpdate

    Methods inherited from interface com.broadleafcommerce.importer.dao.IdCreator

    findNextId, readNextId
  • Constructor Details

    • OfferCodeImportDaoImplImpl

      public OfferCodeImportDaoImplImpl()
  • Method Details

    • buildInsertStatementForRecord

      protected String buildInsertStatementForRecord(com.broadleafcommerce.importer.domain.ImportDataRecord record, com.broadleafcommerce.importer.domain.ImportContext context) throws SQLException
      Overrides:
      buildInsertStatementForRecord in class com.broadleafcommerce.importer.dao.DefaultImportDaoImpl
      Throws:
      SQLException
    • readOfferCodeIdsForExternalIds

      public List<com.broadleafcommerce.importer.domain.RecordIdDTO> readOfferCodeIdsForExternalIds(Collection<String> offerCodeExternalIds, com.broadleafcommerce.importer.domain.ImportContext ctx) throws com.broadleafcommerce.importer.exception.ImportException, SQLException
      Specified by:
      readOfferCodeIdsForExternalIds in interface OfferCodeImportDao
      Throws:
      com.broadleafcommerce.importer.exception.ImportException
      SQLException
    • buildReadOfferCodeIdsForExternalIdsQuery

      protected String buildReadOfferCodeIdsForExternalIdsQuery(Collection<String> customerExternalIds, com.broadleafcommerce.importer.domain.ImportContext ctx)
    • addParamsToReadCustomerIdsForExternalIdsQuery

      protected void addParamsToReadCustomerIdsForExternalIdsQuery(PreparedStatement ps, Collection<String> customerExternalIds) throws SQLException
      Throws:
      SQLException
    • processResultForReadCustomerIdsForExternalIdsQuery

      protected void processResultForReadCustomerIdsForExternalIdsQuery(List<com.broadleafcommerce.importer.domain.RecordIdDTO> customerIdDTOList, ResultSet rs) throws SQLException
      Throws:
      SQLException