Class InstallParametersImpl

java.lang.Object
ch.tocco.nice2.dbrefactoring.api.install.InstallParametersImpl
All Implemented Interfaces:
InstallParameters

public class InstallParametersImpl extends Object implements InstallParameters
Simple "bean-like" implementation of InstallParameters
  • Constructor Details

    • InstallParametersImpl

      public InstallParametersImpl()
    • InstallParametersImpl

      public InstallParametersImpl(@Nullable @Nullable Connection conn)
    • InstallParametersImpl

      public InstallParametersImpl(@Nullable @Nullable Connection conn, @Nullable @Nullable Set<String> modules)
    • InstallParametersImpl

      public InstallParametersImpl(@Nullable @Nullable Connection conn, @Nullable @Nullable Set<String> modules, @Nullable @Nullable CallbackHandler callbackHandler)
  • Method Details

    • setConnection

      public void setConnection(@Nullable @Nullable Connection conn)
    • setModules

      public void setModules(@Nullable @Nullable Set<String> modules)
    • setVersion

      public void setVersion(Nice2Version version)
    • setCallbackHandler

      public void setCallbackHandler(@Nullable @Nullable CallbackHandler callbackHandler)
    • getConnection

      @Nullable public @Nullable Connection getConnection()
      Description copied from interface: InstallParameters
      The connection to apply the installation to. If null, the connection from the default data source is used.
      Specified by:
      getConnection in interface InstallParameters
    • getModules

      @Nullable public @Nullable Set<String> getModules()
      Description copied from interface: InstallParameters
      A set of module names to install. If null, the whole application (all modules) are installed.
      Specified by:
      getModules in interface InstallParameters
    • getCallbackHandler

      @Nullable public @Nullable CallbackHandler getCallbackHandler()
      Description copied from interface: InstallParameters
      The callback handler handling possible callbacks from the installation routine. Some installation steps might not require this, but some do. Look at the documentation of Step for more information.
      Specified by:
      getCallbackHandler in interface InstallParameters
    • getVersion

      public Nice2Version getVersion()
      Description copied from interface: InstallParameters
      If a version V is specified, only those changelogs with a version <= V are executed.
      Specified by:
      getVersion in interface InstallParameters
    • getActiveFragmentIds

      public Set<String> getActiveFragmentIds()
      Description copied from interface: InstallParameters
      A set of fragment ids that are to install. Fragments that are not in this set are skipped. Use InstallParameters.ALL_FRAGMENTS to have all fragments included (the default).
      Specified by:
      getActiveFragmentIds in interface InstallParameters
    • setActiveFragments

      public void setActiveFragments(Set<String> activeFragments)