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 operation)
          Add a new Mobile operation to plugin operation table.
 boolean deleteMobileOperation(int operationId)
          Delete a given Mobile operation from plugin database.
 MobileOperation getMobileOperation(int operationId)
          Retrieve a given Mobile operation from plugin database.
 boolean updateMobileOperation(MobileOperation operation)
          Update a Mobile operation in the operation table.
 

Method Detail

addMobileOperation

int addMobileOperation(MobileOperation operation)
                       throws MobileDeviceManagementDAOException
Add a new Mobile operation to plugin operation table.

Parameters:
operation - Operation object that holds data related to the operation to be inserted.
Returns:
The last inserted Id is returned, if the insertion was unsuccessful -1 is returned.
Throws:
MobileDeviceManagementDAOException

updateMobileOperation

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

Parameters:
operation - Operation object that holds data has to be updated.
Returns:
The status of the operation. If the update was successful or not.
Throws:
MobileDeviceManagementDAOException

deleteMobileOperation

boolean deleteMobileOperation(int operationId)
                              throws MobileDeviceManagementDAOException
Delete a given Mobile operation from plugin database.

Parameters:
operationId - Operation code of the operation to be deleted.
Returns:
The status of the operation. If the operationId was successful or not.
Throws:
MobileDeviceManagementDAOException

getMobileOperation

MobileOperation getMobileOperation(int operationId)
                                   throws MobileDeviceManagementDAOException
Retrieve a given Mobile operation from plugin database.

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


Copyright © 2015 WSO2. All rights reserved.