Package com.im.df.api

Class DFSchemaProviders


  • public final class DFSchemaProviders
    extends java.lang.Object
    Utility methods for DFSchemaProvider.
    • Method Detail

      • connectAutomatically

        public static DFSchema connectAutomatically​(DFSchemaProvider schemaProvider,
                                                    com.im.commons.progress.DFFeedback aFeedback)
        Automatically goes through schema connect process and returns fully-initialized schema. Never asks user (username, password, etc.). If any information is missing and schema can't be initialized without interaction with user then it just closes it and returns null. Make sure all information necessary for schema init are written in ijs schema properties.
        Parameters:
        schemaProvider - schema provider for schema
        aFeedback - feedback for schema init
        Returns:
        The fully-initialized schema or null
      • connectWithUpgrades

        public static DFSchema connectWithUpgrades​(DFSchemaProvider provider,
                                                   com.im.commons.progress.DFFeedback feedback)
        Connects to the schema performing all schema upgrade if necessary.
        Parameters:
        provider - schema provider for schema
        feedback - feedback for schema init, never null
        Returns:
        The fully-initialized schema or null
        Since:
        6.3
      • disconnectSchema

        public static void disconnectSchema​(DFSchemaProvider schemaProvider)
        Disconnect the schema.
        Parameters:
        schemaProvider - schema provider to be disconnected