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.


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

Field Detail

COLUMN_OPERATION_ID

public static final String COLUMN_OPERATION_ID
See Also:
Constant Field Values
Constructor Detail

MobileOperationDAOImpl

public MobileOperationDAOImpl(DataSource dataSource)
Method Detail

addMobileOperation

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

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

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

Specified by:
updateMobileOperation in interface MobileOperationDAO
Parameters:
mblOperation - MobileOperation object that holds data has to be updated.
Returns:
The status of the operation.
Throws:
MobileDeviceManagementDAOException

deleteMobileOperation

public boolean deleteMobileOperation(int mblOperationId)
                              throws MobileDeviceManagementDAOException
Description copied from interface: MobileOperationDAO
Deletes a given MobileOperation from MobileOperation table.

Specified by:
deleteMobileOperation in interface MobileOperationDAO
Parameters:
mblOperationId - Operation code of the MobileOperation to be deleted.
Returns:
The status of the operation.
Throws:
MobileDeviceManagementDAOException

getMobileOperation

public MobileOperation getMobileOperation(int mblOperationId)
                                   throws MobileDeviceManagementDAOException
Description copied from interface: MobileOperationDAO
Retrieve a MobileOperation from MobileOperation table.

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