|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wso2.carbon.device.mgt.mobile.dao.impl.MobileFeatureDAOImpl
public class MobileFeatureDAOImpl
Implementation of MobileFeatureDAO.
| Constructor Summary | |
|---|---|
MobileFeatureDAOImpl(DataSource dataSource)
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MobileFeatureDAOImpl(DataSource dataSource)
| Method Detail |
|---|
public boolean addMobileFeature(MobileFeature mobileFeature)
throws MobileDeviceManagementDAOException
MobileFeatureDAO
addMobileFeature in interface MobileFeatureDAOmobileFeature - Feature object that holds data related to the feature to be inserted.
MobileDeviceManagementDAOException
public boolean updateMobileFeature(MobileFeature mobileFeature)
throws MobileDeviceManagementDAOException
MobileFeatureDAO
updateMobileFeature in interface MobileFeatureDAOmobileFeature - Feature object that holds data has to be updated.
MobileDeviceManagementDAOException
public boolean deleteMobileFeatureByCode(String featureCode)
throws MobileDeviceManagementDAOException
MobileFeatureDAO
deleteMobileFeatureByCode in interface MobileFeatureDAOfeatureCode - Feature code of the feature to be deleted.
MobileDeviceManagementDAOException
public boolean deleteMobileFeatureById(int featureId)
throws MobileDeviceManagementDAOException
MobileFeatureDAO
deleteMobileFeatureById in interface MobileFeatureDAOfeatureId - Feature id of the feature to be deleted.
MobileDeviceManagementDAOException
public MobileFeature getMobileFeatureByCode(String featureCode)
throws MobileDeviceManagementDAOException
MobileFeatureDAO
getMobileFeatureByCode in interface MobileFeatureDAOfeatureCode - Feature code of the feature to be retrieved.
MobileDeviceManagementDAOException
public MobileFeature getMobileFeatureById(int featureID)
throws MobileDeviceManagementDAOException
MobileFeatureDAO
getMobileFeatureById in interface MobileFeatureDAOfeatureID - Feature id of the feature to be retrieved.
MobileDeviceManagementDAOException
public List<MobileFeature> getAllMobileFeatures()
throws MobileDeviceManagementDAOException
getAllMobileFeatures in interface MobileFeatureDAOMobileDeviceManagementDAOException
public List<MobileFeature> getMobileFeatureByDeviceType(String deviceType)
throws MobileDeviceManagementDAOException
MobileFeatureDAO
getMobileFeatureByDeviceType in interface MobileFeatureDAOdeviceType - - Device type.
MobileDeviceManagementDAOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||