|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchemaxon.descriptors.MDWriter
chemaxon.descriptors.MDDBWriter
public class MDDBWriter
Class for inserting Molecular Descriptors into database tables.
| Field Summary |
|---|
| Fields inherited from class chemaxon.descriptors.MDWriter |
|---|
mdNames |
| Constructor Summary | |
|---|---|
MDDBWriter()
|
|
| Method Summary | |
|---|---|
void |
close()
Closes down the descriptor output stream. |
ConnectionHandler |
getConnectionHandler()
Gets the ConnectionHandler object used to reach the database. |
java.lang.String[] |
getMDNames()
Gets the names of the Molecular Descriptors in database |
MDParameters |
getMDParameters(int id)
Gets the actual parameter settings of the specified component. |
java.lang.String |
getStructureTable()
Gets the name of the structure table |
void |
put(Molecule mol,
int id)
Inserts descriptor data into the database |
void |
setConnectionHandler(ConnectionHandler ch)
Sets the ConnectionHandler object used to reach the database. |
void |
setMDNames(java.lang.String[] mdNames)
Sets the names of the Molecular Descriptors in database |
void |
setStructureTable(java.lang.String strucTableName)
Sets the name of the structure table |
void |
setUpdateMode(boolean updateMode)
Specifies whether new records will be added, or existing records updated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MDDBWriter()
| Method Detail |
|---|
public void setConnectionHandler(ConnectionHandler ch)
ch - the ConnectionHandler with an open connection to the database.public ConnectionHandler getConnectionHandler()
public void setStructureTable(java.lang.String strucTableName)
strucTableName - the name of the structure tablepublic java.lang.String getStructureTable()
public void setMDNames(java.lang.String[] mdNames)
mdNames - the name of the Molecular Descriptorspublic java.lang.String[] getMDNames()
public MDParameters getMDParameters(int id)
getMDParameters in class MDWriterid - component index
public void setUpdateMode(boolean updateMode)
updateMode - set to
public void put(Molecule mol,
int id)
throws chemaxon.descriptors.MDWriterException
put in class MDWritermol - the molecule to generate descriptor data fromid - the cd_id of the table rows : should be the same, as in
the structure table
chemaxon.descriptors.MDWriterException - all exceptions (mainly io) are reinterpreted
public void close()
throws chemaxon.descriptors.MDWriterException
close guarantees that all
data put so far are permanently saved in the stream.
close in class MDWriterchemaxon.descriptors.MDWriterException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||