Renamed DB Upgrade classes
This commit is contained in:
parent
fa78d02778
commit
5dae45bb0b
6 changed files with 20 additions and 25 deletions
|
|
@ -1,22 +1,17 @@
|
|||
package se.hal.plugin.zigbee.db;
|
||||
|
||||
import se.hal.HalContext;
|
||||
import se.hal.intf.HalDatabaseUpgrade;
|
||||
import zutil.db.DBConnection;
|
||||
import zutil.log.LogUtil;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.logging.Logger;
|
||||
import se.hal.intf.HalDatabaseUpgrader;
|
||||
|
||||
/**
|
||||
* The DB upgrade class for Hal-Zigbee plugin
|
||||
*/
|
||||
public class ZigbeeHalDatabaseUpgrade extends HalDatabaseUpgrade {
|
||||
public class ZigbeeHalDatabaseUpgrader extends HalDatabaseUpgrader {
|
||||
private static final int REFERENCE_DB_VERSION = 1;
|
||||
private static final String REFERENCE_DB_PATH = HalContext.RESOURCE_ROOT + "/resource/hal-zigbee-reference.db";
|
||||
|
||||
|
||||
public ZigbeeHalDatabaseUpgrade() {
|
||||
public ZigbeeHalDatabaseUpgrader() {
|
||||
super(REFERENCE_DB_VERSION, REFERENCE_DB_PATH);
|
||||
}
|
||||
|
||||
|
|
@ -3,7 +3,7 @@
|
|||
"name": "Hal-Zigbee",
|
||||
"description": "A Zigbee plugin for directly connecting to a controller device over serial port.",
|
||||
"interfaces": [
|
||||
{"se.hal.intf.HalDatabaseUpgrade": "se.hal.plugin.zigbee.db.ZigbeeHalDatabaseUpgrade"},
|
||||
{"se.hal.intf.HalDatabaseUpgrader": "se.hal.plugin.zigbee.db.ZigbeeHalDatabaseUpgrader"},
|
||||
|
||||
{"se.hal.intf.HalEventConfig": "se.hal.plugin.zigbee.device.ZigbeeOnOffConfig"},
|
||||
{"se.hal.intf.HalSensorConfig": "se.hal.plugin.zigbee.device.ZigbeeHumidityConfig"},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue