uk.org.ogsadai.examples.demoTransientFactory
Class DemoTransientInstanceDataResourceAccessor
java.lang.Object
|
+--uk.org.ogsadai.examples.demoTransientFactory.DemoTransientInstanceDataResourceAccessor
- All Implemented Interfaces:
- DataResourceAccessor, DemoNameProvider
- public class DemoTransientInstanceDataResourceAccessor
- extends java.lang.Object
- implements DataResourceAccessor, DemoNameProvider
- Author:
- OGSA-DAI team
Field Summary |
private static java.lang.String |
COPYRIGHT_NOTICE
Copyright statement |
private java.lang.String |
mName
A simple name value |
private java.lang.String |
mResourceName
Name of data service resource |
static javax.xml.namespace.QName |
NAME_PROPERTY_QNAME
Name of resource property holding the name value |
Method Summary |
java.lang.String |
getName()
Gets the name value. |
Property[] |
getProperties()
Gets the resource properties associated with the data resource accessor. |
void |
setResourceName(java.lang.String resourceName)
Sets the name of the resource. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COPYRIGHT_NOTICE
private static final java.lang.String COPYRIGHT_NOTICE
-
Copyright statement
- See Also:
- Constant Field Values
mResourceName
private java.lang.String mResourceName
-
Name of data service resource
mName
private java.lang.String mName
-
A simple name value
NAME_PROPERTY_QNAME
public static final javax.xml.namespace.QName NAME_PROPERTY_QNAME
-
Name of resource property holding the name value
DemoTransientInstanceDataResourceAccessor
public DemoTransientInstanceDataResourceAccessor(java.lang.String name)
-
Creates the data resource accessor.
- Parameters:
name
- name value that will be stored within the accessor and is available to activties via the DemoNameProvider
interface.
setResourceName
public void setResourceName(java.lang.String resourceName)
- Description copied from interface:
DataResourceAccessor
-
Sets the name of the resource. This method will be called one before any other methods in this interface are called. Data resource accessors are not required to do anything with this name although it is sometimes useful to include it in any error messages.
-
- Specified by:
setResourceName
in interface DataResourceAccessor
-
- Parameters:
resourceName
- Name of the data service resource which will use this data resource accessor to mediate access to a data resource.
getProperties
public Property[] getProperties()
- Description copied from interface:
DataResourceAccessor
-
Gets the resource properties associated with the data resource accessor. These are made available as properties of the data service resource to which the data resource accessor belongs.
This method should be called once after the readConfig
method has been called but before any other methods are called.
-
- Specified by:
getProperties
in interface DataResourceAccessor
-
- Returns:
- The resource proporties. If there are no resource properties then a zero-sized array will be returned.
getName
public java.lang.String getName()
-
Gets the name value.
-
- Specified by:
getName
in interface DemoNameProvider
-
- Returns:
- the name value.