public class RepositoryWriter extends AbstractRepositoryWriter<IStructureRecord,List<IStructureRecord>>
tables chemicals, structurehttp://bugs.mysql.com/bug.php?id=39191
AbstractRepositoryWriter.OP
Modifier and Type | Field and Description |
---|---|
protected String |
idchemical_tag |
protected StructureNormalizer |
normalizer |
protected PreparedStatement |
ps_seekdataset |
protected QueryByIdentifierWithStructureFallback |
query |
protected QueryFieldNumeric |
queryNum |
protected static String |
seek_dataset |
protected DbStructureWriter |
structureWriter |
protected boolean |
useExistingStructure |
exec, operation, queryexec
Constructor and Description |
---|
RepositoryWriter() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
List<IStructureRecord> |
create(IStructureRecord arg0) |
protected void |
findChemical(IStructureRecord record) |
SourceDataset |
getDataset() |
IStructureKey |
getPropertyKey() |
protected AbstractStructureQuery |
getQuery(IStructureRecord record) |
boolean |
isBuild2D() |
boolean |
isUseExistingStructure() |
void |
open() |
protected void |
prepareStatement(Connection connection) |
void |
setBuild2D(boolean build2d) |
void |
setConnection(Connection connection) |
void |
setDataset(SourceDataset dataset) |
void |
setPropertyKey(IStructureKey propertyKey) |
void |
setUseExistingStructure(boolean useExistingStructure) |
List<IStructureRecord> |
update(IStructureRecord arg0) |
List<IStructureRecord> |
write(IStructureRecord structure) |
delete, getOperation, process, read, setOperation, transaction
getConnection, isCloseConnection, isEnabled, setCloseConnection
addPropertyChangeListener, addPropertyChangeListener, getID, removePropertyChangeListener, removePropertyChangeListener, setEnabled, toString
protected DbStructureWriter structureWriter
protected QueryByIdentifierWithStructureFallback query
protected QueryFieldNumeric queryNum
protected static final String seek_dataset
protected PreparedStatement ps_seekdataset
protected StructureNormalizer normalizer
protected boolean useExistingStructure
protected final String idchemical_tag
public boolean isUseExistingStructure()
public void setUseExistingStructure(boolean useExistingStructure)
public boolean isBuild2D()
public void setBuild2D(boolean build2d)
public IStructureKey getPropertyKey()
public void setPropertyKey(IStructureKey propertyKey)
public void open() throws net.idea.modbcum.i.exceptions.DbAmbitException
open
in interface net.idea.modbcum.i.processors.IProcessor<IStructureRecord,List<IStructureRecord>>
open
in class AbstractRepositoryWriter<IStructureRecord,List<IStructureRecord>>
net.idea.modbcum.i.exceptions.DbAmbitException
public void setConnection(Connection connection) throws net.idea.modbcum.i.exceptions.DbAmbitException
setConnection
in interface net.idea.modbcum.i.IDBProcessor<IStructureRecord,List<IStructureRecord>>
setConnection
in class AbstractRepositoryWriter<IStructureRecord,List<IStructureRecord>>
net.idea.modbcum.i.exceptions.DbAmbitException
public SourceDataset getDataset()
public void setDataset(SourceDataset dataset)
protected AbstractStructureQuery getQuery(IStructureRecord record)
protected void findChemical(IStructureRecord record) throws SQLException, net.idea.modbcum.i.exceptions.AmbitException
SQLException
net.idea.modbcum.i.exceptions.AmbitException
public List<IStructureRecord> write(IStructureRecord structure) throws SQLException, net.idea.modbcum.i.exceptions.AmbitException, OperationNotSupportedException
write
in class AbstractRepositoryWriter<IStructureRecord,List<IStructureRecord>>
SQLException
net.idea.modbcum.i.exceptions.AmbitException
OperationNotSupportedException
protected void prepareStatement(Connection connection) throws SQLException
prepareStatement
in class AbstractRepositoryWriter<IStructureRecord,List<IStructureRecord>>
SQLException
public void close() throws Exception
close
in interface net.idea.modbcum.i.processors.IProcessor<IStructureRecord,List<IStructureRecord>>
close
in class AbstractRepositoryWriter<IStructureRecord,List<IStructureRecord>>
Exception
public List<IStructureRecord> update(IStructureRecord arg0) throws SQLException, OperationNotSupportedException, net.idea.modbcum.i.exceptions.AmbitException
update
in class AbstractRepositoryWriter<IStructureRecord,List<IStructureRecord>>
SQLException
OperationNotSupportedException
net.idea.modbcum.i.exceptions.AmbitException
public List<IStructureRecord> create(IStructureRecord arg0) throws SQLException, OperationNotSupportedException, net.idea.modbcum.i.exceptions.AmbitException
create
in class AbstractRepositoryWriter<IStructureRecord,List<IStructureRecord>>
SQLException
OperationNotSupportedException
net.idea.modbcum.i.exceptions.AmbitException
Copyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.