Package org.openbravo.materialmgmt
Class VariantChDescUpdateProcessor
- java.lang.Object
-
- org.openbravo.service.importprocess.ImportEntryProcessor
-
- org.openbravo.materialmgmt.VariantChDescUpdateProcessor
-
@ApplicationScoped public class VariantChDescUpdateProcessor extends ImportEntryProcessor
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
VariantChDescUpdateProcessor.VariantChDescUpdateRunnable
-
Nested classes/interfaces inherited from class org.openbravo.service.importprocess.ImportEntryProcessor
ImportEntryProcessor.ImportEntryProcessRunnable
-
-
Constructor Summary
Constructors Constructor Description VariantChDescUpdateProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canHandleImportEntry(ImportEntry importEntryInformation)
Can be used by implementing subclass to check that the ImportEntry can be processed now.protected ImportEntryProcessor.ImportEntryProcessRunnable
createImportEntryProcessRunnable()
Create a concrete subclass ofImportEntryProcessor.ImportEntryProcessRunnable
protected String
getProcessSelectionKey(ImportEntry importEntry)
Based on theImportEntry
returns a key which uniquely identifies the thread which should process thisImportEntry
.-
Methods inherited from class org.openbravo.service.importprocess.ImportEntryProcessor
assignEntryToThread, enableArchive, handleImportEntry, shutdown, toString
-
-
-
-
Method Detail
-
createImportEntryProcessRunnable
protected ImportEntryProcessor.ImportEntryProcessRunnable createImportEntryProcessRunnable()
Description copied from class:ImportEntryProcessor
Create a concrete subclass ofImportEntryProcessor.ImportEntryProcessRunnable
- Specified by:
createImportEntryProcessRunnable
in classImportEntryProcessor
-
canHandleImportEntry
protected boolean canHandleImportEntry(ImportEntry importEntryInformation)
Description copied from class:ImportEntryProcessor
Can be used by implementing subclass to check that the ImportEntry can be processed now. In some cases other ImportEntries should be processed first. By returning false the ImportEntry is ignored for now. It will again be picked up in a next execution cycle of theImportEntryManager
thread and then offered again to thisImportEntryProcessor
to be processed.- Specified by:
canHandleImportEntry
in classImportEntryProcessor
-
getProcessSelectionKey
protected String getProcessSelectionKey(ImportEntry importEntry)
Description copied from class:ImportEntryProcessor
Based on theImportEntry
returns a key which uniquely identifies the thread which should process thisImportEntry
. Can be used to place import entries which block/use the same records in the same import thread, in this way preventing DB (dead)locks.- Specified by:
getProcessSelectionKey
in classImportEntryProcessor
-
-