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

All Known Implementing Classes:
MobileFeaturePropertyDAOImpl

public interface MobileFeaturePropertyDAO

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


Method Summary
 boolean addMobileFeatureProperty(MobileFeatureProperty mobileFeatureProperty)
          Add a new feature property to feature property table.
 boolean deleteMobileFeatureProperty(String property)
          Delete a given feature property from feature property table.
 List<MobileFeatureProperty> getFeaturePropertyOfFeature(Integer featureId)
          Retrieve a list of feature property corresponds to a feature id .
 MobileFeatureProperty getMobileFeatureProperty(String property)
          Retrieve a given feature property from feature property table.
 boolean updateMobileFeatureProperty(MobileFeatureProperty mobileFeatureProperty)
          Update a feature property in the feature property table.
 

Method Detail

addMobileFeatureProperty

boolean addMobileFeatureProperty(MobileFeatureProperty mobileFeatureProperty)
                                 throws MobileDeviceManagementDAOException
Add a new feature property to feature property table.

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

updateMobileFeatureProperty

boolean updateMobileFeatureProperty(MobileFeatureProperty mobileFeatureProperty)
                                    throws MobileDeviceManagementDAOException
Update a feature property in the feature property table.

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

deleteMobileFeatureProperty

boolean deleteMobileFeatureProperty(String property)
                                    throws MobileDeviceManagementDAOException
Delete a given feature property from feature property table.

Parameters:
property - Property of the feature property to be deleted.
Returns:
The status of the operation. If the operationId was successful or not.
Throws:
MobileDeviceManagementDAOException

getMobileFeatureProperty

MobileFeatureProperty getMobileFeatureProperty(String property)
                                               throws MobileDeviceManagementDAOException
Retrieve a given feature property from feature property table.

Parameters:
property - Property of the feature property to be retrieved.
Returns:
Feature property object that holds data of the feature property represented by propertyId.
Throws:
MobileDeviceManagementDAOException

getFeaturePropertyOfFeature

List<MobileFeatureProperty> getFeaturePropertyOfFeature(Integer featureId)
                                                        throws MobileDeviceManagementDAOException
Retrieve a list of feature property corresponds to a feature id .

Parameters:
featureId - feature id of the feature property to be retrieved.
Returns:
Feature property object that holds data of the feature property represented by propertyId.
Throws:
MobileDeviceManagementDAOException


Copyright © 2015 WSO2. All rights reserved.