Package com.openindex.openestate.tool.db
Interface DbUpdateHandler
-
- All Superinterfaces:
Comparable<DbUpdateHandler>
- All Known Implementing Classes:
DbUpdateHandlerImpl,HSqlDbUpdateHandler
public interface DbUpdateHandler extends Comparable<DbUpdateHandler>
DbUpdateHandler.- Author:
- Andreas Rudolph
-
-
Field Summary
Fields Modifier and Type Field Description static intPRIORITY_APPstatic intPRIORITY_PLUGINstatic intPRIORITY_PLUGIN_RELATION
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetDbVersion(Connection c, DbExtension dbExtension)StringgetId()longgetLocalVersion()StringgetParentUpdateId(long version)LonggetParentUpdateVersion(long version)intgetPriority()StringgetUninstallQuery()voidregister(Connection c, AbstractDbDriver dbDriver, DbExtension dbExtension, long version)voidupdate(Connection c, AbstractDbDriver dbDriver, long version)voidupdateFinish(Connection c, AbstractDbDriver dbDriver, long version)voidupdateFinished(Connection c, AbstractDbDriver dbDriver, DbExtension dbExtension, long oldDbVersion, long newDbVersion)-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Field Detail
-
PRIORITY_APP
static final int PRIORITY_APP
- See Also:
- Constant Field Values
-
PRIORITY_PLUGIN
static final int PRIORITY_PLUGIN
- See Also:
- Constant Field Values
-
PRIORITY_PLUGIN_RELATION
static final int PRIORITY_PLUGIN_RELATION
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDbVersion
long getDbVersion(Connection c, DbExtension dbExtension) throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
getLocalVersion
long getLocalVersion()
-
getId
String getId()
-
getParentUpdateId
String getParentUpdateId(long version)
-
getParentUpdateVersion
Long getParentUpdateVersion(long version)
-
getPriority
int getPriority()
-
getUninstallQuery
String getUninstallQuery()
-
register
void register(Connection c, AbstractDbDriver dbDriver, DbExtension dbExtension, long version) throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
update
void update(Connection c, AbstractDbDriver dbDriver, long version) throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
updateFinish
void updateFinish(Connection c, AbstractDbDriver dbDriver, long version) throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
updateFinished
void updateFinished(Connection c, AbstractDbDriver dbDriver, DbExtension dbExtension, long oldDbVersion, long newDbVersion) throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
-