uk.org.ogsadai.examples.clienttoolkit
Class ParameterisedUpdateViaDataTransport

java.lang.Object
  |
  +--uk.org.ogsadai.examples.clienttoolkit.ParameterisedUpdateViaDataTransport

public class ParameterisedUpdateViaDataTransport
extends java.lang.Object

This example shows how data transport operations can be used to push data into a data service for an SQL update.

Author:
The OGSA-DAI Project Team

Field Summary
private static java.lang.String COPYRIGHT_NOTICE
          Copyright statement.
private static java.lang.String RESOURCE_NAME
          Name of the data service resource.
private static java.lang.String SERVICE_URL
          URL for the data service.
 
Constructor Summary
ParameterisedUpdateViaDataTransport()
           
 
Method Summary
static void main(java.lang.String[] args)
          Runs the program.
private static void pollDataService(DataService dataService, Session session, RequestStatus state)
          Polls the session request status at the specified data service until it reaches the specified state.
 
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

SERVICE_URL

private static final java.lang.String SERVICE_URL
URL for the data service.

See Also:
Constant Field Values

RESOURCE_NAME

private static final java.lang.String RESOURCE_NAME
Name of the data service resource.

See Also:
Constant Field Values
Constructor Detail

ParameterisedUpdateViaDataTransport

public ParameterisedUpdateViaDataTransport()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Runs the program.

Parameters:
args - no arguments are used
Throws:
java.lang.Exception - if anything unexpected goes wrong

pollDataService

private static void pollDataService(DataService dataService,
                                    Session session,
                                    RequestStatus state)
                             throws java.lang.Exception
Polls the session request status at the specified data service until it reaches the specified state.

Parameters:
dataService - the data service holding the session
session - the session that the request is joined to
state - the session request status to poll until
Throws:
java.lang.Exception - if an unexpected error occurs