org.wso2.carbon.device.mgt.mobile.dao.impl
Class MobileFeaturePropertyDAOImpl

java.lang.Object
  extended by org.wso2.carbon.device.mgt.mobile.dao.impl.MobileFeaturePropertyDAOImpl
All Implemented Interfaces:
MobileFeaturePropertyDAO

public class MobileFeaturePropertyDAOImpl
extends Object
implements MobileFeaturePropertyDAO

Implementation of MobileFeaturePropertyDAO.


Constructor Summary
MobileFeaturePropertyDAOImpl(DataSource dataSource)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MobileFeaturePropertyDAOImpl

public MobileFeaturePropertyDAOImpl(DataSource dataSource)
Method Detail

addMobileFeatureProperty

public boolean addMobileFeatureProperty(MobileFeatureProperty mobileFeatureProperty)
                                 throws MobileDeviceManagementDAOException
Description copied from interface: MobileFeaturePropertyDAO
Add a new feature property to feature property table.

Specified by:
addMobileFeatureProperty in interface MobileFeaturePropertyDAO
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

public boolean updateMobileFeatureProperty(MobileFeatureProperty mobileFeatureProperty)
                                    throws MobileDeviceManagementDAOException
Description copied from interface: MobileFeaturePropertyDAO
Update a feature property in the feature property table.

Specified by:
updateMobileFeatureProperty in interface MobileFeaturePropertyDAO
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

public boolean deleteMobileFeatureProperty(String property)
                                    throws MobileDeviceManagementDAOException
Description copied from interface: MobileFeaturePropertyDAO
Delete a given feature property from feature property table.

Specified by:
deleteMobileFeatureProperty in interface MobileFeaturePropertyDAO
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

public MobileFeatureProperty getMobileFeatureProperty(String property)
                                               throws MobileDeviceManagementDAOException
Description copied from interface: MobileFeaturePropertyDAO
Retrieve a given feature property from feature property table.

Specified by:
getMobileFeatureProperty in interface MobileFeaturePropertyDAO
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

public List<MobileFeatureProperty> getFeaturePropertyOfFeature(Integer featureId)
                                                        throws MobileDeviceManagementDAOException
Description copied from interface: MobileFeaturePropertyDAO
Retrieve a list of feature property corresponds to a feature id .

Specified by:
getFeaturePropertyOfFeature in interface MobileFeaturePropertyDAO
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.