Class MajorErrorPatch
- java.lang.Object
-
- de.hybris.platform.patches.AbstractPatch
-
- de.hybris.platform.patchesdemo.release.AbstractDemoPatch
-
- de.hybris.platform.patchesdemo.release.MajorErrorPatch
-
- All Implemented Interfaces:
Patch,Rerunnable,DemoPatch,SimpleDemoPatch
public class MajorErrorPatch extends AbstractDemoPatch implements SimpleDemoPatch, Rerunnable
Example patch which is switched off by default as it throws major exception, which stops whole init/update process. Should be switched on to demonstrate error handling or tracking of problems.
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.patches.AbstractPatch
importPatchAction, patchId, patchName, release, sqlCommandPatchAction, structureState
-
-
Constructor Summary
Constructors Constructor Description MajorErrorPatch()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateProjectData(StructureState structureState)Creates project data.-
Methods inherited from class de.hybris.platform.patchesdemo.release.AbstractDemoPatch
createGlobalData, createShopsData, createShopsData, createShopsData, importCountryData, importCountryData, importShopCatalogVersionSpecificData, importShopCatalogVersionSpecificData, importShopSpecificData, importShopSpecificData
-
Methods inherited from class de.hybris.platform.patches.AbstractPatch
executeUpdateOnDB, executeUpdateOnDB, getPatchDescription, getPatchId, getPatchName, getRelease, getStructureState, importData, importGlobalData, importGlobalData, setImportPatchAction, setSqlCommandPatchAction
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.patches.Patch
createEssentialData, getPatchDescription, getPatchId, getPatchName, getRelease, getStructureState
-
Methods inherited from interface de.hybris.platform.patchesdemo.release.SimpleDemoPatch
createCountryData, createGlobalData, createShopData
-
-
-
-
Method Detail
-
createProjectData
public void createProjectData(StructureState structureState)
Creates project data. SeePatch.createProjectData(de.hybris.platform.patches.organisation.StructureState).- Specified by:
createProjectDatain interfacePatch- Overrides:
createProjectDatain classAbstractDemoPatch- Parameters:
structureState- that should be used for creating project data
-
-