|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchemaxon.util.ErrorHandler
chemaxon.jchem.db.UpdateHandler
public class UpdateHandler
Provides methods for handling structure tables, e.g.:
cd_" prefix in their names) and
additional columns can be set using the class.
WARNING!
For optimization reasons logs are buffered in UpdateHandler from JChem 5.4.
When you use transactions saveUpdateLogs() must be called in order to flush buffers
before you commit!
(close() method performs a call to saveUpdateLogs(), no extra calls are needed.)
Example for insert/update:
int id; // cd_id value of compound
// Additional columns:
String name;
Float stock;
String comments;
...
UpdateHandler uh = new UpdateHandler(conh,
(isInsertion?
UpdateHandler.INSERT :
UpdateHandler.UPDATE),
structureTableName, "name, stock, comments");
try {
uh.setStructure(molfile);
if(!isInsertion) {
uh.setID(id);
}
uh.setValueForAdditionalColumn(1, name);
uh.setValueForAdditionalColumn(2, stock);
uh.setValueForAdditionalColumn(3, comments);
uh.execute();
} finally {
uh.close();
}
...
| Nested Class Summary | |
|---|---|
static class |
UpdateHandler.RowData
|
| Field Summary | |
|---|---|
static int |
DUPLICATE_FILTERING_OFF
Constant for 'duplicate filtering' option on import. |
static int |
DUPLICATE_FILTERING_ON
Constant for 'duplicate filtering' option on import. |
static int |
DUPLICATE_FILTERING_TABLE_OPTION
Constant for 'duplicate filtering' option on import. |
static int |
INSERT
Row insertion with automatic cd_id value. |
static int |
INSERT_WITH_ID
Row insertion with cd_id value set by
the application. |
static int |
QUERY_TABLE_ENUMERATION_LIMIT
Upper limit for enumerating queries when inserting into QUERY tables |
static int |
UPDATE
Row modification. |
| Fields inherited from class chemaxon.util.ErrorHandler |
|---|
CLASS_NOT_FOUND_ERROR, DATABASE_SEARCH_ERROR, exception, ILLEGAL_ACCESS_ERROR, INSTANTIATION_ERROR, IO_ERROR, MAX_SEARCH_FREQUENCY_EXCEEDED_ERROR, MOL_FORMAT_ERROR, NO_ERROR, PROPERTY_NOT_SET_ERROR, SQL_ERROR, UNIDENTIFIED_ERROR |
| Constructor Summary | |
|---|---|
UpdateHandler()
Zero-arg constructor |
|
UpdateHandler(ConnectionHandler conh,
int mode,
java.lang.String tableName,
java.lang.String additionalColumns)
Constructor. |
|
UpdateHandler(ConnectionHandler conh,
int mode,
java.lang.String tableName,
java.lang.String additionalColumns,
java.lang.String indexedTable,
java.lang.String indexedColumn)
Constructor. |
|
| Method Summary | |
|---|---|
static java.lang.Object |
checkChemTermColValue(java.lang.Object result)
|
void |
close()
Closes the handler (required to call). |
UpdateHandler.RowData |
createRowData(byte[] molString)
Calculates row data from molecule string. |
UpdateHandler.RowData |
createRowData(java.lang.String molString)
Calculates row data from molecule string. |
static void |
createStructureTable(ConnectionHandler conh,
StructureTableOptions options)
Creates a structure table. |
static void |
deleteRow(ConnectionHandler conh,
java.lang.String tableName,
int cd_id)
Deletes the specified rows from a structure table. |
static void |
deleteRow(ConnectionHandler conh,
java.lang.String tableName,
int cd_id,
boolean enableLogging)
Deletes the specified rows from a structure table. |
static void |
deleteRows(ConnectionHandler conh,
java.lang.String tableName,
java.lang.String where)
Deletes the specified rows from a structure table. |
static void |
deleteRows(ConnectionHandler conh,
java.lang.String tableName,
java.lang.String where,
boolean enableLogging)
Deletes the specified rows from a structure table. |
static void |
dropStructureTable(ConnectionHandler conh,
java.lang.String tableName)
Drops a structure table. |
void |
execute()
Executes the update or insert operation. |
int |
execute(boolean returnLastId)
Executes the update or insert operation. |
Molecule |
getMolecule()
Returns the Molecule that was used during insert or update. |
static int |
getPrecalculatedRowNumber(ConnectionHandler conh,
java.lang.String tableName)
|
static int |
getPreferredTableType(Molecule m)
Returns the preferred table type for the given molecule object. |
boolean |
getSetChiralFlag()
Getter for property setChiralFlag. |
java.lang.String |
getStructureNameField()
Get the name of that column which stores the structure names. |
static java.lang.String[] |
getStructureTables(ConnectionHandler conh)
Collects the names of all structures tables in the database (from the records of the JChemProperties table). |
void |
init(ConnectionHandler conHandler,
int mode,
java.lang.String tableName,
java.lang.String additionalColumns)
Initializes the object. |
static boolean |
isInsertable(Molecule m,
int tableType,
boolean isEmptyStructuresAllowed)
Decides whether a molecule can be inserted into a table of a given type. |
boolean |
isLoggingEnabled()
Shows whether logging is enabled during import. |
static boolean |
recalculateCTColumns(ConnectionHandler ch,
java.lang.String tableName,
java.lang.String[] columns,
ProgressWriter pw)
Recalculates chemical terms in a structure table in normal mode. |
static boolean |
recalculateCTColumns(ConnectionHandler ch,
java.lang.String tableName,
java.lang.String[] columns,
ProgressWriter pw,
int regenerationMode)
Recalculates chemical terms in a structure table. |
static boolean |
recalculateMDTables(ConnectionHandler ch,
java.lang.String tableName,
ProgressWriter pw)
Recalculates molecular descriptors for a structure table / for all structure tables. |
static boolean |
recalculateTable(ConnectionHandler ch,
java.lang.String tableName,
boolean changeStandardization,
java.lang.String standardizerConfig,
java.util.Map chemTermColCfg,
java.lang.Boolean tautomerDuplicateFiltering,
ProgressWriter pw)
Recalculates generated values in a structure table in normal mode. |
static boolean |
recalculateTable(ConnectionHandler ch,
java.lang.String tableName,
boolean changeStandardization,
java.lang.String standardizerConfig,
java.util.Map chemTermColCfg,
java.lang.Boolean tautomerDuplicateFiltering,
ProgressWriter pw,
int regenerationMode)
Recalculates generated values in a structure table. |
static boolean |
recalculateWithoutCTColumns(ConnectionHandler ch,
java.lang.String tableName,
boolean changeStandardization,
java.lang.String standardizerConfig,
java.lang.Boolean tautomerDuplicateFiltering,
ProgressWriter pw)
Recalculates generated values in a structure table but skips Chemical Terms calculations in normal mode. |
static boolean |
recalculateWithoutCTColumns(ConnectionHandler ch,
java.lang.String tableName,
boolean changeStandardization,
java.lang.String standardizerConfig,
java.lang.Boolean tautomerDuplicateFiltering,
ProgressWriter pw,
int regenerationMode)
Recalculates generated values in a structure table but skips Chemical Terms calculations. |
void |
saveUpdateLogs()
Saves the current - possibly buffered - update log(s). |
void |
setChemTermCalc(boolean isCalcNeeded)
Enable or disable the chemical terms calculation during the update |
void |
setDuplicateFiltering(boolean filtering)
Deprecated. since JChem 5.4. This import option has been table option, instead of this use setDuplicateFiltering(int) method |
void |
setDuplicateFiltering(int duplicateFilteringOption)
Sets the duplicate filtering option on import. |
void |
setEmptyStructuresAllowed(boolean allowed)
Sets if empty structures are allowed, default is false |
void |
setID(int id)
Sets the cd_id value for the structure. |
void |
setIgnoreChemicalTermsExceptions(boolean ignore)
Specifies wheather to ignore exceptions during the calcualtion of Chemical Terms columns. |
void |
setLoggingEnabled(boolean value)
Enables / disables logging structures during import. |
void |
setRowData(UpdateHandler.RowData rowData)
Specifies pre-calculated row data values. |
void |
setROWID(java.lang.String rowID)
Sets values for all fix columns in cartridge mode if the mode is INSERT_WITH_ID. |
void |
setSetChiralFlag(boolean setChiralFlag)
Sets if chiral flag should be set to true during import. |
void |
setStandardizationEnabled(boolean allowed)
Enables or disables standardization. |
void |
setStructure(byte[] source)
Sets the source of the input molecule. |
void |
setStructure(java.lang.String source)
Sets the source of the input molecule. |
void |
setStructureNameField(java.lang.String nameField)
Set the name of that column where the structure name is stored. |
void |
setValueForAdditionalColumn(int index,
java.lang.Object value)
Sets values for all additional columns Type is defined automatically. |
void |
setValueForAdditionalColumn(int index,
java.lang.Object value,
int sqlType)
Sets values for an additional column. |
| Methods inherited from class chemaxon.util.ErrorHandler |
|---|
checkError, checkException, getError, getErrorMessage, getException, getStackTrace |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int UPDATE
public static final int INSERT
cd_id value.
public static final int INSERT_WITH_ID
cd_id value set by
the application.
public static final int DUPLICATE_FILTERING_ON
public static final int DUPLICATE_FILTERING_OFF
public static final int DUPLICATE_FILTERING_TABLE_OPTION
public static final int QUERY_TABLE_ENUMERATION_LIMIT
| Constructor Detail |
|---|
public UpdateHandler()
public UpdateHandler(ConnectionHandler conh,
int mode,
java.lang.String tableName,
java.lang.String additionalColumns)
throws java.sql.SQLException,
PropertyNotSetException
conh - ConnectionHandler
opened to the database, containing the name of the JChem property table
name of the property table.mode - possible values
UPDATE,
INSERT,
INSERT_WITH_ID. Not
all RDBMS-s support INSERT_WITH_ID if
cd_id is assigned to be
auto incremented,tableName - name of structure table to be modifiedadditionalColumns - specify columns that are not
created automatically by
JChemManager.
java.sql.SQLException
PropertyNotSetException
public UpdateHandler(ConnectionHandler conh,
int mode,
java.lang.String tableName,
java.lang.String additionalColumns,
java.lang.String indexedTable,
java.lang.String indexedColumn)
throws java.sql.SQLException,
PropertyNotSetException
conh - ConnectionHandler
opened to the database, containing the name of the JChem property table
name of the property table.mode - possible values
UPDATE,
INSERT,
INSERT_WITH_ID. Not
all RDBMS-s support INSERT_WITH_ID if
cd_id is assigned to be
auto incremented,tableName - name of structure table to be modifiedadditionalColumns - specify columns that are not
created automatically by
JChemManager.indexedTable - the name of indexed table when used with
JChem Cartridge for regular structure tables. Must be
null for JChem structure tables.indexedColumn - the name of indexed column when used with
JChem Cartridge for regular structure tables. Must be
null for JChem structure tables.
java.sql.SQLException
PropertyNotSetException| Method Detail |
|---|
public void init(ConnectionHandler conHandler,
int mode,
java.lang.String tableName,
java.lang.String additionalColumns)
throws java.sql.SQLException,
PropertyNotSetException
conHandler - connection handler object.mode - possible values
UPDATE,
INSERT,
INSERT_WITH_ID. Not
all RDBMS-s support INSERT_WITH_ID if
cd_id is assigned to be
auto incremented,tableName - name of structure table to be modifiedadditionalColumns - specify columns that are not
created automatically by
JChemManager.
java.sql.SQLException
PropertyNotSetExceptionConnectionHandlerpublic static int getPreferredTableType(Molecule m)
m - The molecule to be imported.
TableTypeConstants.TABLE_TYPE_MOLECULES,
TableTypeConstants.TABLE_TYPE_REACTIONS,
TableTypeConstants.TABLE_TYPE_MOLECULES,
TableTypeConstants.TABLE_TYPE_MARKUSH_LIBRARIES
public static boolean isInsertable(Molecule m,
int tableType,
boolean isEmptyStructuresAllowed)
m - Molecule object to be inserted.tableType - The type of the table to be inserted into.isEmptyStructuresAllowed - Is empty structure allowed in the table?
TableTypeConstants.TABLE_TYPE_MOLECULES,
TableTypeConstants.TABLE_TYPE_REACTIONS,
TableTypeConstants.TABLE_TYPE_MOLECULES,
TableTypeConstants.TABLE_TYPE_QUERY_STRUCTURES,
TableTypeConstants.TABLE_TYPE_MARKUSH_LIBRARIESpublic Molecule getMolecule()
setValuesForFixColumns( ... )
in standardized form, as it was inserted into the database.
execute().public void setROWID(java.lang.String rowID)
rowID - the ROWID if the original line in the non-jchem table.public void setStructure(java.lang.String source)
source - the source of the structure (molfile, SMILES, MRV, etc.)setStructure(byte[])public void setStructure(byte[] source)
source - the source of the structure (molfile, SMILES, MRV, etc.)setStructure(String)public void setID(int id)
UPDATE or INSERT_WITH_ID mode.
id - the cd_id valuepublic void setIgnoreChemicalTermsExceptions(boolean ignore)
ignore - if set to true, no exceptions will be thrown
if a calcualtion for a Chemical Terms column fails. The affected
column will have a value of NULL in the database. The default value is
false.public void setLoggingEnabled(boolean value)
value - If true (default value), logging is enabled.public boolean isLoggingEnabled()
public static java.lang.Object checkChemTermColValue(java.lang.Object result)
public void setStructureNameField(java.lang.String nameField)
nameField - Name of the column.public java.lang.String getStructureNameField()
public void setValueForAdditionalColumn(int index,
java.lang.Object value,
int sqlType)
throws java.sql.SQLException
setValuesForFixColumns before
invoking this method.
index - the index value
of the additional column as listed in the constructor
starting at 1.value - the value of the column in the row. It can also be
null if the column is declared as NULL.sqlType - the type of the column as defined in
java.sql.Types
java.sql.SQLException
public void setValueForAdditionalColumn(int index,
java.lang.Object value)
throws java.sql.SQLException
index - the index value
of the additional column as listed in the constructor
starting at 1.value - the value of the column in the row.
java.sql.SQLExceptionpublic void setEmptyStructuresAllowed(boolean allowed)
allowed - set to true to enable empty srtuctures@Deprecated public void setDuplicateFiltering(boolean filtering)
setDuplicateFiltering(int) method
filtering - set to true to enable filtering.
Default setting is falseDatabaseProperties.setDuplicateFilteringOption(String, boolean),
StructureTableOptions.duplicateFilteringpublic void setDuplicateFiltering(int duplicateFilteringOption)
Importer.setDuplicateImportAllowed(int)
duplicateFilteringOption - DUPLICATE_FILTERING_ON does not
import molecules that already exist in the table with the same topology.
Forces switching ON duplicate filtering regardless of table setting.
This checking
may slow down the import progress. DUPLICATE_FILTERING_OFF duplicates are allowed.
Forces switching OFF duplicate filtering regardless of table setting. DUPLICATE_FILTERING_TABLE_OPTION the value of the table
option (StructureTableOptions.duplicateFiltering) controls the filtering of duplicates.DUPLICATE_FILTERING_ON,
DUPLICATE_FILTERING_OFF,
DUPLICATE_FILTERING_TABLE_OPTION,
StructureTableOptions.duplicateFiltering,
Importer.setDuplicateImportAllowed(int)public void setSetChiralFlag(boolean setChiralFlag)
true during import.
Useful when importing MDL files with missing chiral flag.
setChiralFlag - if set to true, chiral flag is
set to true for imported molecules.
The default setting is false.
since 2.3public boolean getSetChiralFlag()
setSetChiralFlag(boolean)public void setStandardizationEnabled(boolean allowed)
allowed - if false, no standardization is performed
when inserting structure. Default is value true.
public void execute()
throws java.sql.SQLException
execute(false)
java.sql.SQLException
public int execute(boolean returnLastId)
throws java.sql.SQLException
returnLastId - if true, then gets the last inserted
ID and returns it.returnLastId is
false or the operation is update.
If duplicateFiltering is on, returns the cd_id of the
already existing structure in the database as a negative value.
(regardless of returnLastId).
java.sql.SQLException
public void close()
throws java.sql.SQLException
java.sql.SQLException
public void saveUpdateLogs()
throws java.sql.SQLException
java.sql.SQLException
public static void deleteRows(ConnectionHandler conh,
java.lang.String tableName,
java.lang.String where)
throws java.sql.SQLException
deleteRow(chemaxon.util.ConnectionHandler, String, int)
is recommended.
conh - connection to the databasetableName - name of structure table to be modifiedwhere - the WHERE part of the SQL statement deleting
the rows. E.g. "WHERE cd_id IN (23, 247, 786)".
If null or empty string all rows will be deleted.
java.sql.SQLExceptiondeleteRow(chemaxon.util.ConnectionHandler, String, int)
public static void deleteRows(ConnectionHandler conh,
java.lang.String tableName,
java.lang.String where,
boolean enableLogging)
throws java.sql.SQLException
deleteRow(chemaxon.util.ConnectionHandler, String, int)
is recommended.
conh - connection to the databasetableName - name of structure table to be modifiedwhere - the WHERE part of the SQL statement deleting
the rows. E.g. "WHERE cd_id IN (23, 247, 786)".
If null or empty string all rows will be deleted.enableLogging - set to true if logging the deletion is enabled
java.sql.SQLExceptiondeleteRow(chemaxon.util.ConnectionHandler, String, int)
public static void deleteRow(ConnectionHandler conh,
java.lang.String tableName,
int cd_id)
throws java.sql.SQLException
deleteRows(chemaxon.util.ConnectionHandler, String, String)
is recommended.
conh - connection to the databasetableName - the name of the structure tablecd_id - the cd_id value of the row to be deleted (primary key)
java.sql.SQLExceptiondeleteRows(chemaxon.util.ConnectionHandler, String, String)
public static void deleteRow(ConnectionHandler conh,
java.lang.String tableName,
int cd_id,
boolean enableLogging)
throws java.sql.SQLException
deleteRows(chemaxon.util.ConnectionHandler, String, String)
is recommended.
conh - connection to the databasetableName - the name of the structure tablecd_id - the cd_id value of the row to be deleted (primary key)enableLogging - set to true if logging the deletion is enabled
java.sql.SQLExceptiondeleteRows(chemaxon.util.ConnectionHandler, String, String)
public static java.lang.String[] getStructureTables(ConnectionHandler conh)
throws java.sql.SQLException
conh - connection to the database
java.sql.SQLException
public static void createStructureTable(ConnectionHandler conh,
StructureTableOptions options)
throws java.sql.SQLException
conh - connection to the databaseoptions - options for table creation
java.sql.SQLExceptionStructureTableOptions
public static void dropStructureTable(ConnectionHandler conh,
java.lang.String tableName)
throws java.sql.SQLException
conh - connection to the databasetableName - name of structure table
java.sql.SQLException
public static boolean recalculateTable(ConnectionHandler ch,
java.lang.String tableName,
boolean changeStandardization,
java.lang.String standardizerConfig,
java.util.Map chemTermColCfg,
java.lang.Boolean tautomerDuplicateFiltering,
ProgressWriter pw)
throws UpdateHandlerException
ch - ConnectionHandler opened to the databasetableName - the name of the structure table to be regeneratedchangeStandardization - changes default standardization if truestandardizerConfig - new standardizer configuration, is set tochemTermColCfg - colname-to-chemterm map for columns autocalculated
based on Chemical Terms. Specify null if there is no change
in the column definitions.tautomerDuplicateFiltering - set to Boolean.TRUE to
enable considering tautomers during duplicate filtering. Set to
null to keep the current setting (default).pw - ProgressWriter for monitoring (and if needed cancelling)
the progress of regeneration. May be null if no monitoring
is necessary.
UpdateHandlerException
public static boolean recalculateTable(ConnectionHandler ch,
java.lang.String tableName,
boolean changeStandardization,
java.lang.String standardizerConfig,
java.util.Map chemTermColCfg,
java.lang.Boolean tautomerDuplicateFiltering,
ProgressWriter pw,
int regenerationMode)
throws UpdateHandlerException
ch - ConnectionHandler opened to the databasetableName - the name of the structure table to be regeneratedchangeStandardization - changes default standardization if truestandardizerConfig - new standardizer configuration, is set tochemTermColCfg - colname-to-chemterm map for columns autocalculated
based on Chemical Terms. Specify null if there is no change
in the column definitions.tautomerDuplicateFiltering - set to Boolean.TRUE to
enable considering tautomers during duplicate filtering. Set to
null to keep the current setting (default).pw - ProgressWriter for monitoring (and if needed cancelling)
the progress of regeneration. May be null if no monitoring
is necessary.regenerationMode - Normal, precalculation or regenerate not precalculated rows
(see: RegenerationConstants)
UpdateHandlerException
public static boolean recalculateCTColumns(ConnectionHandler ch,
java.lang.String tableName,
java.lang.String[] columns,
ProgressWriter pw)
throws UpdateHandlerException
ch - ConnectionHandler opened to the databasetableName - the name of the structure table to be regeneratedcolumns - array of chemical terms column namespw - ProgressWriter for monitoring (and if needed cancelling)
the progress of regeneration. May be null if no monitoring
is necessary.
UpdateHandlerException
public static boolean recalculateCTColumns(ConnectionHandler ch,
java.lang.String tableName,
java.lang.String[] columns,
ProgressWriter pw,
int regenerationMode)
throws UpdateHandlerException
ch - ConnectionHandler opened to the databasetableName - the name of the structure table to be regeneratedcolumns - array of chemical terms column namespw - ProgressWriter for monitoring (and if needed cancelling)
the progress of regeneration. May be null if no monitoring
is necessary.regenerationMode - Normal, precalculation or regenerate not precalculated rows
(see: RegenerationConstants)
UpdateHandlerException
public static boolean recalculateMDTables(ConnectionHandler ch,
java.lang.String tableName,
ProgressWriter pw)
throws UpdateHandlerException,
java.sql.SQLException
ch - ConnectionHandler opened to the databasetableName - the name of the structure table to be regeneratedpw - ProgressWriter for monitoring (and if needed cancelling)
the progress of regeneration. May be null if no monitoring
is necessary.
java.sql.SQLException
UpdateHandlerException
public static boolean recalculateWithoutCTColumns(ConnectionHandler ch,
java.lang.String tableName,
boolean changeStandardization,
java.lang.String standardizerConfig,
java.lang.Boolean tautomerDuplicateFiltering,
ProgressWriter pw)
throws UpdateHandlerException
ch - ConnectionHandler opened to the databasetableName - the name of the structure table to be regeneratedchangeStandardization - changes default standardization if truestandardizerConfig - new standardizer configuration, is set totautomerDuplicateFiltering - set to Boolean.TRUE to
enable considering tautomers during duplicate filtering. Set to
null to keep the current setting (default).pw - ProgressWriter for monitoring (and if needed cancelling)
the progress of regeneration. May be null if no monitoring
is necessary.
UpdateHandlerException
public static boolean recalculateWithoutCTColumns(ConnectionHandler ch,
java.lang.String tableName,
boolean changeStandardization,
java.lang.String standardizerConfig,
java.lang.Boolean tautomerDuplicateFiltering,
ProgressWriter pw,
int regenerationMode)
throws UpdateHandlerException
ch - ConnectionHandler opened to the databasetableName - the name of the structure table to be regeneratedchangeStandardization - changes default standardization if truestandardizerConfig - new standardizer configuration, is set totautomerDuplicateFiltering - set to Boolean.TRUE to
enable considering tautomers during duplicate filtering. Set to
null to keep the current setting (default).pw - ProgressWriter for monitoring (and if needed cancelling)
the progress of regeneration. May be null if no monitoring
is necessary.regenerationMode - Normal, precalculation or regenerate not precalculated rows
(see: RegenerationConstants)
UpdateHandlerException
public UpdateHandler.RowData createRowData(java.lang.String molString)
throws UpdateHandlerException,
MolFormatException
NOTE: Not thread safe ! Multiple threads should use multiple UpdateHandler instances to call this method.
molString - the source of the structure
UpdateHandlerException
MolFormatExceptionsetRowData(chemaxon.jchem.db.UpdateHandler.RowData)
public UpdateHandler.RowData createRowData(byte[] molString)
throws UpdateHandlerException,
MolFormatException
NOTE: Not thread safe ! Multiple threads should use multiple UpdateHandler instances to call this method.
molString - the source of the structure
UpdateHandlerException
MolFormatExceptionsetRowData(chemaxon.jchem.db.UpdateHandler.RowData)
public void setRowData(UpdateHandler.RowData rowData)
throws java.sql.SQLException
setValueForFixColumns() and
setValueForAdditionalColumn calls.
Useful if the data is calculated in a multi-thread environment.
rowData - the RowData object
java.sql.SQLExceptioncreateRowData(String)public void setChemTermCalc(boolean isCalcNeeded)
isCalcNeeded - boolean
public static int getPrecalculatedRowNumber(ConnectionHandler conh,
java.lang.String tableName)
throws java.sql.SQLException
java.sql.SQLException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||