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
SQLExceptionIOExceptionpublic final ClassLoader getClassLoader()
public final long getDbVersion(Connection c, DbExtension dbExtension) throws SQLException, IOException
getDbVersion in interface DbUpdateHandlerSQLExceptionIOExceptionpublic final long getLocalVersion()
getLocalVersion in interface DbUpdateHandlerpublic final String getId()
getId in interface DbUpdateHandlerpublic final String getParentUpdateId(long version)
getParentUpdateId in interface DbUpdateHandlerpublic final Long getParentUpdateVersion(long version)
getParentUpdateVersion in interface DbUpdateHandlerpublic final int getPriority()
getPriority in interface DbUpdateHandlerpublic final String getResourcePath()
public final DbUpdateHandlerImpl.Type getType()
public final String getUninstallQuery()
getUninstallQuery in interface DbUpdateHandlerprotected Properties loadSettings() throws IOException
IOExceptionpublic void register(Connection c, AbstractDbDriver dbDriver, DbExtension dbExtension, long version) throws SQLException, IOException
register in interface DbUpdateHandlerSQLExceptionIOExceptionpublic void update(Connection c, AbstractDbDriver dbDriver, long version) throws SQLException, IOException
update in interface DbUpdateHandlerSQLExceptionIOExceptionpublic void updateFinish(Connection c, AbstractDbDriver dbDriver, long version) throws SQLException, IOException
updateFinish in interface DbUpdateHandlerSQLExceptionIOExceptionpublic void updateFinished(Connection c, AbstractDbDriver dbDriver, DbExtension dbExtension, long oldDbVersion, long newDbVersion) throws SQLException, IOException
updateFinished in interface DbUpdateHandlerSQLExceptionIOExceptionCopyright © 2015 OpenEstate. All rights reserved.