public class AndroidFeatureDAOImpl extends Object implements MobileFeatureDAO
Constructor and Description |
---|
AndroidFeatureDAOImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
addFeature(MobileFeature mobileFeature)
Adds a new MobileFeature to Mobile-Feature table.
|
boolean |
addFeatures(List<MobileFeature> mobileFeatures)
Adda a list of MobileFeatures to Mobile-Feature table.
|
boolean |
deleteFeatureByCode(String mblFeatureCode)
Deletes a MobileFeature from Mobile-Feature table when the feature code is given.
|
boolean |
deleteFeatureById(int mblFeatureId)
Deletes a MobileFeature from Mobile-Feature table when the feature id is given.
|
List<MobileFeature> |
getAllFeatures()
Retrieve all the MobileFeatures from Mobile-Feature table.
|
MobileFeature |
getFeatureByCode(String mblFeatureCode)
Retrieves a given MobileFeature from Mobile-Feature table when the feature code is given.
|
List<MobileFeature> |
getFeatureByDeviceType(String deviceType)
Retrieves all MobileFeatures of a MobileDevice type from Mobile-Feature table.
|
MobileFeature |
getFeatureById(int mblFeatureId)
Retrieves a given MobileFeature from Mobile-Feature table when the feature id is given.
|
boolean |
updateFeature(MobileFeature mobileFeature)
Updates a MobileFeature in Mobile-Feature table.
|
public boolean addFeature(MobileFeature mobileFeature) throws MobileDeviceManagementDAOException
MobileFeatureDAO
addFeature
in interface MobileFeatureDAO
mobileFeature
- MobileFeature object that holds data related to the feature to be inserted.MobileDeviceManagementDAOException
public boolean addFeatures(List<MobileFeature> mobileFeatures) throws MobileDeviceManagementDAOException
MobileFeatureDAO
addFeatures
in interface MobileFeatureDAO
mobileFeatures
- List of MobileFeature objects.MobileDeviceManagementDAOException
public boolean updateFeature(MobileFeature mobileFeature) throws MobileDeviceManagementDAOException
MobileFeatureDAO
updateFeature
in interface MobileFeatureDAO
mobileFeature
- MobileFeature object that holds data has to be updated.MobileDeviceManagementDAOException
public boolean deleteFeatureById(int mblFeatureId) throws MobileDeviceManagementDAOException
MobileFeatureDAO
deleteFeatureById
in interface MobileFeatureDAO
mblFeatureId
- MobileFeature id of the MobileFeature to be deleted.MobileDeviceManagementDAOException
public boolean deleteFeatureByCode(String mblFeatureCode) throws MobileDeviceManagementDAOException
MobileFeatureDAO
deleteFeatureByCode
in interface MobileFeatureDAO
mblFeatureCode
- MobileFeature code of the feature to be deleted.MobileDeviceManagementDAOException
public MobileFeature getFeatureById(int mblFeatureId) throws MobileDeviceManagementDAOException
MobileFeatureDAO
getFeatureById
in interface MobileFeatureDAO
mblFeatureId
- Feature id of the feature to be retrieved.MobileDeviceManagementDAOException
public MobileFeature getFeatureByCode(String mblFeatureCode) throws MobileDeviceManagementDAOException
MobileFeatureDAO
getFeatureByCode
in interface MobileFeatureDAO
mblFeatureCode
- Feature code of the feature to be retrieved.MobileDeviceManagementDAOException
public List<MobileFeature> getFeatureByDeviceType(String deviceType) throws MobileDeviceManagementDAOException
MobileFeatureDAO
getFeatureByDeviceType
in interface MobileFeatureDAO
deviceType
- MobileDevice type of the MobileFeatures to be retrievedMobileDeviceManagementDAOException
public List<MobileFeature> getAllFeatures() throws MobileDeviceManagementDAOException
MobileFeatureDAO
getAllFeatures
in interface MobileFeatureDAO
MobileDeviceManagementDAOException
Copyright © 2017 WSO2. All rights reserved.