public abstract class AbstractModulePatch extends Object implements ModulePatch, org.springframework.beans.factory.BeanNameAware
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.logging.Log |
LOGGER
logger
|
protected org.alfresco.service.transaction.TransactionService |
transactionService
transaction service
|
| Constructor and Description |
|---|
AbstractModulePatch() |
| Modifier and Type | Method and Description |
|---|---|
void |
apply()
Apply the module patch
|
abstract void |
applyInternal()
Apply patch internal method.
|
int |
compareTo(ModulePatch o) |
String |
getDescription() |
int |
getFixesFromSchema() |
int |
getFixesToSchema() |
String |
getId() |
String |
getModuleId() |
int |
getTargetSchema() |
void |
init()
Initiialisation method
|
void |
setBeanName(String beanName)
Convenience method to set the module patch id to the bean name (if not already specified)
|
void |
setDescription(String description) |
void |
setFixesFromSchema(int fixesFromSchema) |
void |
setFixesToSchema(int fixesToSchema) |
void |
setId(String id) |
void |
setModuleId(String moduleId) |
void |
setModulePatchExecuter(ModulePatchExecuter modulePatchExecuter) |
void |
setTargetSchema(int targetSchema) |
void |
setTransactionService(org.alfresco.service.transaction.TransactionService transactionService) |
void |
setTxnReadOnly(boolean txnReadOnly) |
void |
setTxnRequiresNew(boolean txnRequiresNew) |
protected static final org.apache.commons.logging.Log LOGGER
protected org.alfresco.service.transaction.TransactionService transactionService
public void init()
public void setTxnReadOnly(boolean txnReadOnly)
public void setTxnRequiresNew(boolean txnRequiresNew)
public void setModulePatchExecuter(ModulePatchExecuter modulePatchExecuter)
modulePatchExecuter - module patch executerpublic void setTransactionService(org.alfresco.service.transaction.TransactionService transactionService)
transactionService - transaction servicepublic void setId(String id)
id - module patch idpublic String getId()
getId in interface ModulePatchModulePatch.getId()public void setBeanName(String beanName)
setBeanName in interface org.springframework.beans.factory.BeanNameAwarepublic void setDescription(String description)
description - module patch descriptionpublic String getDescription()
getDescription in interface ModulePatchModulePatch.getDescription()public void setModuleId(String moduleId)
moduleId - module idpublic String getModuleId()
getModuleId in interface ModulePatchModulePatch.getModuleId()public void setFixesFromSchema(int fixesFromSchema)
fixesFromSchema - fixes from schema valuepublic int getFixesFromSchema()
getFixesFromSchema in interface ModulePatchModulePatch.getFixesFromSchema()public void setFixesToSchema(int fixesToSchema)
fixesToSchema - fixes to schema valuepublic int getFixesToSchema()
getFixesToSchema in interface ModulePatchModulePatch.getFixesToSchema()public void setTargetSchema(int targetSchema)
public int getTargetSchema()
getTargetSchema in interface ModulePatchModulePatch.getTargetSchema()public void apply()
ModulePatchapply in interface ModulePatchModulePatch.apply()public abstract void applyInternal()
public int compareTo(ModulePatch o)
compareTo in interface Comparable<ModulePatch>Comparable.compareTo(java.lang.Object)Copyright © 2005–2016 Alfresco Software. All rights reserved.