isPrepared = false;
} else {
try {
- prep.setLong(1, (Long) (rowData.get(0)));
- prep.setFloat(2, (Float) (rowData.get(1)));
- prep.setFloat(3, (Float) (rowData.get(2)));
- prep.setInt(4, (Integer) (rowData.get(3)));
- prep.setLong(5, (Long) (rowData.get(4)));
- prep.setLong(6, (Long) (rowData.get(5)));
- prep.setInt(7, (Integer) (rowData.get(6)));
- prep.setInt(8, (Integer) (rowData.get(7)));
- prep.setInt(9, (Integer) (rowData.get(8)));
- prep.setInt(10, (Integer) (rowData.get(9)));
- prep.setLong(11, (Long) (rowData.get(10)));
- prep.setLong(12, (Long) (rowData.get(11)));
- prep.setInt(13, (Integer) (rowData.get(12)));
- prep.setInt(14, (Integer) (rowData.get(13)));
- prep.setInt(15, (Integer) (rowData.get(14)));
- prep.setInt(16, (Integer) (rowData.get(15)));
- prep.setInt(17, (Integer) (rowData.get(16)));
- prep.setInt(18, (Integer) (rowData.get(17)));
- prep.setInt(19, (Integer) (rowData.get(18)));
- prep.setInt(20, (Integer) (rowData.get(19)));
- prep.setInt(21, (Integer) (rowData.get(20)));
- prep.setInt(22, (Integer) (rowData.get(21)));
- prep.setInt(23, (Integer) (rowData.get(22)));
- prep.setInt(24, (Integer) (rowData.get(23)));
- prep.setInt(25, (Integer) (rowData.get(24)));
- prep.setInt(26, (Integer) (rowData.get(25)));
- prep.setInt(27, (Integer) (rowData.get(26)));
- prep.setInt(28, (Integer) (rowData.get(27)));
- prep.setInt(29, (Integer) (rowData.get(28)));
- prep.setInt(30, (Integer) (rowData.get(29)));
- prep.setInt(31, (Integer) (rowData.get(30)));
- prep.setInt(32, (Integer) (rowData.get(31)));
- prep.setInt(33, (Integer) (rowData.get(32)));
+ prep.setLong(1, (Long) (rowData.get(COLUMN.TIME.ordinal())));
+ prep.setFloat(2, (Float) (rowData.get(COLUMN.CPU_LOAD_APP.ordinal())));
+ prep.setFloat(3, (Float) (rowData.get(COLUMN.CPU_LOAD_TOTAL.ordinal())));
+ prep.setInt(4, (Integer) (rowData.get(COLUMN.PROCESS_COUNT.ordinal())));
+ prep.setLong(5, (Long) (rowData.get(COLUMN.HEAP_ALLOCATION_TOTAL.ordinal())));
+ prep.setLong(6, (Long) (rowData.get(COLUMN.HEAP_ALLOCATION_APP.ordinal())));
+ prep.setInt(7, (Integer) (rowData.get(COLUMN.MEMORY_VIRTUAL.ordinal())));
+ prep.setInt(8, (Integer) (rowData.get(COLUMN.MEMORY_RESIDENT.ordinal())));
+ prep.setInt(9, (Integer) (rowData.get(COLUMN.MEMORY_SHARED.ordinal())));
+ prep.setInt(10, (Integer) (rowData.get(COLUMN.MEMORY_PSS.ordinal())));
+ prep.setLong(11, (Long) (rowData.get(COLUMN.MEMORY_TOTAL_SYSTEM.ordinal())));
+ prep.setLong(12, (Long) (rowData.get(COLUMN.MEMORY_USAGE_SYSTEM.ordinal())));
+ prep.setInt(13, (Integer) (rowData.get(COLUMN.NETWORK_SIZE_SEND.ordinal())));
+ prep.setInt(14, (Integer) (rowData.get(COLUMN.NETWORK_SIZE_RECEIVE.ordinal())));
+ prep.setInt(15, (Integer) (rowData.get(COLUMN.DEVICE_STATUS_WIFI.ordinal())));
+ prep.setInt(16, (Integer) (rowData.get(COLUMN.DEVICE_STATUS_BLUETOOTH.ordinal())));
+ prep.setInt(17, (Integer) (rowData.get(COLUMN.DEVICE_STATUS_GPS.ordinal())));
+ prep.setInt(18, (Integer) (rowData.get(COLUMN.DEVICE_STATUS_BRIGHTNESS.ordinal())));
+ prep.setInt(19, (Integer) (rowData.get(COLUMN.DEVICE_STATUS_DNET.ordinal())));
+ prep.setInt(20, (Integer) (rowData.get(COLUMN.DEVICE_STATUS_CAMERA.ordinal())));
+ prep.setInt(21, (Integer) (rowData.get(COLUMN.DEVICE_STATUS_SOUND.ordinal())));
+ prep.setInt(22, (Integer) (rowData.get(COLUMN.DEVICE_STATUS_AUDIO.ordinal())));
+ prep.setInt(23, (Integer) (rowData.get(COLUMN.DEVICE_STATUS_VIBRATION.ordinal())));
+ prep.setInt(24, (Integer) (rowData.get(COLUMN.DEVICE_STATUS_VOLTAGE.ordinal())));
+ prep.setInt(25, (Integer) (rowData.get(COLUMN.DEVICE_STATUS_RSSI.ordinal())));
+ prep.setInt(26, (Integer) (rowData.get(COLUMN.DEVICE_STATUS_VIDEO.ordinal())));
+ prep.setInt(27, (Integer) (rowData.get(COLUMN.DEVICE_STATUS_CALL.ordinal())));
+ prep.setInt(28, (Integer) (rowData.get(COLUMN.DISK_TOTAL_USAGE.ordinal())));
+ prep.setInt(29, (Integer) (rowData.get(COLUMN.DISK_IO_READ_SIZE.ordinal())));
+ prep.setInt(30, (Integer) (rowData.get(COLUMN.DISK_IO_READ_SECTOR.ordinal())));
+ prep.setInt(31, (Integer) (rowData.get(COLUMN.DISK_IO_WRITE_SIZE.ordinal())));
+ prep.setInt(32, (Integer) (rowData.get(COLUMN.DISK_IO_WRITE_SECTOR.ordinal())));
+ prep.setInt(33, (Integer) (rowData.get(COLUMN.ENERGY_USAGE.ordinal())));
} catch (SQLException e) {
e.printStackTrace();
isPrepared = false;
isPrepared = false;
} else {
try {
- prep.setLong(1, (Long) (rowData.get(0)));
- prep.setInt(2, (Integer) (rowData.get(1)));
- prep.setInt(3, (Integer) (rowData.get(2)));
- prep.setInt(4, (Integer) (rowData.get(3)));
- prep.setInt(5, (Integer) (rowData.get(4)));
- prep.setString(6, (String) (rowData.get(5)));
- prep.setInt(7, (Integer) (rowData.get(6)));
+ prep.setLong(1, (Long) (rowData.get(COLUMN.TIME.ordinal())));
+ prep.setInt(2, (Integer) (rowData.get(COLUMN.EVENT_TYPE.ordinal())));
+ prep.setInt(3, (Integer) (rowData.get(COLUMN.DETAIL_TYPE.ordinal())));
+ prep.setInt(4, (Integer) (rowData.get(COLUMN.POINT_X.ordinal())));
+ prep.setInt(5, (Integer) (rowData.get(COLUMN.POINT_Y.ordinal())));
+ prep.setString(6, (String) (rowData.get(COLUMN.INFO_INTEGER.ordinal())));
+ prep.setInt(7, (Integer) (rowData.get(COLUMN.INFO_INTEGER.ordinal())));
} catch (SQLException e) {
e.printStackTrace();
isPrepared = false;