public abstract class DbUpdateHandlerImpl extends Object implements DbUpdateHandler
Modifier and Type | Class and Description |
---|---|
static class |
DbUpdateHandlerImpl.Type |
PRIORITY_APP, PRIORITY_PLUGIN, PRIORITY_PLUGIN_RELATION
Constructor and Description |
---|
DbUpdateHandlerImpl(String id,
DbUpdateHandlerImpl.Type type,
long localVersion,
String uninstallQuery,
String resourcePath,
ClassLoader classLoader,
AbstractDbUpdateListener listener) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(DbUpdateHandler o) |
boolean |
equals(Object o) |
abstract void |
execute(Connection c,
String file) |
ClassLoader |
getClassLoader() |
long |
getDbVersion(Connection c,
DbExtension dbExtension) |
String |
getId() |
long |
getLocalVersion() |
String |
getParentUpdateId(long version) |
Long |
getParentUpdateVersion(long version) |
int |
getPriority() |
String |
getResourcePath() |
DbUpdateHandlerImpl.Type |
getType() |
String |
getUninstallQuery() |
int |
hashCode() |
protected Properties |
loadSettings() |
void |
register(Connection c,
AbstractDbDriver dbDriver,
DbExtension dbExtension,
long version) |
void |
update(Connection c,
AbstractDbDriver dbDriver,
long version) |
void |
updateFinish(Connection c,
AbstractDbDriver dbDriver,
long version) |
void |
updateFinished(Connection c,
AbstractDbDriver dbDriver,
DbExtension dbExtension,
long oldDbVersion,
long newDbVersion) |
public DbUpdateHandlerImpl(String id, DbUpdateHandlerImpl.Type type, long localVersion, String uninstallQuery, String resourcePath, ClassLoader classLoader, AbstractDbUpdateListener listener)
public int compareTo(DbUpdateHandler o)
compareTo
in interface Comparable<DbUpdateHandler>
public abstract void execute(Connection c, String file) throws SQLException, IOException
SQLException
IOException
public final ClassLoader getClassLoader()
public final long getDbVersion(Connection c, DbExtension dbExtension) throws SQLException, IOException
getDbVersion
in interface DbUpdateHandler
SQLException
IOException
public final long getLocalVersion()
getLocalVersion
in interface DbUpdateHandler
public final String getId()
getId
in interface DbUpdateHandler
public final String getParentUpdateId(long version)
getParentUpdateId
in interface DbUpdateHandler
public final Long getParentUpdateVersion(long version)
getParentUpdateVersion
in interface DbUpdateHandler
public final int getPriority()
getPriority
in interface DbUpdateHandler
public final String getResourcePath()
public final DbUpdateHandlerImpl.Type getType()
public final String getUninstallQuery()
getUninstallQuery
in interface DbUpdateHandler
protected Properties loadSettings() throws IOException
IOException
public void register(Connection c, AbstractDbDriver dbDriver, DbExtension dbExtension, long version) throws SQLException, IOException
register
in interface DbUpdateHandler
SQLException
IOException
public void update(Connection c, AbstractDbDriver dbDriver, long version) throws SQLException, IOException
update
in interface DbUpdateHandler
SQLException
IOException
public void updateFinish(Connection c, AbstractDbDriver dbDriver, long version) throws SQLException, IOException
updateFinish
in interface DbUpdateHandler
SQLException
IOException
public void updateFinished(Connection c, AbstractDbDriver dbDriver, DbExtension dbExtension, long oldDbVersion, long newDbVersion) throws SQLException, IOException
updateFinished
in interface DbUpdateHandler
SQLException
IOException
Copyright © 2015 OpenEstate. All rights reserved.