Package com.openindex.openestate.tool.db
Class DbUpgradeHandlerImpl
- java.lang.Object
-
- com.openindex.openestate.tool.db.DbUpgradeHandlerImpl
-
- All Implemented Interfaces:
DbUpgradeHandler
- Direct Known Subclasses:
HSqlDbUpgradeHandler
public abstract class DbUpgradeHandlerImpl extends Object implements DbUpgradeHandler
DbUpgradeHandlerImpl.- Author:
- Andreas Rudolph
-
-
Constructor Summary
Constructors Constructor Description DbUpgradeHandlerImpl()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract long
getNewId(Connection c, String type, String oldId)
String
getOldId(Connection c, String type, long newId)
abstract String[]
getOldIds(Connection c, String type, long newId)
abstract void
install(Connection c)
abstract void
save(Connection c, String type, String oldId, long newId)
abstract void
uninstall(Connection c)
-
-
-
Method Detail
-
getNewId
public abstract long getNewId(Connection c, String type, String oldId) throws SQLException
- Specified by:
getNewId
in interfaceDbUpgradeHandler
- Throws:
SQLException
-
getOldId
public final String getOldId(Connection c, String type, long newId) throws SQLException
- Specified by:
getOldId
in interfaceDbUpgradeHandler
- Throws:
SQLException
-
getOldIds
public abstract String[] getOldIds(Connection c, String type, long newId) throws SQLException
- Specified by:
getOldIds
in interfaceDbUpgradeHandler
- Throws:
SQLException
-
install
public abstract void install(Connection c) throws SQLException
- Specified by:
install
in interfaceDbUpgradeHandler
- Throws:
SQLException
-
save
public abstract void save(Connection c, String type, String oldId, long newId) throws SQLException
- Specified by:
save
in interfaceDbUpgradeHandler
- Throws:
SQLException
-
uninstall
public abstract void uninstall(Connection c) throws SQLException
- Specified by:
uninstall
in interfaceDbUpgradeHandler
- Throws:
SQLException
-
-