public abstract class AbstractPatch extends java.lang.Object implements Patch
| Modifier and Type | Field and Description |
|---|---|
protected PatchAction |
importPatchAction |
protected java.lang.String |
patchId |
protected java.lang.String |
patchName |
protected Release |
release |
protected PatchAction |
sqlCommandPatchAction |
protected StructureState |
structureState |
| Constructor and Description |
|---|
AbstractPatch(java.lang.String patchId,
java.lang.String patchName,
Release release,
StructureState structureState) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
executeUpdateOnDB(java.lang.String actionName,
java.lang.String query)
Executes direct SQL update for specified query.
|
protected void |
executeUpdateOnDB(java.lang.String actionName,
java.lang.String query,
ImportOrganisationUnit organisationUnit)
Executes direct SQL update for specified query.
|
java.lang.String |
getPatchDescription()
Returns Patch description.
|
java.lang.String |
getPatchId()
Returns unique patch id (e.g PD_V_1.0.1).
|
java.lang.String |
getPatchName()
Returns Patch name.
|
Release |
getRelease()
Gets release that patch is part of.
|
StructureState |
getStructureState()
Gets
StructureState from this patch |
protected void |
importData(java.lang.String fileName,
ImportOrganisationUnit organisationUnit,
java.util.Collection<ImportLanguage> languages,
boolean runAgain,
ImpexImportUnitOption[] importOptions,
ImpexHeaderOption[][] headerOptions)
Imports impex data for given organisation and languages.
|
protected void |
importGlobalData(java.lang.String fileName,
java.util.Collection<ImportLanguage> languages,
boolean runAgain)
Imports global impex data for given languages.
|
protected void |
importGlobalData(java.lang.String fileName,
java.util.Collection<ImportLanguage> languages,
boolean runAgain,
ImpexImportUnitOption[] importOptions)
Imports global impex data for given languages.
|
void |
setImportPatchAction(PatchAction importPatchAction) |
void |
setSqlCommandPatchAction(PatchAction sqlCommandPatchAction) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateEssentialData, createProjectDataprotected java.lang.String patchId
protected java.lang.String patchName
protected Release release
protected StructureState structureState
protected PatchAction importPatchAction
protected PatchAction sqlCommandPatchAction
public AbstractPatch(java.lang.String patchId,
java.lang.String patchName,
Release release,
StructureState structureState)
protected void importGlobalData(java.lang.String fileName,
java.util.Collection<ImportLanguage> languages,
boolean runAgain)
fileName - of impex to be importedlanguages - for which data should be importedrunAgain - if patch should be executed againprotected void importGlobalData(java.lang.String fileName,
java.util.Collection<ImportLanguage> languages,
boolean runAgain,
ImpexImportUnitOption[] importOptions)
fileName - of impex to be importedlanguages - for which data should be importedrunAgain - if patch should be executed againimportOptions - optional set of options that define how impex should be executedprotected void importData(java.lang.String fileName,
ImportOrganisationUnit organisationUnit,
java.util.Collection<ImportLanguage> languages,
boolean runAgain,
ImpexImportUnitOption[] importOptions,
ImpexHeaderOption[][] headerOptions)
fileName - of impex to be importedorganisationUnit - for which data should be importedlanguages - for which data should be importedrunAgain - if patch should be executed againimportOptions - optional set of options that define how impex should be executedheaderOptions - additional header optionsprotected void executeUpdateOnDB(java.lang.String actionName,
java.lang.String query)
actionName - a human-readable name of the action.query - to be executed on DB (directly, not through hybris ORM)protected void executeUpdateOnDB(java.lang.String actionName,
java.lang.String query,
ImportOrganisationUnit organisationUnit)
actionName - a human-readable name of the action.query - to be executed on DB (directly, not through hybris ORM)organisationUnit - organisation unitpublic StructureState getStructureState()
PatchStructureState from this patchgetStructureState in interface PatchStructureState from this patchpublic java.lang.String getPatchId()
PatchgetPatchId in interface Patchpublic java.lang.String getPatchName()
PatchgetPatchName in interface Patchpublic java.lang.String getPatchDescription()
PatchgetPatchDescription in interface Patchpublic Release getRelease()
PatchgetRelease in interface Patchpublic void setImportPatchAction(PatchAction importPatchAction)
public void setSqlCommandPatchAction(PatchAction sqlCommandPatchAction)
Copyright © 2018 SAP SE. All Rights Reserved.