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 mblFeatureProperty)
          Add a new MobileFeatureProperty to MobileFeatureProperty table.
 boolean deleteMobileFeaturePropertiesOfFeature(Integer mblFeatureId)
          Deletes MobileFeatureProperties of a given feature from MobileFeatureProperty table.
 boolean deleteMobileFeatureProperty(String property)
          Deletes a given MobileFeatureProperty from MobileFeatureProperty table.
 List<MobileFeatureProperty> getFeaturePropertiesOfFeature(Integer mblFeatureId)
          Retrieves a list of MobileFeatureProperties corresponds to a given feature id from MobileFeatureProperty table.
 MobileFeatureProperty getMobileFeatureProperty(String property)
          Retrieves a given MobileFeatureProperty from MobileFeatureProperty table.
 boolean updateMobileFeatureProperty(MobileFeatureProperty mblFeatureProperty)
          Updates a MobileFeatureProperty in the MobileFeatureProperty table.
 

Method Detail

addMobileFeatureProperty

boolean addMobileFeatureProperty(MobileFeatureProperty mblFeatureProperty)
                                 throws MobileDeviceManagementDAOException
Add a new MobileFeatureProperty to MobileFeatureProperty table.

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

updateMobileFeatureProperty

boolean updateMobileFeatureProperty(MobileFeatureProperty mblFeatureProperty)
                                    throws MobileDeviceManagementDAOException
Updates a MobileFeatureProperty in the MobileFeatureProperty table.

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

deleteMobileFeatureProperty

boolean deleteMobileFeatureProperty(String property)
                                    throws MobileDeviceManagementDAOException
Deletes a given MobileFeatureProperty from MobileFeatureProperty table.

Parameters:
property - Property of the MobileFeatureProperty to be deleted.
Returns:
The status of the operation.
Throws:
MobileDeviceManagementDAOException

deleteMobileFeaturePropertiesOfFeature

boolean deleteMobileFeaturePropertiesOfFeature(Integer mblFeatureId)
                                               throws MobileDeviceManagementDAOException
Deletes MobileFeatureProperties of a given feature from MobileFeatureProperty table.

Parameters:
mblFeatureId - Feature-id of the MobileFeature corresponding properties should be deleted.
Returns:
The status of the operation.
Throws:
MobileDeviceManagementDAOException

getMobileFeatureProperty

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

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

getFeaturePropertiesOfFeature

List<MobileFeatureProperty> getFeaturePropertiesOfFeature(Integer mblFeatureId)
                                                          throws MobileDeviceManagementDAOException
Retrieves a list of MobileFeatureProperties corresponds to a given feature id from MobileFeatureProperty table.

Parameters:
mblFeatureId - feature id of the MobileFeatureProperties to be retrieved.
Returns:
List of MobileFeatureProperty objects that holds data of the MobileFeatureProperties represented by featureId.
Throws:
MobileDeviceManagementDAOException


Copyright © 2015 WSO2. All rights reserved.