mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Fixing issue in SQL Result retrieval on getOperationsByDeviceAndStatus
This commit is contained in:
parent
90f8f4aab6
commit
df81bef812
@ -134,10 +134,10 @@ public class CommandOperationDAOImpl extends OperationDAOImpl {
|
|||||||
rs = stmt.executeQuery();
|
rs = stmt.executeQuery();
|
||||||
while (rs.next()) {
|
while (rs.next()) {
|
||||||
commandOperation = new CommandOperation();
|
commandOperation = new CommandOperation();
|
||||||
|
commandOperation.setId(rs.getInt("ID"));
|
||||||
commandOperation.setEnabled(rs.getInt("ENABLED") != 0);
|
commandOperation.setEnabled(rs.getInt("ENABLED") != 0);
|
||||||
commandOperation.setId(rs.getInt("OPERATION_ID"));
|
|
||||||
commandOperation.setType(Operation.Type.valueOf(rs.getString("TYPE")));
|
|
||||||
commandOperation.setStatus(Operation.Status.valueOf(rs.getString("STATUS")));
|
commandOperation.setStatus(Operation.Status.valueOf(rs.getString("STATUS")));
|
||||||
|
commandOperation.setType(Operation.Type.valueOf(rs.getString("TYPE")));
|
||||||
commandOperation.setCreatedTimeStamp(rs.getString("CREATED_TIMESTAMP"));
|
commandOperation.setCreatedTimeStamp(rs.getString("CREATED_TIMESTAMP"));
|
||||||
commandOperation.setReceivedTimeStamp(rs.getString("RECEIVED_TIMESTAMP"));
|
commandOperation.setReceivedTimeStamp(rs.getString("RECEIVED_TIMESTAMP"));
|
||||||
commandOperation.setCode(rs.getString("OPERATION_CODE"));
|
commandOperation.setCode(rs.getString("OPERATION_CODE"));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user