cgl.hpsearch.common.objects
Class DBConnSpec
java.lang.Object
cgl.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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DBConnSpec
public DBConnSpec()
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.