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

All Known Implementing Classes:
MobileFeatureDAOImpl

public interface MobileFeatureDAO

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


Method Summary
 boolean addMobileFeature(MobileFeature mobileFeature)
          Add a new feature to feature table.
 boolean deleteMobileFeatureByCode(String featureCode)
          Delete a feature from feature table when the feature code is given.
 boolean deleteMobileFeatureById(int featureId)
          Delete a feature from feature table when the feature id is given.
 List<MobileFeature> getAllMobileFeatures()
           
 MobileFeature getMobileFeatureByCode(String featureCode)
          Retrieve a given feature from feature table when the feature code is given.
 List<MobileFeature> getMobileFeatureByDeviceType(String deviceType)
          Retrieve all the features from plugin specific database for a Device Type.
 MobileFeature getMobileFeatureById(int featureId)
          Retrieve a given feature from feature table when the feature id is given.
 boolean updateMobileFeature(MobileFeature mobileFeature)
          Update a feature in the feature table.
 

Method Detail

addMobileFeature

boolean addMobileFeature(MobileFeature mobileFeature)
                         throws MobileDeviceManagementDAOException
Add a new feature to feature table.

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

updateMobileFeature

boolean updateMobileFeature(MobileFeature mobileFeature)
                            throws MobileDeviceManagementDAOException
Update a feature in the feature table.

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

deleteMobileFeatureById

boolean deleteMobileFeatureById(int featureId)
                                throws MobileDeviceManagementDAOException
Delete a feature from feature table when the feature id is given.

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

deleteMobileFeatureByCode

boolean deleteMobileFeatureByCode(String featureCode)
                                  throws MobileDeviceManagementDAOException
Delete a feature from feature table when the feature code is given.

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

getMobileFeatureById

MobileFeature getMobileFeatureById(int featureId)
                                   throws MobileDeviceManagementDAOException
Retrieve a given feature from feature table when the feature id is given.

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

getMobileFeatureByCode

MobileFeature getMobileFeatureByCode(String featureCode)
                                     throws MobileDeviceManagementDAOException
Retrieve a given feature from feature table when the feature code is given.

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

getMobileFeatureByDeviceType

List<MobileFeature> getMobileFeatureByDeviceType(String deviceType)
                                                 throws MobileDeviceManagementDAOException
Retrieve all the features from plugin specific database for a Device Type.

Parameters:
deviceType - - Device type.
Returns:
Feature object list.
Throws:
MobileDeviceManagementDAOException

getAllMobileFeatures

List<MobileFeature> getAllMobileFeatures()
                                         throws MobileDeviceManagementDAOException
Throws:
MobileDeviceManagementDAOException


Copyright © 2015 WSO2. All rights reserved.