uk.org.ogsadai.client.toolkit.activity.sql
Class UpdateCountToIntOutputConverter

java.lang.Object
  |
  +--uk.org.ogsadai.client.toolkit.activity.sql.UpdateCountToIntOutputConverter

public class UpdateCountToIntOutputConverter
extends java.lang.Object

Converts update count data to an integer.

Author:
The OGSA-DAI Project Team

Constructor Summary
UpdateCountToIntOutputConverter()
           
 
Method Summary
static int convert(ActivityOutput output)
          Converts update count data to an integer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdateCountToIntOutputConverter

public UpdateCountToIntOutputConverter()
Method Detail

convert

public static int convert(ActivityOutput output)
                   throws ActivityOutputException,
                          DataFormatException
Converts update count data to an integer.

Parameters:
output - output with the data to convert
Returns:
the input value returned in the update count
Throws:
DataFormatException - If the output data is not in the expected format.
ActivityOutputException - If there is no output data.