org.wso2.carbon.device.mgt.mobile.dao
Interface MobileDeviceDAO

All Known Implementing Classes:
MobileDeviceDAOImpl

public interface MobileDeviceDAO

This class represents the key operations associated with persisting mobile-device related information.


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.
 

Method Detail

getMobileDevice

MobileDevice getMobileDevice(String mblDeviceId)
                             throws MobileDeviceManagementDAOException
Fetches a MobileDevice from MDM database.

Parameters:
mblDeviceId - Id of the Mobile-Device.
Returns:
MobileDevice corresponding to given device-id.
Throws:
MobileDeviceManagementDAOException

addMobileDevice

boolean addMobileDevice(MobileDevice mobileDevice)
                        throws MobileDeviceManagementDAOException
Adds a new MobileDevice to the MDM database.

Parameters:
mobileDevice - MobileDevice to be added.
Returns:
The status of the operation.
Throws:
MobileDeviceManagementDAOException

updateMobileDevice

boolean updateMobileDevice(MobileDevice mobileDevice)
                           throws MobileDeviceManagementDAOException
Updates MobileDevice information in MDM database.

Parameters:
mobileDevice - MobileDevice to be updated.
Returns:
The status of the operation.
Throws:
MobileDeviceManagementDAOException

deleteMobileDevice

boolean deleteMobileDevice(String mblDeviceId)
                           throws MobileDeviceManagementDAOException
Deletes a given MobileDevice from MDM database.

Parameters:
mblDeviceId - Id of MobileDevice to be deleted.
Returns:
The status of the operation.
Throws:
MobileDeviceManagementDAOException

getAllMobileDevices

List<MobileDevice> getAllMobileDevices()
                                       throws MobileDeviceManagementDAOException
Fetches all MobileDevices from MDM database.

Returns:
List of MobileDevices.
Throws:
MobileDeviceManagementDAOException


Copyright © 2015 WSO2. All rights reserved.