returnrawQueryGetDto("SELECT * FROM t_spp_device WHERE spp_device_id = ?",newString[]{""+sppDeviceId},SppDeviceDto.class);
}
/**
* SPP通信端末IDを全て取得
* @return
*/
publicList<Integer>getSppDeviceIdList(){
returnrawQueryGetIntegerList("SELECT spp_device_id FROM t_spp_device ORDER BY spp_device_id DESC",null);
}
/**
* SPP通信端末でペアリング済みデータ取得
* @return
*/
publicList<SppDeviceDto>getPairingDeviceList(){
returnrawQueryGetDtoList("SELECT * FROM t_spp_device WHERE pairing_device_name is NOT NULL AND pairing_device_address is NOT NULL order by spp_device_id DESC",null,SppDeviceDto.class);
}
/**
* SPP通信端末の更新処理
* @param dto
* @return
*/
publicbooleanupdateSppDevice(SppDeviceDtodto){
longcount=update("UPDATE t_spp_device SET spp_device_name=?, data_start_index=?, data_end_index=?, pairing_device_name=?, pairing_device_address=? WHERE spp_device_id=?",dto.getUpdateValues());