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 int
PRIORITY_APP
static int
PRIORITY_PLUGIN
static int
PRIORITY_PLUGIN_RELATION
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
getDbVersion(Connection c, DbExtension dbExtension)
String
getId()
long
getLocalVersion()
String
getParentUpdateId(long version)
Long
getParentUpdateVersion(long version)
int
getPriority()
String
getUninstallQuery()
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)
-
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:
SQLException
IOException
-
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:
SQLException
IOException
-
update
void update(Connection c, AbstractDbDriver dbDriver, long version) throws SQLException, IOException
- Throws:
SQLException
IOException
-
updateFinish
void updateFinish(Connection c, AbstractDbDriver dbDriver, long version) throws SQLException, IOException
- Throws:
SQLException
IOException
-
updateFinished
void updateFinished(Connection c, AbstractDbDriver dbDriver, DbExtension dbExtension, long oldDbVersion, long newDbVersion) throws SQLException, IOException
- Throws:
SQLException
IOException
-
-