コード例 #1
0
 /**
  * @param source
  * @return
  */
 @Override
 public IDeviceStreamData convert(DBObject source) {
   return MongoDeviceStreamData.fromDBObject(source, false);
 }
コード例 #2
0
 /**
  * Convert a DBObject into the SPI equivalent.
  *
  * @param source
  * @param isNested
  * @return
  */
 public static DeviceStreamData fromDBObject(DBObject source, boolean isNested) {
   DeviceStreamData result = new DeviceStreamData();
   MongoDeviceStreamData.fromDBObject(source, result, isNested);
   return result;
 }