Class SchemaProviderImpl

  • All Implemented Interfaces:
    com.im.df.api.DFSchemaProvider

    public final class SchemaProviderImpl
    extends Object
    implements com.im.df.api.DFSchemaProvider
    Author:
    Petr Hamernik
    • Constructor Detail

      • SchemaProviderImpl

        public SchemaProviderImpl​(com.chemaxon.dif.db.api.schema.DBSchemaImpl createdSchema)
        Helper constructor, which allows to create a very simple SchemaProvider around an existing DFSchema. This is currently used only in tests.
        Parameters:
        createdSchema - the existing schema
    • Method Detail

      • getSchemaType

        public com.im.df.api.SchemaType getSchemaType()
        Specified by:
        getSchemaType in interface com.im.df.api.DFSchemaProvider
      • getState

        public com.im.df.api.DFSchemaProvider.State getState()
        Specified by:
        getState in interface com.im.df.api.DFSchemaProvider
      • getLastStateResult

        public com.im.df.api.DFSchemaProvider.StepInfo getLastStateResult()
        Specified by:
        getLastStateResult in interface com.im.df.api.DFSchemaProvider
      • getSchema

        public com.im.df.api.ddl.DFSchema getSchema()
      • getLockable

        public com.im.commons.progress.DFLockable getLockable()
        Specified by:
        getLockable in interface com.im.df.api.DFSchemaProvider
      • proceedToNextState

        public com.im.df.api.DFSchemaProvider.StepInfo proceedToNextState​(com.im.commons.progress.DFEnvironmentRW env)
        Specified by:
        proceedToNextState in interface com.im.df.api.DFSchemaProvider
      • closeSchema

        public void closeSchema​(com.im.commons.progress.DFEnvironmentRW env)
        Specified by:
        closeSchema in interface com.im.df.api.DFSchemaProvider
      • deleteSchema

        public void deleteSchema​(com.im.commons.progress.DFEnvironmentRW env,
                                 boolean deleteMetaDataTables)
                          throws IOException
        Specified by:
        deleteSchema in interface com.im.df.api.DFSchemaProvider
        Throws:
        IOException
      • registerCacheForJCP

        public static void registerCacheForJCP​(DBSchemaJChemImpl schema,
                                               com.im.commons.db.util.SchemaQualifiedName jcp,
                                               boolean jcpCreatedOrDestroyed)
      • addPropertyChangeListener

        public void addPropertyChangeListener​(PropertyChangeListener listener)
        Specified by:
        addPropertyChangeListener in interface com.im.df.api.DFSchemaProvider
      • removePropertyChangeListener

        public void removePropertyChangeListener​(PropertyChangeListener listener)
        Specified by:
        removePropertyChangeListener in interface com.im.df.api.DFSchemaProvider