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

All Known Implementing Classes:
MobileOperationPropertyDAOImpl

public interface MobileOperationPropertyDAO

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


Method Summary
 boolean addMobileOperationProperty(MobileOperationProperty operationProperty)
          Add a new mapping to plugin operation property table.
 boolean deleteMobileOperationProperties(int operationId)
          Deletes mobile operation properties of a given operation id from the plugin database.
 List<MobileOperationProperty> getAllMobileOperationPropertiesOfOperation(int operationId)
          Retrieve all the mobile operation properties related to the a operation id.
 MobileOperationProperty getMobileOperationProperty(int operationId, String property)
          Retrieve a given mobile operation property from plugin database.
 boolean updateMobileOperationProperty(MobileOperationProperty operationProperty)
          Update a feature in the feature table.
 

Method Detail

addMobileOperationProperty

boolean addMobileOperationProperty(MobileOperationProperty operationProperty)
                                   throws MobileDeviceManagementDAOException
Add a new mapping to plugin operation property table.

Parameters:
operationProperty - OperationProperty object that holds data related to the operation property to be inserted.
Returns:
The status of the operation. If the insert was successful or not.
Throws:
MobileDeviceManagementDAOException

updateMobileOperationProperty

boolean updateMobileOperationProperty(MobileOperationProperty operationProperty)
                                      throws MobileDeviceManagementDAOException
Update a feature in the feature table.

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

deleteMobileOperationProperties

boolean deleteMobileOperationProperties(int operationId)
                                        throws MobileDeviceManagementDAOException
Deletes mobile operation properties of a given operation id from the plugin database.

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

getMobileOperationProperty

MobileOperationProperty getMobileOperationProperty(int operationId,
                                                   String property)
                                                   throws MobileDeviceManagementDAOException
Retrieve a given mobile operation property from plugin database.

Parameters:
operationId - Operation id of the mapping to be retrieved.
property - Property of the mapping to be retrieved.
Returns:
DeviceOperation object that holds data of the device operation mapping represented by deviceId and operationId.
Throws:
MobileDeviceManagementDAOException

getAllMobileOperationPropertiesOfOperation

List<MobileOperationProperty> getAllMobileOperationPropertiesOfOperation(int operationId)
                                                                         throws MobileDeviceManagementDAOException
Retrieve all the mobile operation properties related to the a operation id.

Parameters:
operationId - Operation id of the mapping to be retrieved.
Returns:
Device operation mapping object list.
Throws:
MobileDeviceManagementDAOException


Copyright © 2015 WSO2. All rights reserved.