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

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

public class MobileOperationDAOImpl
extends Object
implements MobileOperationDAO

Implementation of MobileOperationDAO.


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

Constructor Detail

MobileOperationDAOImpl

public MobileOperationDAOImpl(DataSource dataSource)
Method Detail

addMobileOperation

public int addMobileOperation(MobileOperation operation)
                       throws MobileDeviceManagementDAOException
Description copied from interface: MobileOperationDAO
Add a new Mobile operation to plugin operation table.

Specified by:
addMobileOperation in interface MobileOperationDAO
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

public boolean updateMobileOperation(MobileOperation operation)
                              throws MobileDeviceManagementDAOException
Description copied from interface: MobileOperationDAO
Update a Mobile operation in the operation table.

Specified by:
updateMobileOperation in interface MobileOperationDAO
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

public boolean deleteMobileOperation(int operationId)
                              throws MobileDeviceManagementDAOException
Description copied from interface: MobileOperationDAO
Delete a given Mobile operation from plugin database.

Specified by:
deleteMobileOperation in interface MobileOperationDAO
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

public MobileOperation getMobileOperation(int operationId)
                                   throws MobileDeviceManagementDAOException
Description copied from interface: MobileOperationDAO
Retrieve a given Mobile operation from plugin database.

Specified by:
getMobileOperation in interface MobileOperationDAO
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.