Class UpgradeAdapter
- java.lang.Object
-
- com.openindex.openestate.tool.extensions.UpgradeAdapter
-
- All Implemented Interfaces:
BasicExtension,UpgradeExtension,org.pf4j.ExtensionPoint
- Direct Known Subclasses:
AgencyCalendarUpgradeExtension,AgencyContactsUpgradeExtension,AgencyUpgradeExtension,CalendarUpgradeExtension,ContactsCalendarUpgradeExtension,ContactsUpgradeExtension,MailUpgradeExtension,NewsUpgradeExtension
public abstract class UpgradeAdapter extends Object implements UpgradeExtension
UpgradeExtensionAdapter.- Author:
- Andreas Rudolph
-
-
Constructor Summary
Constructors Constructor Description UpgradeAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]getRequiredPluginIds()protected voidsetMessage(String msg, ImmoToolTask.Callback callback)voidupgrade(Connection c, AbstractDbDriver dbDriver, DbExtension dbExtension, DbUser user, File importDir, Properties projectProps, ImmoToolTask.Callback callback)This method is executed, when an older database is migrated.voidupgradeFinished(Connection c, AbstractDbDriver dbDriver, DbExtension dbExtension, DbUser user, File importDir, ImmoToolTask.Callback callback)This method is executed, when the upgrade process is finished.
-
-
-
Method Detail
-
getRequiredPluginIds
public String[] getRequiredPluginIds()
- Specified by:
getRequiredPluginIdsin interfaceBasicExtension
-
setMessage
protected void setMessage(String msg, ImmoToolTask.Callback callback)
-
upgrade
public void upgrade(Connection c, AbstractDbDriver dbDriver, DbExtension dbExtension, DbUser user, File importDir, Properties projectProps, ImmoToolTask.Callback callback) throws SQLException, IOException
Description copied from interface:UpgradeExtensionThis method is executed, when an older database is migrated.- Specified by:
upgradein interfaceUpgradeExtension- Throws:
SQLExceptionIOException
-
upgradeFinished
public void upgradeFinished(Connection c, AbstractDbDriver dbDriver, DbExtension dbExtension, DbUser user, File importDir, ImmoToolTask.Callback callback) throws SQLException, IOException
Description copied from interface:UpgradeExtensionThis method is executed, when the upgrade process is finished.- Specified by:
upgradeFinishedin interfaceUpgradeExtension- Throws:
SQLExceptionIOException
-
-