Package chemaxon.jchem.db
Class StructureTableOptions
java.lang.Object
chemaxon.jchem.db.StructureTableOptions
- All Implemented Interfaces:
TableTypeConstants
Class for storing options for structure table creation.
- Since:
- JChem 5.0
-
Field Summary
Fields inherited from interface chemaxon.jchem.db.TableTypeConstants
FP_DEFAULT_BITS_PER_PATTERN, FP_DEFAULT_LENGTH_IN_INTS, FP_DEFAULT_PATTERN_LENGTH, MYSQL_DEFAULT_TABLE_TYPE, MYSQL_FORCE_INNO_DB, MYSQL_FORCE_MYISAM, TABLE_TYPE_ANY_STRUCTURES, TABLE_TYPE_DEFAULT, TABLE_TYPE_EXPLANATIONS, TABLE_TYPE_IS_NOT_SUPPORTED, TABLE_TYPE_MARKUSH_LIBRARIES, TABLE_TYPE_MOLECULES, TABLE_TYPE_NAMES, TABLE_TYPE_QUERY_STRUCTURES, TABLE_TYPE_REACTIONS
-
Constructor Summary
ConstructorDescriptionStructureTableOptions
(String name) Creates structure table options with the specified table name and default table type (TableTypeConstants.TABLE_TYPE_DEFAULT
).StructureTableOptions
(String name, int tableType) Creates structure table options with the specified name and table type. -
Method Summary
Modifier and TypeMethodDescriptionchemaxon.jchem.base.storage.cache.CacheUpdaterType
Internal use only.Gets a map having as keys the names of columns which are assigned a value (during structure import and update).Gets the definitions of additional columns.int
Gets he maximum pattern length.int
Gets the length of the chemical hashed fingerprint.int
Gets the number of bits set for patterns.int
Gets the table engine for MySql.getName()
Gets the table name.Gets the standardization configuration string.Gets the structural key configuration.int
Gets the type of thecd_structure
column.int
Gets the table name.Internal use only.boolean
Gets whether the structures should be treated as absolute stereo during database search.boolean
Gets the duplicate filtering option.boolean
Gets whether tautomers are considered during DUPLICATE search.void
setAbsoluteStereo
(boolean absoluteStereo) Specifies if structures should be treated as absolute stereo during database search.void
setCacheUpdaterType
(chemaxon.jchem.base.storage.cache.CacheUpdaterType cacheUpdaterType) Internal use only.void
setChemTermColsConfig
(Map<String, String> chemTermColsConfig) Sets the map having as keys the names of columns which must be assigned a value (during structure import and update).void
setDuplicateFiltering
(boolean duplicateFiltering) Specifies the duplicate filtering option.void
setExtraColumnDefinitions
(String extraColumnDefinitions) Sets the definitions of additional columns.void
setFpNumberOfBonds
(int fp_numberOfBonds) Sets the maximum pattern length.void
setFpNumberOfInts
(int fp_numberOfInts) Sets the length of the chemical hashed fingerprint inint
size units (bit count / 32).void
setFpNumberOfOnes
(int fp_numberOfOnes) Sets the number of bits to be set for patterns.void
setMysqlTableType
(int mysqlTableType) Specifies table engine for MySql.void
void
setStandardizerConfig
(String standardizerConfig) Sets the standardization configuration string (XML or simple action string).void
setStructuralKeyConfig
(StrucFPConfig structuralKeyConfig) Sets the structural key configuration.void
setStructureColumnType
(int structureColumnType) Sets the structure column type.void
setTableType
(int tableType) void
setTautomerDuplicateChecking
(boolean tautomerDuplicateChecking) Specifies if tautomers should be considered during DUPLICATE search, e.g.void
setTautomerEqualityMode
(TautomerEqualityMode tautomerEqualityMode) Internal use only.
-
Constructor Details
-
StructureTableOptions
Creates structure table options with the specified name and table type.- Parameters:
name
- table nametableType
- table type
-
StructureTableOptions
Creates structure table options with the specified table name and default table type (TableTypeConstants.TABLE_TYPE_DEFAULT
).- Parameters:
name
- table name
-
-
Method Details
-
getName
Gets the table name.- Returns:
- the table name
-
getFpNumberOfInts
public int getFpNumberOfInts()Gets the length of the chemical hashed fingerprint.- Returns:
- the length of the chemical hashed fingerprint in
int
size units
-
getFpNumberOfOnes
public int getFpNumberOfOnes()Gets the number of bits set for patterns.- Returns:
- the number of bits set for patterns
-
getFpNumberOfEdges
public int getFpNumberOfEdges()Gets he maximum pattern length.- Returns:
- the maximum pattern length
-
getStandardizerConfig
Gets the standardization configuration string.- Returns:
- the standardization configuration string
-
isAbsoluteStereo
public boolean isAbsoluteStereo()Gets whether the structures should be treated as absolute stereo during database search.- Returns:
- structures should be treated as absolute stereo during database search
-
getStructuralKeyConfig
Gets the structural key configuration.- Returns:
- the structural key configuration
-
getChemTermColsConfig
Gets a map having as keys the names of columns which are assigned a value (during structure import and update). The values assigned to the columns are calculated using the chemical terms expressions contained in the map as values.- Returns:
- a map having as keys the names of columns which are assigned a value
-
getTableType
public int getTableType()Gets the table name.- Returns:
- the table type
-
isTautomerDuplicateChecking
public boolean isTautomerDuplicateChecking()Gets whether tautomers are considered during DUPLICATE search.- Returns:
- returns whether tautomers are considered during DUPLICATE search, e.g. importing with duplicate checking
-
getExtraColumnDefinitions
Gets the definitions of additional columns.- Returns:
- the definitions of additional columns
-
getStructureColumnType
public int getStructureColumnType()Gets the type of thecd_structure
column.- Returns:
- the type of the
cd_structure
column
-
getMysqlTableType
public int getMysqlTableType()Gets the table engine for MySql.- Returns:
- the table engine for MySql.
-
isDuplicateFiltering
public boolean isDuplicateFiltering()Gets the duplicate filtering option.- Returns:
- the duplicate filtering option
-
getCacheUpdaterType
Internal use only. -
setFpNumberOfInts
public void setFpNumberOfInts(int fp_numberOfInts) Sets the length of the chemical hashed fingerprint inint
size units (bit count / 32). The value should be greater than or equal to 8.- Parameters:
fp_numberOfInts
- the chemical hashed fingerprint inint
size units
-
setFpNumberOfOnes
public void setFpNumberOfOnes(int fp_numberOfOnes) Sets the number of bits to be set for patterns.- Parameters:
fp_numberOfOnes
- the number of bits to set
-
setFpNumberOfBonds
public void setFpNumberOfBonds(int fp_numberOfBonds) Sets the maximum pattern length. The value should be between 2 and 10.- Parameters:
fp_numberOfBonds
- maximum pattern length
-
setStandardizerConfig
Sets the standardization configuration string (XML or simple action string).- Parameters:
standardizerConfig
- the standardization configuration string
-
setAbsoluteStereo
public void setAbsoluteStereo(boolean absoluteStereo) Specifies if structures should be treated as absolute stereo during database search. This overrides the original state of the chiral flag.- Parameters:
absoluteStereo
- whether structures should be treated as absolute stereo during database search
-
setStructuralKeyConfig
Sets the structural key configuration.- Parameters:
structuralKeyConfig
- the structural key configuration- See Also:
-
setChemTermColsConfig
Sets the map having as keys the names of columns which must be assigned a value (during structure import and update). The values assigned to the columns are calculated using the chemical terms expressions contained in the map as values.- Parameters:
chemTermColsConfig
- the chemical terms expression
-
setTautomerDuplicateChecking
public void setTautomerDuplicateChecking(boolean tautomerDuplicateChecking) Specifies if tautomers should be considered during DUPLICATE search, e.g. importing with duplicate checking.
If set totrue
the import / insert of structures requires some additional CPU time.- Parameters:
tautomerDuplicateChecking
- whether tautomers should be considered during DUPLICATE search or import.
-
setExtraColumnDefinitions
Sets the definitions of additional columns. The syntax of thecolumnDefs
field- starts with a comma
- contains column definitions separated by comma
- see the SQL
CREATE
statement for legal column definitions.
- Parameters:
extraColumnDefinitions
- the definitions of additional columns
-
setStructureColumnType
public void setStructureColumnType(int structureColumnType) Sets the structure column type.- Parameters:
structureColumnType
- the structure column type
-
setMysqlTableType
public void setMysqlTableType(int mysqlTableType) Specifies table engine for MySql.- Parameters:
mysqlTableType
- the mysql table type- See Also:
-
setDuplicateFiltering
public void setDuplicateFiltering(boolean duplicateFiltering) Specifies the duplicate filtering option.- Parameters:
duplicateFiltering
- duplicate filtering option
-
setCacheUpdaterType
@Beta public void setCacheUpdaterType(chemaxon.jchem.base.storage.cache.CacheUpdaterType cacheUpdaterType) Internal use only. -
setName
- Parameters:
name
- the name to set
-
setTableType
public void setTableType(int tableType) - Parameters:
tableType
- the tableType to set
-
getTautomerEqualityMode
Internal use only. -
setTautomerEqualityMode
Internal use only.
-