mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Fix overrides in DeviceDAO
This commit is contained in:
parent
7c0df33738
commit
caf548ac75
@ -18,18 +18,14 @@
|
|||||||
|
|
||||||
package io.entgra.device.mgt.core.device.mgt.core.dao.impl.device;
|
package io.entgra.device.mgt.core.device.mgt.core.dao.impl.device;
|
||||||
|
|
||||||
import org.apache.commons.lang.StringUtils;
|
|
||||||
import org.apache.commons.logging.Log;
|
import org.apache.commons.logging.Log;
|
||||||
import org.apache.commons.logging.LogFactory;
|
import org.apache.commons.logging.LogFactory;
|
||||||
import io.entgra.device.mgt.core.device.mgt.common.Count;
|
import io.entgra.device.mgt.core.device.mgt.common.Count;
|
||||||
import io.entgra.device.mgt.core.device.mgt.common.Device;
|
import io.entgra.device.mgt.core.device.mgt.common.Device;
|
||||||
import io.entgra.device.mgt.core.device.mgt.common.DeviceBilling;
|
|
||||||
import io.entgra.device.mgt.core.device.mgt.common.PaginationRequest;
|
import io.entgra.device.mgt.core.device.mgt.common.PaginationRequest;
|
||||||
import io.entgra.device.mgt.core.device.mgt.common.EnrolmentInfo;
|
import io.entgra.device.mgt.core.device.mgt.common.EnrolmentInfo;
|
||||||
import io.entgra.device.mgt.core.device.mgt.common.device.details.DeviceInfo;
|
import io.entgra.device.mgt.core.device.mgt.common.device.details.DeviceInfo;
|
||||||
import io.entgra.device.mgt.core.device.mgt.core.dao.DeviceManagementDAOException;
|
import io.entgra.device.mgt.core.device.mgt.core.dao.DeviceManagementDAOException;
|
||||||
import io.entgra.device.mgt.core.device.mgt.core.dao.DeviceManagementDAOFactory;
|
|
||||||
import io.entgra.device.mgt.core.device.mgt.core.dao.impl.AbstractDeviceDAOImpl;
|
|
||||||
import io.entgra.device.mgt.core.device.mgt.core.dao.util.DeviceManagementDAOUtil;
|
import io.entgra.device.mgt.core.device.mgt.core.dao.util.DeviceManagementDAOUtil;
|
||||||
import io.entgra.device.mgt.core.device.mgt.core.report.mgt.Constants;
|
import io.entgra.device.mgt.core.device.mgt.core.report.mgt.Constants;
|
||||||
|
|
||||||
@ -47,7 +43,7 @@ import java.util.Map;
|
|||||||
/**
|
/**
|
||||||
* This class holds the generic implementation of DeviceDAO which can be used to support ANSI db syntax.
|
* This class holds the generic implementation of DeviceDAO which can be used to support ANSI db syntax.
|
||||||
*/
|
*/
|
||||||
public class PostgreSQLDeviceDAOImpl extends AbstractDeviceDAOImpl {
|
public class PostgreSQLDeviceDAOImpl extends GenericDeviceDAOImpl {
|
||||||
|
|
||||||
private static final Log log = LogFactory.getLog(PostgreSQLDeviceDAOImpl.class);
|
private static final Log log = LogFactory.getLog(PostgreSQLDeviceDAOImpl.class);
|
||||||
|
|
||||||
@ -1300,7 +1296,4 @@ public class PostgreSQLDeviceDAOImpl extends AbstractDeviceDAOImpl {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private Connection getConnection() throws SQLException {
|
|
||||||
return DeviceManagementDAOFactory.getConnection();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -27,11 +27,7 @@ import org.apache.commons.logging.Log;
|
|||||||
import org.apache.commons.logging.LogFactory;
|
import org.apache.commons.logging.LogFactory;
|
||||||
import io.entgra.device.mgt.core.device.mgt.common.device.details.DeviceInfo;
|
import io.entgra.device.mgt.core.device.mgt.common.device.details.DeviceInfo;
|
||||||
import io.entgra.device.mgt.core.device.mgt.core.dao.DeviceManagementDAOException;
|
import io.entgra.device.mgt.core.device.mgt.core.dao.DeviceManagementDAOException;
|
||||||
import io.entgra.device.mgt.core.device.mgt.core.dao.DeviceManagementDAOFactory;
|
|
||||||
import io.entgra.device.mgt.core.device.mgt.core.dao.impl.AbstractDeviceDAOImpl;
|
|
||||||
import io.entgra.device.mgt.core.device.mgt.core.dao.util.DeviceManagementDAOUtil;
|
import io.entgra.device.mgt.core.device.mgt.core.dao.util.DeviceManagementDAOUtil;
|
||||||
import io.entgra.device.mgt.core.device.mgt.common.geo.service.GeoCluster;
|
|
||||||
import io.entgra.device.mgt.core.device.mgt.common.geo.service.GeoCoordinate;
|
|
||||||
import io.entgra.device.mgt.core.device.mgt.core.report.mgt.Constants;
|
import io.entgra.device.mgt.core.device.mgt.core.report.mgt.Constants;
|
||||||
|
|
||||||
import java.sql.Connection;
|
import java.sql.Connection;
|
||||||
@ -48,7 +44,7 @@ import java.util.Map;
|
|||||||
/**
|
/**
|
||||||
* This class holds the generic implementation of DeviceDAO which can be used to support ANSI db syntax.
|
* This class holds the generic implementation of DeviceDAO which can be used to support ANSI db syntax.
|
||||||
*/
|
*/
|
||||||
public class SQLServerDeviceDAOImpl extends AbstractDeviceDAOImpl {
|
public class SQLServerDeviceDAOImpl extends GenericDeviceDAOImpl {
|
||||||
|
|
||||||
private static final Log log = LogFactory.getLog(SQLServerDeviceDAOImpl.class);
|
private static final Log log = LogFactory.getLog(SQLServerDeviceDAOImpl.class);
|
||||||
|
|
||||||
@ -1117,10 +1113,6 @@ public class SQLServerDeviceDAOImpl extends AbstractDeviceDAOImpl {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private Connection getConnection() throws SQLException {
|
|
||||||
return DeviceManagementDAOFactory.getConnection();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<Device> getDevicesByDuration(PaginationRequest request, int tenantId,
|
public List<Device> getDevicesByDuration(PaginationRequest request, int tenantId,
|
||||||
String fromDate, String toDate)
|
String fromDate, String toDate)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user