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 SQL update count data to an integer.

Author:
The OGSA-DAI Project Team

Field Summary
private static java.lang.String COPYRIGHT_NOTICE
          Copyright statement
 
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
 

Field Detail

COPYRIGHT_NOTICE

private static final java.lang.String COPYRIGHT_NOTICE
Copyright statement

See Also:
Constant Field Values
Constructor Detail

UpdateCountToIntOutputConverter

public UpdateCountToIntOutputConverter()
Method Detail

convert

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

Parameters:
output - Activity output with the data to convert.
Returns:
update count.
Throws:
NoActivityOutputException - if there is no output data or the data has not yet been processed to this output or the activity that generates this output has not yet been executed.
DataFormatException - if the output from the activity cannot be parsed into a number.