public class DBSubstanceWriter extends net.idea.modbcum.p.AbstractDBProcessor<IStructureRecord,IStructureRecord>
Modifier and Type | Field and Description |
---|---|
protected boolean |
clearComposition |
protected boolean |
clearMeasurements |
protected PropertyKey |
componentsMatch |
protected boolean |
i5mode |
protected boolean |
importBundles |
protected SubstanceRecord |
importedRecord |
protected boolean |
keepEffectRecordsForDocUUID |
protected boolean |
splitRecord |
Constructor and Description |
---|
DBSubstanceWriter(SourceDataset dataset,
SubstanceRecord importedRecord,
boolean clearMeasurements,
boolean clearComposition) |
DBSubstanceWriter(SourceDataset dataset,
SubstanceRecord importedRecord,
boolean clearMeasurements,
boolean clearComposition,
IStructureKey matchByKey) |
getConnection, isCloseConnection, isEnabled, setCloseConnection
addPropertyChangeListener, addPropertyChangeListener, getID, removePropertyChangeListener, removePropertyChangeListener, setEnabled, toString
protected boolean i5mode
protected boolean clearMeasurements
protected boolean importBundles
protected boolean keepEffectRecordsForDocUUID
protected PropertyKey componentsMatch
protected boolean clearComposition
protected boolean splitRecord
protected SubstanceRecord importedRecord
public DBSubstanceWriter(SourceDataset dataset, SubstanceRecord importedRecord, boolean clearMeasurements, boolean clearComposition)
public DBSubstanceWriter(SourceDataset dataset, SubstanceRecord importedRecord, boolean clearMeasurements, boolean clearComposition, IStructureKey matchByKey)
public boolean isI5mode()
public void setI5mode(boolean i5mode)
public boolean isKeepEffectRecordsForDocUUID()
public void setKeepEffectRecordsForDocUUID(boolean keepEffectRecordsForDocUUID)
public boolean isImportBundles()
public void setImportBundles(boolean importBundles)
public boolean isClearMeasurements()
public void setClearMeasurements(boolean clearMeasurements)
public boolean isClearComposition()
public void setClearComposition(boolean clearComposition)
public boolean isSplitRecord()
public void setSplitRecord(boolean splitRecord)
public SubstanceRecord getImportedRecord()
public void setImportedRecord(SubstanceRecord importedRecord)
public SourceDataset getDataset()
public static SourceDataset datasetMeta()
public void setConnection(Connection connection) throws net.idea.modbcum.i.exceptions.DbAmbitException
setConnection
in interface net.idea.modbcum.i.IDBProcessor<IStructureRecord,IStructureRecord>
setConnection
in class net.idea.modbcum.p.AbstractDBProcessor<IStructureRecord,IStructureRecord>
net.idea.modbcum.i.exceptions.DbAmbitException
public void close() throws Exception
close
in interface net.idea.modbcum.i.processors.IProcessor<IStructureRecord,IStructureRecord>
close
in class net.idea.modbcum.p.AbstractDBProcessor<IStructureRecord,IStructureRecord>
Exception
protected UpdateSubstanceStudy createSubstanceStudyUpdateQuery(ProtocolApplication papp) throws Exception
Exception
protected UpdateEffectRecords createEffectRecordUpdateQuery(ProtocolApplication papp, EffectRecord effect) throws Exception
Exception
protected void importSubstanceMeasurements(SubstanceRecord substance) throws Exception
Exception
protected void importBundles(SubstanceRecord substance) throws Exception
Exception
protected void importSubstanceRecord(SubstanceRecord substance) throws Exception
Exception
public IStructureRecord process(IStructureRecord record) throws net.idea.modbcum.i.exceptions.AmbitException
net.idea.modbcum.i.exceptions.AmbitException
public void open() throws net.idea.modbcum.i.exceptions.DbAmbitException
open
in interface net.idea.modbcum.i.processors.IProcessor<IStructureRecord,IStructureRecord>
open
in class net.idea.modbcum.p.DefaultAmbitProcessor<IStructureRecord,IStructureRecord>
net.idea.modbcum.i.exceptions.DbAmbitException
Copyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.