|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.org.ogsadai.client.toolkit.activity.RequestComponent | +--uk.org.ogsadai.client.toolkit.activity.Activity | +--uk.org.ogsadai.client.toolkit.activity.relational.ExtractDatabaseSchema
This activity supports the extraction of database schema-related information from a relational data service resource. This can be either a list of the names of the relational tables or the tables plus associated metadata.
The default is that full metadata about all the tables is returned.
The activity has no inputs and one output - the requested information.
Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE
Copyright statement |
private java.lang.String |
mCatalogName
Catalog name |
private java.lang.String |
mSchemaName
Schema name |
private java.lang.String |
mTableName
Table name |
private boolean |
mTableNamesOnly
Indicates whether table names or full table descriptions are to be retrieved - default false . |
Fields inherited from class uk.org.ogsadai.client.toolkit.activity.Activity |
|
Fields inherited from class uk.org.ogsadai.client.toolkit.activity.RequestComponent |
|
Constructor Summary | |
ExtractDatabaseSchema()
Constructor. |
Method Summary | |
protected java.lang.String |
generateXML()
Generates the XML representing the activity. |
ActivityOutput |
getOutput()
Gets the activity's only output - the requested database schema information. |
void |
getTableNamesOnly(boolean namesOnly)
Specify whether to retrieve only table names or the complete table descriptions. |
void |
setCatalogName(java.lang.String catalog)
Set the catalog name where the tables of interest reside. |
void |
setSchemaName(java.lang.String schemaName)
Set the schema name where the tables of interest reside. |
void |
setTableName(java.lang.String tableName)
Set the table name of a specific table for which to retrieve the logical schema. |
Methods inherited from class uk.org.ogsadai.client.toolkit.activity.Activity |
addInput, addOutput, addOutputs, getDataResourceID, getInputParameters, getOutputParameters, getOutputs, replaceSpecialCharacters, setDataResourceID, setInput |
Methods inherited from class uk.org.ogsadai.client.toolkit.activity.RequestComponent |
getDataService, getName, getSession, setDataService, setSession |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.lang.String COPYRIGHT_NOTICE
private java.lang.String mTableName
private java.lang.String mSchemaName
private java.lang.String mCatalogName
private boolean mTableNamesOnly
false
.
Constructor Detail |
public ExtractDatabaseSchema()
Method Detail |
public void setTableName(java.lang.String tableName)
tableName
- Name of the table. If null
then the schema
for all the tables will be returned.public void setSchemaName(java.lang.String schemaName)
schemaName
- Name of the schemapublic void setCatalogName(java.lang.String catalog)
catalog
- Name of the catalogpublic void getTableNamesOnly(boolean namesOnly)
namesOnly
- true
if table names only are to be retrieved
else, false
public ActivityOutput getOutput()
protected java.lang.String generateXML()
RequestComponent
generateXML
in class Activity
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |