org.wso2.carbon.device.mgt.mobile.dao.impl
Class MobileDeviceDAOImpl

java.lang.Object
  extended by org.wso2.carbon.device.mgt.mobile.dao.impl.MobileDeviceDAOImpl
All Implemented Interfaces:
MobileDeviceDAO

public class MobileDeviceDAOImpl
extends Object
implements MobileDeviceDAO

Implementation of MobileDeviceDAO.


Constructor Summary
MobileDeviceDAOImpl(DataSource dataSource)
           
 
Method Summary
 boolean addMobileDevice(MobileDevice mobileDevice)
          Adds a new MobileDevice to the MDM database.
 boolean deleteMobileDevice(String mblDeviceId)
          Deletes a given MobileDevice from MDM database.
 List<MobileDevice> getAllMobileDevices()
          Fetches all MobileDevices from MDM database.
 MobileDevice getMobileDevice(String mblDeviceId)
          Fetches a MobileDevice from MDM database.
 boolean updateMobileDevice(MobileDevice mobileDevice)
          Updates MobileDevice information in MDM database.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MobileDeviceDAOImpl

public MobileDeviceDAOImpl(DataSource dataSource)
Method Detail

getMobileDevice

public MobileDevice getMobileDevice(String mblDeviceId)
                             throws MobileDeviceManagementDAOException
Description copied from interface: MobileDeviceDAO
Fetches a MobileDevice from MDM database.

Specified by:
getMobileDevice in interface MobileDeviceDAO
Parameters:
mblDeviceId - Id of the Mobile-Device.
Returns:
MobileDevice corresponding to given device-id.
Throws:
MobileDeviceManagementDAOException

addMobileDevice

public boolean addMobileDevice(MobileDevice mobileDevice)
                        throws MobileDeviceManagementDAOException
Description copied from interface: MobileDeviceDAO
Adds a new MobileDevice to the MDM database.

Specified by:
addMobileDevice in interface MobileDeviceDAO
Parameters:
mobileDevice - MobileDevice to be added.
Returns:
The status of the operation.
Throws:
MobileDeviceManagementDAOException

updateMobileDevice

public boolean updateMobileDevice(MobileDevice mobileDevice)
                           throws MobileDeviceManagementDAOException
Description copied from interface: MobileDeviceDAO
Updates MobileDevice information in MDM database.

Specified by:
updateMobileDevice in interface MobileDeviceDAO
Parameters:
mobileDevice - MobileDevice to be updated.
Returns:
The status of the operation.
Throws:
MobileDeviceManagementDAOException

deleteMobileDevice

public boolean deleteMobileDevice(String mblDeviceId)
                           throws MobileDeviceManagementDAOException
Description copied from interface: MobileDeviceDAO
Deletes a given MobileDevice from MDM database.

Specified by:
deleteMobileDevice in interface MobileDeviceDAO
Parameters:
mblDeviceId - Id of MobileDevice to be deleted.
Returns:
The status of the operation.
Throws:
MobileDeviceManagementDAOException

getAllMobileDevices

public List<MobileDevice> getAllMobileDevices()
                                       throws MobileDeviceManagementDAOException
Description copied from interface: MobileDeviceDAO
Fetches all MobileDevices from MDM database.

Specified by:
getAllMobileDevices in interface MobileDeviceDAO
Returns:
List of MobileDevices.
Throws:
MobileDeviceManagementDAOException


Copyright © 2015 WSO2. All rights reserved.