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

All Known Implementing Classes:
MobileOperationDAOImpl

public interface MobileOperationDAO

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


Method Summary
 int addMobileOperation(MobileOperation mblOperation)
          Adds a new Mobile operation to the MobileOperation table.
 boolean deleteMobileOperation(int mblOperationId)
          Deletes a given MobileOperation from MobileOperation table.
 MobileOperation getMobileOperation(int mblOperationId)
          Retrieve a MobileOperation from MobileOperation table.
 boolean updateMobileOperation(MobileOperation mblOperation)
          Updates a Mobile operation in the MobileOperation table.
 

Method Detail

addMobileOperation

int addMobileOperation(MobileOperation mblOperation)
                       throws MobileDeviceManagementDAOException
Adds a new Mobile operation to the MobileOperation table.

Parameters:
mblOperation - MobileOperation object that holds data related to the operation to be inserted.
Returns:
The id of the inserted record, if the insertion was unsuccessful -1 is returned.
Throws:
MobileDeviceManagementDAOException

updateMobileOperation

boolean updateMobileOperation(MobileOperation mblOperation)
                              throws MobileDeviceManagementDAOException
Updates a Mobile operation in the MobileOperation table.

Parameters:
mblOperation - MobileOperation object that holds data has to be updated.
Returns:
The status of the operation.
Throws:
MobileDeviceManagementDAOException

deleteMobileOperation

boolean deleteMobileOperation(int mblOperationId)
                              throws MobileDeviceManagementDAOException
Deletes a given MobileOperation from MobileOperation table.

Parameters:
mblOperationId - Operation code of the MobileOperation to be deleted.
Returns:
The status of the operation.
Throws:
MobileDeviceManagementDAOException

getMobileOperation

MobileOperation getMobileOperation(int mblOperationId)
                                   throws MobileDeviceManagementDAOException
Retrieve a MobileOperation from MobileOperation table.

Parameters:
mblOperationId - Operation id of the MobileOperation to be retrieved.
Returns:
MobileOperation object that holds data of MobileOperation represented by operationId.
Throws:
MobileDeviceManagementDAOException


Copyright © 2015 WSO2. All rights reserved.