|
|
@ -77,7 +77,7 @@ public class MobileDeviceOperationMappingDAOImpl implements MobileDeviceOperatio
|
|
|
|
String msg = "Error occurred while adding device id - '" +
|
|
|
|
String msg = "Error occurred while adding device id - '" +
|
|
|
|
mblDeviceOperationMapping.getDeviceId() + " and operation id - " +
|
|
|
|
mblDeviceOperationMapping.getDeviceId() + " and operation id - " +
|
|
|
|
mblDeviceOperationMapping.getOperationId() +
|
|
|
|
mblDeviceOperationMapping.getOperationId() +
|
|
|
|
" to mapping table AD_DEVICE_OPERATION";
|
|
|
|
" to mapping table AD_DEVICE_OPERATION_MAPPING";
|
|
|
|
log.error(msg, e);
|
|
|
|
log.error(msg, e);
|
|
|
|
throw new MobileDeviceManagementDAOException(msg, e);
|
|
|
|
throw new MobileDeviceManagementDAOException(msg, e);
|
|
|
|
} finally {
|
|
|
|
} finally {
|
|
|
@ -114,7 +114,7 @@ public class MobileDeviceOperationMappingDAOImpl implements MobileDeviceOperatio
|
|
|
|
} catch (SQLException e) {
|
|
|
|
} catch (SQLException e) {
|
|
|
|
String msg = "Error occurred while updating device id - '" +
|
|
|
|
String msg = "Error occurred while updating device id - '" +
|
|
|
|
mblDeviceOperation.getDeviceId() + " and operation id - " +
|
|
|
|
mblDeviceOperation.getDeviceId() + " and operation id - " +
|
|
|
|
mblDeviceOperation.getOperationId() + " in table MBL_DEVICE_OPERATION";
|
|
|
|
mblDeviceOperation.getOperationId() + " in table AD_DEVICE_OPERATION_MAPPING";
|
|
|
|
log.error(msg, e);
|
|
|
|
log.error(msg, e);
|
|
|
|
throw new MobileDeviceManagementDAOException(msg, e);
|
|
|
|
throw new MobileDeviceManagementDAOException(msg, e);
|
|
|
|
} finally {
|
|
|
|
} finally {
|
|
|
@ -151,7 +151,7 @@ public class MobileDeviceOperationMappingDAOImpl implements MobileDeviceOperatio
|
|
|
|
String msg =
|
|
|
|
String msg =
|
|
|
|
"Error occurred while updating the Status of operation to in-progress of device id - '" +
|
|
|
|
"Error occurred while updating the Status of operation to in-progress of device id - '" +
|
|
|
|
mblDeviceId + " and operation id - " +
|
|
|
|
mblDeviceId + " and operation id - " +
|
|
|
|
operationId + " in table MBL_DEVICE_OPERATION";
|
|
|
|
operationId + " in table AD_DEVICE_OPERATION_MAPPING";
|
|
|
|
log.error(msg, e);
|
|
|
|
log.error(msg, e);
|
|
|
|
throw new MobileDeviceManagementDAOException(msg, e);
|
|
|
|
throw new MobileDeviceManagementDAOException(msg, e);
|
|
|
|
} finally {
|
|
|
|
} finally {
|
|
|
@ -189,7 +189,7 @@ public class MobileDeviceOperationMappingDAOImpl implements MobileDeviceOperatio
|
|
|
|
String msg =
|
|
|
|
String msg =
|
|
|
|
"Error occurred while updating the Status of operation to completed of device id - '" +
|
|
|
|
"Error occurred while updating the Status of operation to completed of device id - '" +
|
|
|
|
mblDeviceId + " and operation id - " +
|
|
|
|
mblDeviceId + " and operation id - " +
|
|
|
|
operationId + " in table MBL_DEVICE_OPERATION";
|
|
|
|
operationId + " in table AD_DEVICE_OPERATION_MAPPING";
|
|
|
|
log.error(msg, e);
|
|
|
|
log.error(msg, e);
|
|
|
|
throw new MobileDeviceManagementDAOException(msg, e);
|
|
|
|
throw new MobileDeviceManagementDAOException(msg, e);
|
|
|
|
} finally {
|
|
|
|
} finally {
|
|
|
@ -280,7 +280,7 @@ public class MobileDeviceOperationMappingDAOImpl implements MobileDeviceOperatio
|
|
|
|
PreparedStatement stmt = null;
|
|
|
|
PreparedStatement stmt = null;
|
|
|
|
MobileDeviceOperationMapping mblDeviceOperation;
|
|
|
|
MobileDeviceOperationMapping mblDeviceOperation;
|
|
|
|
List<MobileDeviceOperationMapping> mblDeviceOperations =
|
|
|
|
List<MobileDeviceOperationMapping> mblDeviceOperations =
|
|
|
|
new ArrayList<MobileDeviceOperationMapping>();
|
|
|
|
new ArrayList<>();
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
conn = this.getConnection();
|
|
|
|
conn = this.getConnection();
|
|
|
|
String selectDBQuery =
|
|
|
|
String selectDBQuery =
|
|
|
@ -303,7 +303,7 @@ public class MobileDeviceOperationMappingDAOImpl implements MobileDeviceOperatio
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} catch (SQLException e) {
|
|
|
|
} catch (SQLException e) {
|
|
|
|
String msg =
|
|
|
|
String msg =
|
|
|
|
"Error occurred while fetching mapping table MBL_DEVICE_OPERATION entries of " +
|
|
|
|
"Error occurred while fetching mapping table AD_DEVICE_OPERATION_MAPPING entries of " +
|
|
|
|
"device id - '" + mblDeviceId;
|
|
|
|
"device id - '" + mblDeviceId;
|
|
|
|
log.error(msg, e);
|
|
|
|
log.error(msg, e);
|
|
|
|
throw new MobileDeviceManagementDAOException(msg, e);
|
|
|
|
throw new MobileDeviceManagementDAOException(msg, e);
|
|
|
@ -321,7 +321,7 @@ public class MobileDeviceOperationMappingDAOImpl implements MobileDeviceOperatio
|
|
|
|
PreparedStatement stmt = null;
|
|
|
|
PreparedStatement stmt = null;
|
|
|
|
MobileDeviceOperationMapping mblDeviceOperation = null;
|
|
|
|
MobileDeviceOperationMapping mblDeviceOperation = null;
|
|
|
|
List<MobileDeviceOperationMapping> mblDeviceOperations =
|
|
|
|
List<MobileDeviceOperationMapping> mblDeviceOperations =
|
|
|
|
new ArrayList<MobileDeviceOperationMapping>();
|
|
|
|
new ArrayList<>();
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
|
|
|
|
|
|
|
|
conn = this.getConnection();
|
|
|
|
conn = this.getConnection();
|
|
|
|