|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.harvard.cfa.vo.tapclient.vosi.TableSet
public class TableSet
A set of tables that are part of a single resource.
void showTableset(TableSet tableset) {
edu.harvard.cfa.vo.tapclient.tap.TapService tapService = new edu.harvard.cfa.vo.tapclient.tap.TapService(baseURL);
TableSet tableset = tapService.getTableSet();
for (Schema schema: tableset.getSchemas()) {
System.out.println(schema+"\t[Schema]");
for (Table table: schema.getTables()) {
System.out.println("\t"+table+"\t[Table]");
for (Column column: table.getIndexedColumns()) {
System.out.println("\t\t"+column+"\t[Indexed column]");
}
for (ForeignKey foreignKey: table.getForeignKeys()) {
System.out.println("\t\t"+foreignKey+"\t[Foreign key]");
}
System.out.println("");
}
System.out.println("");
}
}
Field Summary | |
---|---|
protected java.lang.String |
fullURL
|
protected java.util.List<Schema> |
schemas
|
Constructor Summary | |
---|---|
TableSet(java.lang.String fullURL)
Constructs a TableSet object from the given service. |
Method Summary | |
---|---|
void |
add(Schema newValue)
|
java.util.List<Schema> |
getSchemas()
Returns the schema list of the TAP service associate with this TableSet object. |
java.net.URL |
getTransformURL()
Returns a URL pointing to the XSL transform to apply to the XML documents recieved from the service. |
void |
list(java.io.PrintStream output)
|
void |
list(java.io.PrintStream output,
java.lang.String indent)
|
void |
setTransformURL(java.net.URL newValue)
Set the XSL transform to apply to the XML documents recieved from the service. |
void |
update()
Updates this TableSet object with the VOSI tables response from the TAP service. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String fullURL
protected java.util.List<Schema> schemas
Constructor Detail |
---|
public TableSet(java.lang.String fullURL)
fullURL
- the full URL associated with this TableSet objectMethod Detail |
---|
public java.util.List<Schema> getSchemas()
update()
,
Schema
public void add(Schema newValue)
public void update() throws HttpException, ResponseFormatException, java.io.IOException
java.lang.Exception
- if an error occurs connecting to the TAP service or parsing the response
HttpException
- if the service responses to the VOSI Tables request with an unexpected HTTP status.
ResponseFormatException
- if an error occurs parsing the service response into an VOSI Tables document.
java.io.IOException
- if an error occurs creating an input stream.public void list(java.io.PrintStream output)
public void list(java.io.PrintStream output, java.lang.String indent)
public java.net.URL getTransformURL()
public void setTransformURL(java.net.URL newValue)
newValue
- The URL of the transform to apply to XML documents recieved from the service. Null impliesthe identity transformation will be applied.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |