Class InstallParametersImpl
java.lang.Object
ch.tocco.nice2.dbrefactoring.api.install.InstallParametersImpl
- All Implemented Interfaces:
InstallParameters
Simple "bean-like" implementation of
InstallParameters-
Field Summary
Fields inherited from interface ch.tocco.nice2.dbrefactoring.api.install.InstallParameters
ALL_FRAGMENTS, NULL_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionInstallParametersImpl(@Nullable Connection conn) InstallParametersImpl(@Nullable Connection conn, @Nullable Set<String> modules) InstallParametersImpl(@Nullable Connection conn, @Nullable Set<String> modules, @Nullable CallbackHandler callbackHandler) -
Method Summary
Modifier and TypeMethodDescriptionA set of fragment ids that are to install.@Nullable CallbackHandlerThe callback handler handling possible callbacks from the installation routine.@Nullable ConnectionThe connection to apply the installation to.A set of module names to install.If a versionVis specified, only those changelogs with a version<= Vare executed.voidsetActiveFragments(Set<String> activeFragments) voidsetCallbackHandler(@Nullable CallbackHandler callbackHandler) voidsetConnection(@Nullable Connection conn) voidsetModules(@Nullable Set<String> modules) voidsetVersion(Nice2Version version)
-
Constructor Details
-
InstallParametersImpl
public InstallParametersImpl() -
InstallParametersImpl
-
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
-
setModules
-
setVersion
-
setCallbackHandler
-
getConnection
Description copied from interface:InstallParametersThe connection to apply the installation to. Ifnull, the connection from the default data source is used.- Specified by:
getConnectionin interfaceInstallParameters
-
getModules
Description copied from interface:InstallParametersA set of module names to install. Ifnull, the whole application (all modules) are installed.- Specified by:
getModulesin interfaceInstallParameters
-
getCallbackHandler
Description copied from interface:InstallParametersThe callback handler handling possible callbacks from the installation routine. Some installation steps might not require this, but some do. Look at the documentation ofStepfor more information.- Specified by:
getCallbackHandlerin interfaceInstallParameters
-
getVersion
Description copied from interface:InstallParametersIf a versionVis specified, only those changelogs with a version<= Vare executed.- Specified by:
getVersionin interfaceInstallParameters
-
getActiveFragmentIds
Description copied from interface:InstallParametersA set of fragment ids that are to install. Fragments that are not in this set are skipped. UseInstallParameters.ALL_FRAGMENTSto have all fragments included (the default).- Specified by:
getActiveFragmentIdsin interfaceInstallParameters
-
setActiveFragments
-