de.folt.rpc.messages
Class ReturnOpenTMSDataSources

java.lang.Object
  extended by de.folt.rpc.messages.ReturnOpenTMSDataSources
All Implemented Interfaces:
RPCMessage

public class ReturnOpenTMSDataSources
extends java.lang.Object
implements RPCMessage

Author:
Klemens Waldhör

Constructor Summary
ReturnOpenTMSDataSources()
           
 
Method Summary
 java.util.Vector execute(java.util.Hashtable message)
          ReturnOpenTMSDataSources returns a list of OpenTMS data sources.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReturnOpenTMSDataSources

public ReturnOpenTMSDataSources()
Method Detail

execute

public java.util.Vector execute(java.util.Hashtable message)
ReturnOpenTMSDataSources returns a list of OpenTMS data sources. Parameters are provided through a hash table. The hashtable contains the following keys:

dataModel - either TMX or TBX or ALL depending on the data sources to be returned
It returns:

com.araya.OpenTMS.Interface.runReturnDBs(message);

The result is vector of length number of data sources + 1
the description of single data sources looks like that:
String value = "TBX|" + name + "|" + user + "|" + password + "|" + type + "|" + server + "|" + port; or
String value = "TMX|" + name + "|" + user + "|" + password + "|" + type + "|" + server + "|" + port;
or

vec.add("1");
vec.add(ex.getMessage());

Specified by:
execute in interface RPCMessage
Parameters:
message - a hash table containing the message specific parameters
Returns:
a Vector containing the results of executing the method.
See Also:
RPCMessage.execute(java.util.Hashtable)