Class DBFieldJChemStructureImpl

  • All Implemented Interfaces:
    com.im.df.api.capabilities.DFFieldDataTypeCapability, com.im.df.api.capabilities.DFFieldStructureCapability, com.im.df.api.ddl.DFCapability

    public final class DBFieldJChemStructureImpl
    extends com.chemaxon.dif.db.api.field.DBFieldDataTypeAbstractImpl
    implements com.im.df.api.capabilities.DFFieldStructureCapability
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static DBFieldJChemStructureImpl create​(com.im.df.api.ddl.DFEntity entity, String[] columnNames)
      RowMapperFactory method for creating JChem fields.
      protected com.im.commons.db.columnhandling.DBValueHandler createValueHandler​(String[] columnNames, int[] jdbcTypes, com.im.commons.db.ddl.DBDatabaseInfo.ColumnSQLType[] sqlTypes, Class assembledValueClass, Class[] disassembledValueClasses, com.im.commons.db.ddl.DBDatabaseInfo dbInfo)  
      Class[] getColumnClasses()  
      String getDataTypeName()  
      Class getFieldClass()  
      com.im.df.api.ddl.DFField.Required getRequired()  
      boolean isSortable()  
      • Methods inherited from class com.chemaxon.dif.db.api.field.DBFieldDataTypeAbstractImpl

        addCapability, determineDefaultValue, getCapabilities, getColumnNames, getColumns, getSortColumnNames, getSortColumnsAscDesc, getValueHandler, initPropsFromDB, removeCapability, setDefaultValue, setSortColumns
      • Methods inherited from class com.chemaxon.dif.db.api.field.ColumnlessFieldDataTypeAbstractImpl

        attach, convert, getConvertor, getDefaultValue, getField, getGenerator, getValidRequiredValues, init, setConvertor, setGenerator, setRequired
    • Method Detail

      • create

        public static DBFieldJChemStructureImpl create​(com.im.df.api.ddl.DFEntity entity,
                                                       String[] columnNames)
        RowMapperFactory method for creating JChem fields.
        Parameters:
        entity - The entity which the field belongs to
        columnNames - The names of the columns used by the field. Usually only one, but Markush tables user to use the cd_markush column as a second column, but this is no longer the case. Old field definitions including this second column will have it removed.
        Returns:
        The new field
      • getFieldClass

        public Class getFieldClass()
        Specified by:
        getFieldClass in class com.chemaxon.dif.db.api.field.ColumnlessFieldDataTypeAbstractImpl
      • getRequired

        public com.im.df.api.ddl.DFField.Required getRequired()
        Overrides:
        getRequired in class com.chemaxon.dif.db.api.field.ColumnlessFieldDataTypeAbstractImpl
      • isSortable

        public boolean isSortable()
        Overrides:
        isSortable in class com.chemaxon.dif.db.api.field.DBFieldDataTypeAbstractImpl
      • getColumnClasses

        public Class[] getColumnClasses()
        Overrides:
        getColumnClasses in class com.chemaxon.dif.db.api.field.DBFieldDataTypeAbstractImpl
      • createValueHandler

        protected com.im.commons.db.columnhandling.DBValueHandler createValueHandler​(String[] columnNames,
                                                                                     int[] jdbcTypes,
                                                                                     com.im.commons.db.ddl.DBDatabaseInfo.ColumnSQLType[] sqlTypes,
                                                                                     Class assembledValueClass,
                                                                                     Class[] disassembledValueClasses,
                                                                                     com.im.commons.db.ddl.DBDatabaseInfo dbInfo)
        Specified by:
        createValueHandler in class com.chemaxon.dif.db.api.field.DBFieldDataTypeAbstractImpl
      • getDataTypeName

        public String getDataTypeName()
        Specified by:
        getDataTypeName in interface com.im.df.api.capabilities.DFFieldDataTypeCapability