HPSearch

cgl.hpsearch.common.objects
Class DBConnSpec

java.lang.Object
  extended bycgl.hpsearch.common.objects.DBConnSpec

public class DBConnSpec
extends Object

Has fields corresponding to a DB connection URI...
E.g. jdbc:mysql://156.56.104.155:9761/test?user=u&password=pwd Here the attribute source points the connection string as above, the dest attribute specifies another uri where the data has to be sent( currently in XML form). This could be a file:// or typically a topic:// type of URI. The query element contains the SQL query.
Created on Oct 24, 2004

Author:
Harshawardhan Gadgil

Constructor Summary
DBConnSpec()
           
 
Method Summary
 String getDest()
           
static DBConnSpec getFromString(String xml)
          Returns the DBConnSpec object by unmarshalling the XML
 String getQuery()
           
 String getSource()
           
 void setDest(String dest)
           
 void setQuery(String query)
           
 void setSource(String source)
           
 String toXML()
          Serializes the Spec to XML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBConnSpec

public DBConnSpec()
Method Detail

toXML

public String toXML()
Serializes the Spec to XML

Returns:
Marshalled Object

getFromString

public static DBConnSpec getFromString(String xml)
Returns the DBConnSpec object by unmarshalling the XML

Parameters:
xml -
Returns:
RequestSpecification object or null if error

getDest

public String getDest()
Returns:
Returns the dest.

setDest

public void setDest(String dest)
Parameters:
dest - The dest to set.

getQuery

public String getQuery()
Returns:
Returns the query.

setQuery

public void setQuery(String query)
Parameters:
query - The query to set.

getSource

public String getSource()
Returns:
Returns the source.

setSource

public void setSource(String source)
Parameters:
source - The source to set.

HPSearch

For comments and suggestions please send e-mail to Harshawardhan Gadgil
Last updated: June 9 2006