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 void
setMessage(String msg, ImmoToolTask.Callback callback)
void
upgrade(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.void
upgradeFinished(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:
getRequiredPluginIds
in 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:UpgradeExtension
This method is executed, when an older database is migrated.- Specified by:
upgrade
in interfaceUpgradeExtension
- Throws:
SQLException
IOException
-
upgradeFinished
public void upgradeFinished(Connection c, AbstractDbDriver dbDriver, DbExtension dbExtension, DbUser user, File importDir, ImmoToolTask.Callback callback) throws SQLException, IOException
Description copied from interface:UpgradeExtension
This method is executed, when the upgrade process is finished.- Specified by:
upgradeFinished
in interfaceUpgradeExtension
- Throws:
SQLException
IOException
-
-