Method Summary |
|
public void | addColumn(Column col) Called from ReportReader.column to add a column to a
data source. |
public boolean | alreadyUsedSourceFile() Returns true if this data source uses a file to retrieve
data and and has already done so. |
abstract public boolean | areRecordsSelectable() Used to enable/disable the "Select Records" menu item. |
abstract public boolean | areRecordsSortable() Used to enable/disable the "Sort By" menu item. |
abstract public boolean | canGroupRecords() Used to enable/disable the "Group By" menu item. |
abstract public boolean | canJoinTables() Used to enable/disable the "Table Linker" menu item. |
public boolean | canRunReports() Used to enable/disable the "Run" and "Export" menu
items. |
abstract public Iterator | columns() Returns an iterator over all columns. |
public Iterator | columnsInTablesUsedInReport() Returns an iterator over all the columns in only the tables used by the
report, or over all columns if this data source does not have tables. |
public boolean | containsReferenceTo(Parameter p) Returns true if the specified parameter exists within this
data source's query. |
abstract protected void | doWriteXML(XMLWriter out) |
abstract public DataCursor | execute() |
abstract public Column | findColumn(Object id) Given an id, returns the column that has that id. |
public Query | getQuery() |
public Report | getReport() |
public int | indexOfSelectable(Selectable sel) Returns the index of the specified selectable. |
abstract public boolean | isConnectionEditable() Used to enable/disable the "Connection" menu item. |
abstract public boolean | isSQLGenerated() Used to enable/disable the "SQL Query Text" menu item. |
public boolean | needsSourceFile() Returns true if this data source uses a file to retrieve
data and does not yet have one. |
public void | readMetadataFrom(String urlString) Reads metadata from a URL. |
public void | reloadColumns() Called from Report.reloadColumns/code>, this method gives the
data source a chance to tell its ancillary objects (such as the query)
to reload column objects.
This is necessary, for example, after a SQL database data source has
reloaded all of its table and column information. |
public void | removeSort(Selectable s) |
public void | reuseSourceFile() Tells this data source to re-use (perhaps re-open) the current data
source file. |
public void | setSourceFile(String filePath) Accepts the path to a data source file. |
abstract public Iterator | tables() Returns an iterator over all tables, or null if the
data source does not have tables (for example, a character-separated
file data source). |
abstract public Iterator | tablesUsedInReport() Returns an iterator over all tables actually used in the report, or
null if the data source does not have tables (for example,
a character-separated file data source). |
public boolean | usesSourceFile() Returns true if this data source uses a file to retrieve
data. |
public void | writeXML(XMLWriter out) Writes this data source and its query as an XML tag. |