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
ConstructorDescriptionInstallParametersImpl
(@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 CallbackHandler
The callback handler handling possible callbacks from the installation routine.@Nullable Connection
The connection to apply the installation to.A set of module names to install.If a versionV
is specified, only those changelogs with a version<= V
are executed.void
setActiveFragments
(Set<String> activeFragments) void
setCallbackHandler
(@Nullable CallbackHandler callbackHandler) void
setConnection
(@Nullable Connection conn) void
setModules
(@Nullable Set<String> modules) void
setVersion
(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:InstallParameters
The connection to apply the installation to. Ifnull
, the connection from the default data source is used.- Specified by:
getConnection
in interfaceInstallParameters
-
getModules
Description copied from interface:InstallParameters
A set of module names to install. Ifnull
, the whole application (all modules) are installed.- Specified by:
getModules
in interfaceInstallParameters
-
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 ofStep
for more information.- Specified by:
getCallbackHandler
in interfaceInstallParameters
-
getVersion
Description copied from interface:InstallParameters
If a versionV
is specified, only those changelogs with a version<= V
are executed.- Specified by:
getVersion
in interfaceInstallParameters
-
getActiveFragmentIds
Description copied from interface:InstallParameters
A set of fragment ids that are to install. Fragments that are not in this set are skipped. UseInstallParameters.ALL_FRAGMENTS
to have all fragments included (the default).- Specified by:
getActiveFragmentIds
in interfaceInstallParameters
-
setActiveFragments
-