Class DBSchemaJChemImpl

  • All Implemented Interfaces:
    com.chemaxon.dif.db.spi.ddl.DFSchemaAccess, com.im.df.api.capabilities.DBSchemaCapability, com.im.df.api.capabilities.JChemSchemaCapability, com.im.df.api.capabilities.SchemaRefreshCapability, com.im.df.api.ddl.DFCapability, com.im.df.api.ddl.DFItem, com.im.df.api.ddl.DFSchema, com.im.df.api.ddl.DFScriptParent, com.im.df.api.ddl.tmp.InvocationDescriptions, com.im.df.api.ddl.tmp.ModelChanges, com.im.df.api.support.PropertiesEditingConfigurable

    public final class DBSchemaJChemImpl
    extends com.chemaxon.dif.db.api.schema.DBSchemaImpl
    implements com.im.df.api.capabilities.JChemSchemaCapability
    Author:
    Tim Dudgeon
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.chemaxon.dif.db.api.item.DBItemAbstractImpl

        com.chemaxon.dif.db.api.item.DBItemAbstractImpl.AbstractUpdater
      • Nested classes/interfaces inherited from interface com.im.df.api.capabilities.DBSchemaCapability

        com.im.df.api.capabilities.DBSchemaCapability.NullPositionAfterOrdering
      • Nested classes/interfaces inherited from interface com.im.df.api.ddl.DFItem

        com.im.df.api.ddl.DFItem.Handle<T extends com.im.df.api.ddl.DFItem>
      • Nested classes/interfaces inherited from interface com.im.df.api.support.PropertiesEditingConfigurable

        com.im.df.api.support.PropertiesEditingConfigurable.Extra
    • Field Summary

      • Fields inherited from class com.chemaxon.dif.db.api.schema.DBSchemaImpl

        dbItemsCache, XATTR_SCHEMA_INIT_MODE, XATTR_SCHEMA_NULL_ORDERING, XATTR_SCHEMA_PREV_INIT_MODE
      • Fields inherited from class com.chemaxon.dif.db.api.item.DBItemAbstractImpl

        DEFAULT_CHARSET
      • Fields inherited from interface com.im.df.api.capabilities.DBSchemaCapability

        PROP_EXTRA_SCHEMAS, PROP_SUPPLEMENTAL_TABLES, PROP_TABLES, PROP_VIEWS, XATTR_CONNECTION_ACTIVATION_SCRIPT, XATTR_CONNECTION_DEACTIVATION_SCRIPT, XATTR_PREFIX_SCHEMA_QUERY_STRUCTURE_STANDARDIZER, XATTR_QUERY_TIMEOUT, XATTR_SCHEMA_INIT_SCRIPT, XATTR_SCHEMA_LOGGING, XATTR_STRUCTURE_SEARCH_TYPE
      • Fields inherited from interface com.im.df.api.ddl.DFItem

        PROP_CAPABILITIES, PROP_DESCRIPTION, PROP_ID, PROP_NAME, PROP_TYPE, PROP_VALID
      • Fields inherited from interface com.im.df.api.ddl.DFSchema

        PROP_DATA_TREES, PROP_ENTITIES, PROP_RELATIONSHIPS
      • Fields inherited from interface com.im.df.api.ddl.DFScriptParent

        PROP_SCRIPTS
      • Fields inherited from interface com.im.df.api.capabilities.JChemSchemaCapability

        PROP_JCHEM_PROPERTY_TABLES
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean claimTableOwnership​(com.im.commons.db.util.SchemaQualifiedName tableName)  
      static DBSchemaJChemImpl createInstance​(com.im.ijcs.api.ddl.dto.ModelInfo model, com.im.ijcs.api.ddl.DDLService ddlService)  
      void createJChemPropertyTable​(String dbSchemaName, String propertyTableName, Map<String,​String> props, com.im.commons.progress.DFEnvironmentRW env)
      Create a new properties table and add it to the list the schema knows about.
      void createJChemPropertyTable​(String propertyTableName, Map<String,​String> props, com.im.commons.progress.DFEnvironmentRW env)  
      Set<String> getAssociatedTables​(com.im.commons.db.util.SchemaQualifiedName schemaPlusProptable)  
      Set<String> getJChemPropertyTables()  
      Set<String> getJChemPropertyTables​(String dbSchemaName)  
      com.im.ijcs.api.ddl.JChemTableManager getJChemTableManager()  
      Set<String> getManagedTables​(String dbSchemaName)  
      boolean isCapabilityProviderAllowed()  
      boolean isJChemBaseTable​(String tableName)  
      boolean isJChemBaseTable​(String dbSchemaName, String tableName)  
      boolean isJChemCartJChemBaseTable​(String tableName)  
      boolean isJChemCartJChemBaseTable​(String dbSchemaName, String tableName)  
      boolean isJChemCartStandardTable​(String tableName)  
      boolean isJChemCartStandardTable​(String dbSchemaName, String tableName)  
      boolean isJChemPropertyTable​(String tableName)  
      boolean isJChemPropertyTable​(String dbSchemaName, String tableName)  
      boolean isStandardTable​(String dbSchemaName, String tableName)  
      void removeJChemPropertyTable​(String propertyTableName, com.im.commons.progress.DFEnvironmentRW env)  
      void removeJChemPropertyTable​(String dbSchemaName, String propertyTableName, com.im.commons.progress.DFEnvironmentRW env)
      Removes this properties table to those we know about.
      • Methods inherited from class com.chemaxon.dif.db.api.schema.DBSchemaImpl

        activate, activateItem, addCommaSeparatedPropsForToString, addInvocationDescriptionListener, addOperationChangeListener, applyAsyncOperation, applyAsyncOperations, applyChanges, applyOperation, applyOperations, close, createUpdater, createValueGenerator, findItemById, getAllManagedTableInfos, getAllSchemas, getAllTableInfos, getAllTableNames, getAllTableNames, getAllViewInfos, getAllViewNames, getAllViewNames, getConstraintNames, getDatabasePlatform, getDatabaseType, getDataProvider, getDataTreeAccess, getDataTrees, getDBInfo, getDBItemsCache, getDBSchemaManager, getDDLService, getDefaultDBSchemaName, getEntities, getEntityAccess, getExtraSchemas, getFieldAccess, getGlobalLockable, getGlobalUserLockable, getGlobalUserLockable, getHandle, getListAccess, getLockable, getManagedTables, getMaxColumnNameLength, getMaxIndexNameLength, getMaxTableNameLength, getNameValidator, getNullPositionAfterOrdering, getPerformanceMode, getPreviousPerformanceMode, getRelationshipAccess, getRelationships, getSchema, getSchemaBeanFactory, getSchemaProvider, getScriptAccess, getScripts, getStandardValueGeneratorFactories, getSystemTables, getTableInfo, getTableInfo, getTableInfo, getTableManager, getTableSetInfo, getType, getUnsupportedDatabaseOperations, getUserLockable, getUserLockable, getUsername, getValueGeneratorFactory, getViewAccess, getVisibilityRestrictions, getVisibilityRestrictionsAccess, getXmlBean, init, invalidate, invalidateSubitems, isSupportingDBSchemas, notifySupplementalTablesChanged, removeInvocationDescriptionListener, removeOperationChangeListener, removeTable, schemaChanged, setExtraSchemas, setNullPositionAfterOrdering, setPerformanceMode, setSchemaBeanFactory, setSchemaProvider, setupDdlRole, setupDmlRole
      • Methods inherited from class com.chemaxon.dif.db.api.item.DBItemAbstractImpl

        addCapabilitiesFromCapabilityProviders, addCapability, addPropertyChangeListener, doGetHandle, ensureValid, equals, findOwner, firePropertyChange, firePropertyChange, getCapabilities, getDescription, getId, getName, getSchemaImpl, getXAttributesImpl, handleChanges, handleOwner, handleUpdateDescription, handleUpdateName, handleXAttrs, hashCode, initXAttributes, isActive, isDifferent, isPropertyEditable, isValid, removeCapability, removePropertyChangeListener, replaceCapability, setDescription, setName, setPropertyEditable, toString
      • Methods inherited from interface com.im.df.api.capabilities.DBSchemaCapability

        getAllManagedTableInfos, getAllSchemas, getAllTableInfos, getAllTableNames, getAllTableNames, getAllViewInfos, getAllViewNames, getAllViewNames, getConstraintNames, getDatabaseType, getDefaultDBSchemaName, getExtraSchemas, getManagedTables, getMaxColumnNameLength, getMaxIndexNameLength, getMaxTableNameLength, getNullPositionAfterOrdering, getPerformanceMode, getPreviousPerformanceMode, getSystemTables, getTableInfo, getTableInfo, getTableInfo, getUnsupportedDatabaseOperations, isSupportingDBSchemas, removeTable, setExtraSchemas, setNullPositionAfterOrdering, setPerformanceMode
      • Methods inherited from interface com.im.df.api.ddl.DFItem

        addPropertyChangeListener, getCapabilities, getDescription, getId, getName, isValid, removePropertyChangeListener, setDescription, setName
      • Methods inherited from interface com.chemaxon.dif.db.spi.ddl.DFSchemaAccess

        addCapability
      • Methods inherited from interface com.im.df.api.support.PropertiesEditingConfigurable

        isPropertyEditable
    • Method Detail

      • createInstance

        public static DBSchemaJChemImpl createInstance​(com.im.ijcs.api.ddl.dto.ModelInfo model,
                                                       com.im.ijcs.api.ddl.DDLService ddlService)
      • getJChemTableManager

        public com.im.ijcs.api.ddl.JChemTableManager getJChemTableManager()
      • isCapabilityProviderAllowed

        public boolean isCapabilityProviderAllowed()
        Overrides:
        isCapabilityProviderAllowed in class com.chemaxon.dif.db.api.schema.DBSchemaImpl
      • claimTableOwnership

        public boolean claimTableOwnership​(com.im.commons.db.util.SchemaQualifiedName tableName)
        Specified by:
        claimTableOwnership in interface com.im.df.api.capabilities.DBSchemaCapability
        Overrides:
        claimTableOwnership in class com.chemaxon.dif.db.api.schema.DBSchemaImpl
      • getJChemPropertyTables

        public Set<String> getJChemPropertyTables()
        Specified by:
        getJChemPropertyTables in interface com.im.df.api.capabilities.JChemSchemaCapability
      • getJChemPropertyTables

        public Set<String> getJChemPropertyTables​(String dbSchemaName)
        Specified by:
        getJChemPropertyTables in interface com.im.df.api.capabilities.JChemSchemaCapability
      • getAssociatedTables

        public Set<String> getAssociatedTables​(com.im.commons.db.util.SchemaQualifiedName schemaPlusProptable)
        Specified by:
        getAssociatedTables in interface com.im.df.api.capabilities.JChemSchemaCapability
        Parameters:
        schemaPlusProptable - The schema qualified property table name
        Returns:
        All the JChem tables that are associated with this property table
      • createJChemPropertyTable

        public void createJChemPropertyTable​(String propertyTableName,
                                             Map<String,​String> props,
                                             com.im.commons.progress.DFEnvironmentRW env)
        Specified by:
        createJChemPropertyTable in interface com.im.df.api.capabilities.JChemSchemaCapability
      • createJChemPropertyTable

        public void createJChemPropertyTable​(String dbSchemaName,
                                             String propertyTableName,
                                             Map<String,​String> props,
                                             com.im.commons.progress.DFEnvironmentRW env)
        Create a new properties table and add it to the list the schema knows about.
        Specified by:
        createJChemPropertyTable in interface com.im.df.api.capabilities.JChemSchemaCapability
        Parameters:
        propertyTableName - The name for the table
      • removeJChemPropertyTable

        public void removeJChemPropertyTable​(String propertyTableName,
                                             com.im.commons.progress.DFEnvironmentRW env)
        Specified by:
        removeJChemPropertyTable in interface com.im.df.api.capabilities.JChemSchemaCapability
      • removeJChemPropertyTable

        public void removeJChemPropertyTable​(String dbSchemaName,
                                             String propertyTableName,
                                             com.im.commons.progress.DFEnvironmentRW env)
        Removes this properties table to those we know about. Only deletes the table from the DB if the drop param is set to true
        Specified by:
        removeJChemPropertyTable in interface com.im.df.api.capabilities.JChemSchemaCapability
        Parameters:
        dbSchemaName - The database schema
        propertyTableName - The name for the JChemProperties table
      • isStandardTable

        public boolean isStandardTable​(String dbSchemaName,
                                       String tableName)
        Overrides:
        isStandardTable in class com.chemaxon.dif.db.api.schema.DBSchemaImpl
      • isJChemPropertyTable

        public boolean isJChemPropertyTable​(String tableName)
        Specified by:
        isJChemPropertyTable in interface com.im.df.api.capabilities.JChemSchemaCapability
      • isJChemPropertyTable

        public boolean isJChemPropertyTable​(String dbSchemaName,
                                            String tableName)
        Specified by:
        isJChemPropertyTable in interface com.im.df.api.capabilities.JChemSchemaCapability
      • isJChemBaseTable

        public boolean isJChemBaseTable​(String tableName)
        Specified by:
        isJChemBaseTable in interface com.im.df.api.capabilities.JChemSchemaCapability
      • isJChemBaseTable

        public boolean isJChemBaseTable​(String dbSchemaName,
                                        String tableName)
        Specified by:
        isJChemBaseTable in interface com.im.df.api.capabilities.JChemSchemaCapability
      • isJChemCartJChemBaseTable

        public boolean isJChemCartJChemBaseTable​(String tableName)
        Specified by:
        isJChemCartJChemBaseTable in interface com.im.df.api.capabilities.JChemSchemaCapability
      • isJChemCartJChemBaseTable

        public boolean isJChemCartJChemBaseTable​(String dbSchemaName,
                                                 String tableName)
        Specified by:
        isJChemCartJChemBaseTable in interface com.im.df.api.capabilities.JChemSchemaCapability
      • isJChemCartStandardTable

        public boolean isJChemCartStandardTable​(String tableName)
        Specified by:
        isJChemCartStandardTable in interface com.im.df.api.capabilities.JChemSchemaCapability
      • isJChemCartStandardTable

        public boolean isJChemCartStandardTable​(String dbSchemaName,
                                                String tableName)
        Specified by:
        isJChemCartStandardTable in interface com.im.df.api.capabilities.JChemSchemaCapability
      • getManagedTables

        public Set<String> getManagedTables​(String dbSchemaName)
        Specified by:
        getManagedTables in interface com.im.df.api.capabilities.DBSchemaCapability
        Overrides:
        getManagedTables in class com.chemaxon.dif.db.api.schema.DBSchemaImpl