public interface UpgradeActionContext
Modifier and Type | Field and Description |
---|---|
static String |
DATABASEOPTION_ONLINE_REDEFINITION
The name of the database option for Online Redefinition.
|
static String |
DEFAULT_LIBRARYSERVICE_NAME
The name of the default LibraryService that is returned by
getDefaultLibraryService and restartDefaultLibraryService . |
Modifier and Type | Method and Description |
---|---|
BatchUpdateAssistant |
getBatchUpdateAssistant()
Gets a batch update assistant for this upgrade action.
|
DataSource |
getDataSource()
Gets a JDBC DataSource for connecting to the repository.
|
LibraryService |
getDefaultLibraryService()
Gets the the LibraryService named
DEFAULT_LIBRARYSERVICE_NAME ,
starting it if necessary. |
ProgressAssistant |
getProgressAssistant()
Gets a progress assistant for this upgrade action.
|
RowChangeAssistant |
getRowChangeAssistant()
Gets a row-change assistant for this upgrade action.
|
String |
getSchemaName()
Gets the name of the repository schema.
|
StateAssistant |
getStateAssistant()
Gets a state assistant for this upgrade action.
|
boolean |
isDatabaseOptionAvailable(String option)
Gets whether the specified database option is available.
|
void |
postError(String operation,
String location,
String description)
Posts an error in the execution of this upgrade action.
|
LibraryService |
restartDefaultLibraryService()
Restarts the LibraryService named
DEFAULT_LIBRARYSERVICE_NAME . |
boolean |
stopRequested()
Gets whether the upgrade action should stop the in-progress
analyze , preUpgrade , upgrade , postUpgrade , or rollback . |
static final String DEFAULT_LIBRARYSERVICE_NAME
getDefaultLibraryService
and restartDefaultLibraryService
.static final String DATABASEOPTION_ONLINE_REDEFINITION
boolean stopRequested() throws IfsException
analyze
, preUpgrade
, upgrade
, postUpgrade
, or rollback
.IfsException
- if the operation failsvoid postError(String operation, String location, String description) throws IfsException
operation
- an action-specific description of the operation on
which the error occurred, for example
"UPDATE odmm_contentstore
", or null if
inapplicablelocation
- an action-specific description of the data on which
the error occurred, for example "ID=3892
",
or null if inapplicabledescription
- a description of the error that occurred, or null if
unknownIfsException
- if the operation failsStateAssistant getStateAssistant() throws IfsException
IfsException
- if the operation failsRowChangeAssistant getRowChangeAssistant() throws IfsException
IfsException
- if the operation failsProgressAssistant getProgressAssistant() throws IfsException
IfsException
- if the operation failsBatchUpdateAssistant getBatchUpdateAssistant() throws IfsException
IfsException
- if the operation failsDataSource getDataSource() throws IfsException
IfsException
- if the operation failsString getSchemaName() throws IfsException
IfsException
- if the operation failsboolean isDatabaseOptionAvailable(String option) throws IfsException
The available options are contained in dynamic view V$OPTION
.
option
- the name of the optionIfsException
- if the operation failsLibraryService getDefaultLibraryService() throws IfsException
DEFAULT_LIBRARYSERVICE_NAME
,
starting it if necessary.IfsException
- if the operation failsLibraryService restartDefaultLibraryService() throws IfsException
DEFAULT_LIBRARYSERVICE_NAME
.
After an upgrade action performs operations that leave stale data in the
LibraryService caches, it must call this method to restart the service.
This happens automatically if, in the upgrade script, the upgrade action's
restartServiceAfterwards
attribute is true. Otherwise, the
action can explicitly call this method.
IfsException
- if the operation failsCopyright © 2023. All rights reserved.