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

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

public class MobileOperationPropertyDAOImpl
extends Object
implements MobileOperationPropertyDAO

Implementation of MobileOperationPropertyDAO.


Constructor Summary
MobileOperationPropertyDAOImpl(DataSource dataSource)
           
 
Method Summary
 boolean addMobileOperationProperty(MobileOperationProperty mblOperationProperty)
          Add a new MobileOperationProperty to MobileOperationProperty table.
 boolean deleteMobileOperationProperties(int mblOperationId)
          Deletes MobileOperationProperties of a given operation id from the MobileOperationProperty table.
 List<MobileOperationProperty> getAllMobileOperationPropertiesOfOperation(int mblOperationId)
          Retrieve all the MobileOperationProperties related to the a operation id from MobileOperationProperty table.
 MobileOperationProperty getMobileOperationProperty(int mblOperationId, String property)
          Retrieve a given MobileOperationProperty from MobileOperationProperty table.
 boolean updateMobileOperationProperty(MobileOperationProperty mblOperationProperty)
          Update a MobileOperationProperty in the MobileOperationProperty table.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MobileOperationPropertyDAOImpl

public MobileOperationPropertyDAOImpl(DataSource dataSource)
Method Detail

addMobileOperationProperty

public boolean addMobileOperationProperty(MobileOperationProperty mblOperationProperty)
                                   throws MobileDeviceManagementDAOException
Description copied from interface: MobileOperationPropertyDAO
Add a new MobileOperationProperty to MobileOperationProperty table.

Specified by:
addMobileOperationProperty in interface MobileOperationPropertyDAO
Parameters:
mblOperationProperty - MobileOperationProperty object that holds data related to the operation property to be inserted.
Returns:
The status of the operation.
Throws:
MobileDeviceManagementDAOException

updateMobileOperationProperty

public boolean updateMobileOperationProperty(MobileOperationProperty mblOperationProperty)
                                      throws MobileDeviceManagementDAOException
Description copied from interface: MobileOperationPropertyDAO
Update a MobileOperationProperty in the MobileOperationProperty table.

Specified by:
updateMobileOperationProperty in interface MobileOperationPropertyDAO
Parameters:
mblOperationProperty - MobileOperationProperty object that holds data has to be updated.
Returns:
The status of the operation.
Throws:
MobileDeviceManagementDAOException

deleteMobileOperationProperties

public boolean deleteMobileOperationProperties(int mblOperationId)
                                        throws MobileDeviceManagementDAOException
Description copied from interface: MobileOperationPropertyDAO
Deletes MobileOperationProperties of a given operation id from the MobileOperationProperty table.

Specified by:
deleteMobileOperationProperties in interface MobileOperationPropertyDAO
Parameters:
mblOperationId - Operation id of the MobileOperationProperty to be deleted.
Returns:
The status of the operation.
Throws:
MobileDeviceManagementDAOException

getMobileOperationProperty

public MobileOperationProperty getMobileOperationProperty(int mblOperationId,
                                                          String property)
                                                   throws MobileDeviceManagementDAOException
Description copied from interface: MobileOperationPropertyDAO
Retrieve a given MobileOperationProperty from MobileOperationProperty table.

Specified by:
getMobileOperationProperty in interface MobileOperationPropertyDAO
Parameters:
mblOperationId - Operation id of the mapping to be retrieved.
property - Property of the mapping to be retrieved.
Returns:
MobileOperationProperty object that holds data of the MobileOperationProperty represented by mblOperationId and property.
Throws:
MobileDeviceManagementDAOException

getAllMobileOperationPropertiesOfOperation

public List<MobileOperationProperty> getAllMobileOperationPropertiesOfOperation(int mblOperationId)
                                                                         throws MobileDeviceManagementDAOException
Description copied from interface: MobileOperationPropertyDAO
Retrieve all the MobileOperationProperties related to the a operation id from MobileOperationProperty table.

Specified by:
getAllMobileOperationPropertiesOfOperation in interface MobileOperationPropertyDAO
Parameters:
mblOperationId - Operation id of the MobileOperationProperty to be retrieved.
Returns:
List of MobileOperationProperty objects.
Throws:
MobileDeviceManagementDAOException


Copyright © 2015 WSO2. All rights reserved.