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 longgetNewId(Connection c, String type, String oldId)StringgetOldId(Connection c, String type, long newId)abstract String[]getOldIds(Connection c, String type, long newId)abstract voidinstall(Connection c)abstract voidsave(Connection c, String type, String oldId, long newId)abstract voiduninstall(Connection c)
-
-
-
Method Detail
-
getNewId
public abstract long getNewId(Connection c, String type, String oldId) throws SQLException
- Specified by:
getNewIdin interfaceDbUpgradeHandler- Throws:
SQLException
-
getOldId
public final String getOldId(Connection c, String type, long newId) throws SQLException
- Specified by:
getOldIdin interfaceDbUpgradeHandler- Throws:
SQLException
-
getOldIds
public abstract String[] getOldIds(Connection c, String type, long newId) throws SQLException
- Specified by:
getOldIdsin interfaceDbUpgradeHandler- Throws:
SQLException
-
install
public abstract void install(Connection c) throws SQLException
- Specified by:
installin interfaceDbUpgradeHandler- Throws:
SQLException
-
save
public abstract void save(Connection c, String type, String oldId, long newId) throws SQLException
- Specified by:
savein interfaceDbUpgradeHandler- Throws:
SQLException
-
uninstall
public abstract void uninstall(Connection c) throws SQLException
- Specified by:
uninstallin interfaceDbUpgradeHandler- Throws:
SQLException
-
-