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 -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddParamsToReadCustomerIdsForExternalIdsQuery(PreparedStatement ps, Collection<String> customerExternalIds) protected StringbuildInsertStatementForRecord(com.broadleafcommerce.importer.domain.ImportDataRecord record, com.broadleafcommerce.importer.domain.ImportContext context) protected StringbuildReadOfferCodeIdsForExternalIdsQuery(Collection<String> customerExternalIds, com.broadleafcommerce.importer.domain.ImportContext ctx) protected voidprocessResultForReadCustomerIdsForExternalIdsQuery(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, setImportDaoHelperMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.broadleafcommerce.importer.dao.DefaultImportDao
bulkInsert, bulkUpdateMethods 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:
buildInsertStatementForRecordin classcom.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:
readOfferCodeIdsForExternalIdsin interfaceOfferCodeImportDao- Throws:
com.broadleafcommerce.importer.exception.ImportExceptionSQLException
-
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
-