|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectdalclient.DALQuery
Generic DAL query. Provides methods to build up and execute a query against a predefined service connection context.
| Method Summary | |
void |
addParameter(java.lang.String name,
java.lang.String value)
Add a query parameter=value pair to the connection context. |
void |
executeCSV()
Execute the query and write the result to stdout in CSV format. |
void |
executeCSV(java.io.PrintStream out)
Execute query and write to the given output stream in CSV format. |
void |
executeCSV(java.lang.String fname)
Execute the query and write the result to the named file in CSV format. |
java.io.InputStream |
executeRaw()
Execute query and return a binary input stream to read raw results. |
java.io.InputStream |
executeRaw(int serviceIndex)
Query the specified service and return a raw i/o stream to the query results. |
edu.jhu.pha.ivoa.VOTWrap.VOTable |
executeVOTable()
Execute query and return a VOTable. |
edu.jhu.pha.ivoa.VOTWrap.VOTable |
executeVOTable(int serviceIndex)
Query the specified service and return a VOTable. |
java.lang.String |
getQueryString(int serviceIndex)
Get the current query URL as a string for the given service. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public void addParameter(java.lang.String name,
java.lang.String value)
name - The parameter name.value - The parameter value.
public void executeCSV()
throws java.lang.Exception
java.lang.Exception
public void executeCSV(java.lang.String fname)
throws java.lang.Exception
fname - The name of the file to be created.
java.lang.Exception
public void executeCSV(java.io.PrintStream out)
throws java.lang.Exception
out - The output stream to be used
java.lang.Exception
public edu.jhu.pha.ivoa.VOTWrap.VOTable executeVOTable()
throws java.lang.Exception
java.lang.Exception
public edu.jhu.pha.ivoa.VOTWrap.VOTable executeVOTable(int serviceIndex)
throws java.lang.Exception
serviceIndex - The index of the service to be queried
java.lang.Exception
public java.io.InputStream executeRaw()
throws java.lang.Exception
java.lang.Exception
public java.io.InputStream executeRaw(int serviceIndex)
throws java.lang.Exception
serviceIndex - The index of the service to be queried
java.lang.Exceptionpublic java.lang.String getQueryString(int serviceIndex)
serviceIndex - The index of the service to be queried
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||