Package com.im.commons.db.ddl.tablesets
Class AbstractJChemTableSetInfo
- java.lang.Object
-
- com.im.commons.db.ddl.tablesets.TableSetInfo
-
- com.im.commons.db.ddl.tablesets.AbstractJChemTableSetInfo
-
- All Implemented Interfaces:
AbstractInfo
,java.io.Serializable
- Direct Known Subclasses:
JChemBaseTableSetInfo
,JChemCartridgeAbstractTableSetInfo
public abstract class AbstractJChemTableSetInfo extends TableSetInfo
Abstract base class of a TableSetInfo for a JChem table (cartridge of JChemBase).- Author:
- Martin Adamek
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
absoluteStereo
protected int
numberOfEdges
protected int
numberOfInts
protected int
numberOfOnes
protected SchemaQualifiedName
propertyTable
protected java.lang.String
standardizerConfig
protected java.lang.String
structureColumnName
protected int
tableType
protected java.lang.String
tableVersion
protected boolean
tautomerDuplicateChecking
-
Fields inherited from class com.im.commons.db.ddl.tablesets.TableSetInfo
tableInfos
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractJChemTableSetInfo()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
buildToString(java.lang.StringBuilder builder)
java.lang.String
getChemicalTermsDefinitionForColumn(java.lang.String columnName)
java.util.Map<java.lang.String,java.lang.String>
getChemicalTermsDefinitions()
A Map of the chemical terms columns definitions.abstract int
getJChemTableIndex()
DBTableInfo
getJChemTableInfo()
Get the tableInfo for the JChemBase table.DBTableInfo
getJChemTableInfoFull()
int
getNumberOfEdges()
int
getNumberOfInts()
int
getNumberOfOnes()
abstract java.lang.String
getPropertyNamePrefixForJChemBaseTableInPropertyTable()
Get the prefix that identifies this JChem table's properties in the JChem property table.SchemaQualifiedName
getPropertyTable()
java.lang.String
getStandardizerConfig()
java.lang.String
getStructureColumnName()
The name of the structure column which is used by this index.int
getTableType()
The contents of the table as defined by one of theTABLE_TYPE_*
constants.java.lang.String
getTableVersion()
boolean
isAbsoluteStereo()
boolean
isTautomerDuplicateChecking()
void
setAbsoluteStereo(boolean absoluteStereo)
void
setTautomerDuplicateChecking(boolean tautomerDuplicateChecking)
-
Methods inherited from class com.im.commons.db.ddl.tablesets.TableSetInfo
addToModel, clone, getJoins, getTableInfos, getTableNames, getType, removeFromModel, schemaPlusTable, toString, updateLazyTableInfos, updateTableInfos, updateTableInfosRemoveProxies
-
-
-
-
Field Detail
-
structureColumnName
protected java.lang.String structureColumnName
-
propertyTable
protected SchemaQualifiedName propertyTable
-
numberOfOnes
protected int numberOfOnes
-
numberOfInts
protected int numberOfInts
-
numberOfEdges
protected int numberOfEdges
-
tableType
protected int tableType
-
tableVersion
protected java.lang.String tableVersion
-
absoluteStereo
protected boolean absoluteStereo
-
tautomerDuplicateChecking
protected boolean tautomerDuplicateChecking
-
standardizerConfig
protected java.lang.String standardizerConfig
-
-
Method Detail
-
getPropertyTable
public final SchemaQualifiedName getPropertyTable()
-
getStructureColumnName
public final java.lang.String getStructureColumnName()
The name of the structure column which is used by this index.- Returns:
- The name of the structure column
-
getNumberOfOnes
public final int getNumberOfOnes()
-
getNumberOfInts
public final int getNumberOfInts()
-
getNumberOfEdges
public final int getNumberOfEdges()
-
getStandardizerConfig
public final java.lang.String getStandardizerConfig()
-
isAbsoluteStereo
public final boolean isAbsoluteStereo()
-
setAbsoluteStereo
public final void setAbsoluteStereo(boolean absoluteStereo)
-
isTautomerDuplicateChecking
public final boolean isTautomerDuplicateChecking()
-
setTautomerDuplicateChecking
public final void setTautomerDuplicateChecking(boolean tautomerDuplicateChecking)
-
getTableVersion
public final java.lang.String getTableVersion()
-
getTableType
public final int getTableType()
The contents of the table as defined by one of theTABLE_TYPE_*
constants.- Returns:
- The table type
-
getChemicalTermsDefinitions
public final java.util.Map<java.lang.String,java.lang.String> getChemicalTermsDefinitions()
A Map of the chemical terms columns definitions. The keys are the column names and the values are the chemical terms expressions. e.g. Key: LOGP (column name). Value: logP() (chem terms function)- Returns:
- The map of the chemical terms columns definitions
-
getChemicalTermsDefinitionForColumn
public final java.lang.String getChemicalTermsDefinitionForColumn(java.lang.String columnName)
-
getJChemTableIndex
public abstract int getJChemTableIndex()
- Returns:
- The table index of the actual JChemBase table. Usually 0, but in the case of a cart index using a standard table this will be 1.
-
getJChemTableInfo
public final DBTableInfo getJChemTableInfo()
Get the tableInfo for the JChemBase table.- Returns:
- JChemBase table DBTableInfo
-
getJChemTableInfoFull
public final DBTableInfo getJChemTableInfoFull()
-
getPropertyNamePrefixForJChemBaseTableInPropertyTable
public abstract java.lang.String getPropertyNamePrefixForJChemBaseTableInPropertyTable()
Get the prefix that identifies this JChem table's properties in the JChem property table. e.g. "table.APP.PUBCHEM_DEMO." The string includes the trailing "."- Returns:
- The prefix
-
buildToString
protected void buildToString(java.lang.StringBuilder builder)
- Overrides:
buildToString
in classTableSetInfo
-
-