public class MobileFeatureDAOImpl extends Object implements MobileFeatureDAO
| Constructor and Description |
|---|
MobileFeatureDAOImpl(DataSource dataSource) |
| 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 MobileFeatureDAOImpl(DataSource dataSource)
public boolean addFeature(MobileFeature mobileFeature) throws MobileDeviceManagementDAOException
MobileFeatureDAOaddFeature in interface MobileFeatureDAOmobileFeature - MobileFeature object that holds data related to the feature to be inserted.MobileDeviceManagementDAOExceptionpublic boolean addFeatures(List<MobileFeature> mobileFeatures) throws MobileDeviceManagementDAOException
MobileFeatureDAOaddFeatures in interface MobileFeatureDAOmobileFeatures - List of MobileFeature objects.MobileDeviceManagementDAOExceptionpublic boolean updateFeature(MobileFeature mobileFeature) throws MobileDeviceManagementDAOException
MobileFeatureDAOupdateFeature in interface MobileFeatureDAOmobileFeature - MobileFeature object that holds data has to be updated.MobileDeviceManagementDAOExceptionpublic boolean deleteFeatureByCode(String mblFeatureCode) throws MobileDeviceManagementDAOException
MobileFeatureDAOdeleteFeatureByCode in interface MobileFeatureDAOmblFeatureCode - MobileFeature code of the feature to be deleted.MobileDeviceManagementDAOExceptionpublic boolean deleteFeatureById(int mblFeatureId)
throws MobileDeviceManagementDAOException
MobileFeatureDAOdeleteFeatureById in interface MobileFeatureDAOmblFeatureId - MobileFeature id of the MobileFeature to be deleted.MobileDeviceManagementDAOExceptionpublic MobileFeature getFeatureByCode(String mblFeatureCode) throws MobileDeviceManagementDAOException
MobileFeatureDAOgetFeatureByCode in interface MobileFeatureDAOmblFeatureCode - Feature code of the feature to be retrieved.MobileDeviceManagementDAOExceptionpublic MobileFeature getFeatureById(int mblFeatureId) throws MobileDeviceManagementDAOException
MobileFeatureDAOgetFeatureById in interface MobileFeatureDAOmblFeatureId - Feature id of the feature to be retrieved.MobileDeviceManagementDAOExceptionpublic List<MobileFeature> getAllFeatures() throws MobileDeviceManagementDAOException
MobileFeatureDAOgetAllFeatures in interface MobileFeatureDAOMobileDeviceManagementDAOExceptionpublic List<MobileFeature> getFeatureByDeviceType(String deviceType) throws MobileDeviceManagementDAOException
MobileFeatureDAOgetFeatureByDeviceType in interface MobileFeatureDAOdeviceType - MobileDevice type of the MobileFeatures to be retrievedMobileDeviceManagementDAOExceptionCopyright © 2017 WSO2. All rights reserved.