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 mblOperationProperty)
          Add a new MobileOperationProperty to MobileOperationProperty table.
 boolean deleteMobileOperationProperties(int mblOperationId)
          Deletes MobileOperationProperties of a given operation id from the MobileOperationProperty table.
 List<MobileOperationProperty> getAllMobileOperationPropertiesOfOperation(int mblOperationId)
          Retrieve all the MobileOperationProperties related to the a operation id from MobileOperationProperty table.
 MobileOperationProperty getMobileOperationProperty(int mblOperationId, String property)
          Retrieve a given MobileOperationProperty from MobileOperationProperty table.
 boolean updateMobileOperationProperty(MobileOperationProperty mblOperationProperty)
          Update a MobileOperationProperty in the MobileOperationProperty table.
 

Method Detail

addMobileOperationProperty

boolean addMobileOperationProperty(MobileOperationProperty mblOperationProperty)
                                   throws MobileDeviceManagementDAOException
Add a new MobileOperationProperty to MobileOperationProperty table.

Parameters:
mblOperationProperty - MobileOperationProperty object that holds data related to the operation property to be inserted.
Returns:
The status of the operation.
Throws:
MobileDeviceManagementDAOException

updateMobileOperationProperty

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

Parameters:
mblOperationProperty - MobileOperationProperty object that holds data has to be updated.
Returns:
The status of the operation.
Throws:
MobileDeviceManagementDAOException

deleteMobileOperationProperties

boolean deleteMobileOperationProperties(int mblOperationId)
                                        throws MobileDeviceManagementDAOException
Deletes MobileOperationProperties of a given operation id from the MobileOperationProperty table.

Parameters:
mblOperationId - Operation id of the MobileOperationProperty to be deleted.
Returns:
The status of the operation.
Throws:
MobileDeviceManagementDAOException

getMobileOperationProperty

MobileOperationProperty getMobileOperationProperty(int mblOperationId,
                                                   String property)
                                                   throws MobileDeviceManagementDAOException
Retrieve a given MobileOperationProperty from MobileOperationProperty table.

Parameters:
mblOperationId - Operation id of the mapping to be retrieved.
property - Property of the mapping to be retrieved.
Returns:
MobileOperationProperty object that holds data of the MobileOperationProperty represented by mblOperationId and property.
Throws:
MobileDeviceManagementDAOException

getAllMobileOperationPropertiesOfOperation

List<MobileOperationProperty> getAllMobileOperationPropertiesOfOperation(int mblOperationId)
                                                                         throws MobileDeviceManagementDAOException
Retrieve all the MobileOperationProperties related to the a operation id from MobileOperationProperty table.

Parameters:
mblOperationId - Operation id of the MobileOperationProperty to be retrieved.
Returns:
List of MobileOperationProperty objects.
Throws:
MobileDeviceManagementDAOException


Copyright © 2015 WSO2. All rights reserved.