public abstract class AbstractImageReporter<Q extends net.idea.modbcum.i.IQueryRetrieval<IStructureRecord>,OUTPUT> extends net.idea.modbcum.r.QueryReporter<IStructureRecord,Q,OUTPUT>
Modifier and Type | Field and Description |
---|---|
protected CreateStoredQuery |
cache |
protected UpdateExecutor<net.idea.modbcum.i.query.IQueryUpdate> |
cacheUpdater |
protected CompoundImageTools |
depict |
protected CachedImage<OUTPUT> |
imageWrapper |
protected Property |
img |
protected String |
mainType |
protected MoleculeReader |
reader |
protected ambit2.db.reporters.MyQuery |
strucQuery |
protected String |
subType |
Constructor and Description |
---|
AbstractImageReporter(String mainType,
String subType) |
AbstractImageReporter(String mainType,
String subType,
Dimension dimension) |
Modifier and Type | Method and Description |
---|---|
protected String |
cache(IStructureRecord item,
BufferedImage image) |
void |
close() |
protected CachedImage<OUTPUT> |
createImage(IStructureRecord item) |
protected CachedImage<OUTPUT> |
createImageWrapper(BufferedImage image) |
protected abstract CachedImage<OUTPUT> |
getCached(IStructureRecord item) |
protected File |
getFilePath(String tmpDir,
String dbName,
String dimensions,
IStructureRecord item,
String ext) |
protected String |
getQueryName() |
protected RetrieveStructureImagePath |
initQuery(String mainType,
String subType) |
Object |
processItem(IStructureRecord item) |
protected void |
processPath(CachedImage<OUTPUT> result,
String path) |
void |
setConnection(Connection connection) |
createBatch, footer, getFileExtension, getLicenseURI, getMaxRecords, getOutput, getProcessors, getStartTime, getTimeout, header, isAutoCommit, isShowFooter, isShowHeader, process, setAutoCommit, setCloseConnection, setLicenseURI, setMaxRecords, setOutput, setProcessors, setShowFooter, setShowHeader, setStartTime, setTimeout, wrapup
getConnection, isCloseConnection, isEnabled
addPropertyChangeListener, addPropertyChangeListener, getID, open, removePropertyChangeListener, removePropertyChangeListener, setEnabled, toString
protected CompoundImageTools depict
protected MoleculeReader reader
protected CreateStoredQuery cache
protected UpdateExecutor<net.idea.modbcum.i.query.IQueryUpdate> cacheUpdater
protected ambit2.db.reporters.MyQuery strucQuery
protected String mainType
protected String subType
protected Property img
protected CachedImage<OUTPUT> imageWrapper
protected RetrieveStructureImagePath initQuery(String mainType, String subType)
protected CachedImage<OUTPUT> createImageWrapper(BufferedImage image)
protected String getQueryName()
public void setConnection(Connection connection) throws net.idea.modbcum.i.exceptions.DbAmbitException
setConnection
in interface net.idea.modbcum.i.IDBProcessor<Q extends net.idea.modbcum.i.IQueryRetrieval<IStructureRecord>,OUTPUT>
setConnection
in class net.idea.modbcum.p.AbstractDBProcessor<Q extends net.idea.modbcum.i.IQueryRetrieval<IStructureRecord>,OUTPUT>
net.idea.modbcum.i.exceptions.DbAmbitException
public void close() throws Exception
close
in interface net.idea.modbcum.i.processors.IProcessor<Q extends net.idea.modbcum.i.IQueryRetrieval<IStructureRecord>,OUTPUT>
close
in interface net.idea.modbcum.i.reporter.Reporter<Q extends net.idea.modbcum.i.IQueryRetrieval<IStructureRecord>,OUTPUT>
close
in class net.idea.modbcum.p.AbstractDBProcessor<Q extends net.idea.modbcum.i.IQueryRetrieval<IStructureRecord>,OUTPUT>
Exception
protected String cache(IStructureRecord item, BufferedImage image)
protected File getFilePath(String tmpDir, String dbName, String dimensions, IStructureRecord item, String ext)
protected CachedImage<OUTPUT> createImage(IStructureRecord item) throws net.idea.modbcum.i.exceptions.AmbitException
net.idea.modbcum.i.exceptions.AmbitException
protected void processPath(CachedImage<OUTPUT> result, String path)
public Object processItem(IStructureRecord item) throws net.idea.modbcum.i.exceptions.AmbitException
processItem
in class net.idea.modbcum.r.QueryAbstractReporter<IStructureRecord,Q extends net.idea.modbcum.i.IQueryRetrieval<IStructureRecord>,OUTPUT>
net.idea.modbcum.i.exceptions.AmbitException
protected abstract CachedImage<OUTPUT> getCached(IStructureRecord item)
Copyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.