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

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

public class MobileOperationPropertyDAOImpl
extends Object
implements MobileOperationPropertyDAO

Implementation of MobileOperationPropertyDAO.


Constructor Summary
MobileOperationPropertyDAOImpl(DataSource dataSource)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MobileOperationPropertyDAOImpl

public MobileOperationPropertyDAOImpl(DataSource dataSource)
Method Detail

addMobileOperationProperty

public boolean addMobileOperationProperty(MobileOperationProperty operationProperty)
                                   throws MobileDeviceManagementDAOException
Description copied from interface: MobileOperationPropertyDAO
Add a new mapping to plugin operation property table.

Specified by:
addMobileOperationProperty in interface MobileOperationPropertyDAO
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

public boolean updateMobileOperationProperty(MobileOperationProperty operationProperty)
                                      throws MobileDeviceManagementDAOException
Description copied from interface: MobileOperationPropertyDAO
Update a feature in the feature table.

Specified by:
updateMobileOperationProperty in interface MobileOperationPropertyDAO
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

public boolean deleteMobileOperationProperties(int operationId)
                                        throws MobileDeviceManagementDAOException
Description copied from interface: MobileOperationPropertyDAO
Deletes mobile operation properties of a given operation id from the plugin database.

Specified by:
deleteMobileOperationProperties in interface MobileOperationPropertyDAO
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

public MobileOperationProperty getMobileOperationProperty(int operationId,
                                                          String property)
                                                   throws MobileDeviceManagementDAOException
Description copied from interface: MobileOperationPropertyDAO
Retrieve a given mobile operation property from plugin database.

Specified by:
getMobileOperationProperty in interface MobileOperationPropertyDAO
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

public List<MobileOperationProperty> getAllMobileOperationPropertiesOfOperation(int operationId)
                                                                         throws MobileDeviceManagementDAOException
Description copied from interface: MobileOperationPropertyDAO
Retrieve all the mobile operation properties related to the a operation id.

Specified by:
getAllMobileOperationPropertiesOfOperation in interface MobileOperationPropertyDAO
Parameters:
operationId - Operation id of the mapping to be retrieved.
Returns:
Device operation mapping object list.
Throws:
MobileDeviceManagementDAOException


Copyright © 2015 WSO2. All rights reserved.