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 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.
 
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 mblFeatureProperty)
                                 throws MobileDeviceManagementDAOException
Description copied from interface: MobileFeaturePropertyDAO
Add a new MobileFeatureProperty to MobileFeatureProperty table.

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

updateMobileFeatureProperty

public boolean updateMobileFeatureProperty(MobileFeatureProperty mblFeatureProperty)
                                    throws MobileDeviceManagementDAOException
Description copied from interface: MobileFeaturePropertyDAO
Updates a MobileFeatureProperty in the MobileFeatureProperty table.

Specified by:
updateMobileFeatureProperty in interface MobileFeaturePropertyDAO
Parameters:
mblFeatureProperty - MobileFeatureProperty object that holds data has to be updated.
Returns:
The status of the operation.
Throws:
MobileDeviceManagementDAOException

deleteMobileFeatureProperty

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

Specified by:
deleteMobileFeatureProperty in interface MobileFeaturePropertyDAO
Parameters:
property - Property of the MobileFeatureProperty to be deleted.
Returns:
The status of the operation.
Throws:
MobileDeviceManagementDAOException

deleteMobileFeaturePropertiesOfFeature

public boolean deleteMobileFeaturePropertiesOfFeature(Integer mblFeatureId)
                                               throws MobileDeviceManagementDAOException
Description copied from interface: MobileFeaturePropertyDAO
Deletes MobileFeatureProperties of a given feature from MobileFeatureProperty table.

Specified by:
deleteMobileFeaturePropertiesOfFeature in interface MobileFeaturePropertyDAO
Parameters:
mblFeatureId - Feature-id of the MobileFeature corresponding properties should be deleted.
Returns:
The status of the operation.
Throws:
MobileDeviceManagementDAOException

getMobileFeatureProperty

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

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

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

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