|
|
@ -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();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|