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
 int addMobileFeature(MobileFeature mobileFeature)
          Adds a new MobileFeature to Mobile-Feature table.
 boolean deleteMobileFeatureByCode(String mblFeatureCode)
          Deletes a MobileFeature from Mobile-Feature table when the feature code is given.
 boolean deleteMobileFeatureById(int mblFeatureId)
          Deletes a MobileFeature from Mobile-Feature table when the feature id is given.
 List<MobileFeature> getAllMobileFeatures()
          Retrieve all the MobileFeatures from Mobile-Feature table.
 MobileFeature getMobileFeatureByCode(String mblFeatureCode)
          Retrieves a given MobileFeature from Mobile-Feature table when the feature code is given.
 List<MobileFeature> getMobileFeatureByDeviceType(String deviceType)
          Retrieves all MobileFeatures of a MobileDevice type from Mobile-Feature table.
 MobileFeature getMobileFeatureById(int mblFeatureId)
          Retrieves a given MobileFeature from Mobile-Feature table when the feature id is given.
 boolean updateMobileFeature(MobileFeature mobileFeature)
          Updates a MobileFeature in Mobile-Feature table.
 

Method Detail

addMobileFeature

int addMobileFeature(MobileFeature mobileFeature)
                     throws MobileDeviceManagementDAOException
Adds a new MobileFeature to Mobile-Feature table.

Parameters:
mobileFeature - MobileFeature object that holds data related to the feature to be inserted.
Returns:
The id of inserted MobileFeature.
Throws:
MobileDeviceManagementDAOException

updateMobileFeature

boolean updateMobileFeature(MobileFeature mobileFeature)
                            throws MobileDeviceManagementDAOException
Updates a MobileFeature in Mobile-Feature table.

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

deleteMobileFeatureById

boolean deleteMobileFeatureById(int mblFeatureId)
                                throws MobileDeviceManagementDAOException
Deletes a MobileFeature from Mobile-Feature table when the feature id is given.

Parameters:
mblFeatureId - MobileFeature id of the MobileFeature to be deleted.
Returns:
The status of the operation.
Throws:
MobileDeviceManagementDAOException

deleteMobileFeatureByCode

boolean deleteMobileFeatureByCode(String mblFeatureCode)
                                  throws MobileDeviceManagementDAOException
Deletes a MobileFeature from Mobile-Feature table when the feature code is given.

Parameters:
mblFeatureCode - MobileFeature code of the feature to be deleted.
Returns:
The status of the operation.
Throws:
MobileDeviceManagementDAOException

getMobileFeatureById

MobileFeature getMobileFeatureById(int mblFeatureId)
                                   throws MobileDeviceManagementDAOException
Retrieves a given MobileFeature from Mobile-Feature table when the feature id is given.

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

getMobileFeatureByCode

MobileFeature getMobileFeatureByCode(String mblFeatureCode)
                                     throws MobileDeviceManagementDAOException
Retrieves a given MobileFeature from Mobile-Feature table when the feature code is given.

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

getMobileFeatureByDeviceType

List<MobileFeature> getMobileFeatureByDeviceType(String deviceType)
                                                 throws MobileDeviceManagementDAOException
Retrieves all MobileFeatures of a MobileDevice type from Mobile-Feature table.

Parameters:
deviceType - MobileDevice type of the MobileFeatures to be retrieved
Returns:
MobileFeature object list.
Throws:
MobileDeviceManagementDAOException

getAllMobileFeatures

List<MobileFeature> getAllMobileFeatures()
                                         throws MobileDeviceManagementDAOException
Retrieve all the MobileFeatures from Mobile-Feature table.

Returns:
MobileFeature object list.
Throws:
MobileDeviceManagementDAOException


Copyright © 2015 WSO2. All rights reserved.