Search in sources :

Example 1 with ReadChemicalIds

use of ambit2.db.readers.ReadChemicalIds in project ambit-mirror by ideaconsult.

the class CSVReporter method configurePropertyProcessors.

@Override
protected void configurePropertyProcessors() {
    super.configurePropertyProcessors();
    getProcessors().add(new ProcessorStructureRetrieval(new ReadChemicalIds()) {

        @Override
        public IStructureRecord process(IStructureRecord target) throws AmbitException {
            ((ReadChemicalIds) getQuery()).setValue(target);
            return super.process(target);
        }
    });
}
Also used : IStructureRecord(ambit2.base.interfaces.IStructureRecord) ProcessorStructureRetrieval(ambit2.db.processors.ProcessorStructureRetrieval) ReadChemicalIds(ambit2.db.readers.ReadChemicalIds) AmbitException(net.idea.modbcum.i.exceptions.AmbitException) DbAmbitException(net.idea.modbcum.i.exceptions.DbAmbitException)

Aggregations

IStructureRecord (ambit2.base.interfaces.IStructureRecord)1 ProcessorStructureRetrieval (ambit2.db.processors.ProcessorStructureRetrieval)1 ReadChemicalIds (ambit2.db.readers.ReadChemicalIds)1 AmbitException (net.idea.modbcum.i.exceptions.AmbitException)1 DbAmbitException (net.idea.modbcum.i.exceptions.DbAmbitException)1