|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This interface defines the API to a collection of data queries. A list of listening data queries is mantained by the collection.
| Method Summary | |
void |
clear()
Clears the current DataQueryCollection of all queries. |
void |
delete(DataQuery query)
Deletes a data query from the collection. |
void |
delete(java.lang.String name)
Deletes a data query from the collection. |
DataQuery |
factory(java.lang.String name)
Creates a data query and adds it to this collection of data queries. |
DataQuery |
find(DataRange range)
Returns the data query in this collection which has the specified data range registered as listening to it. |
DataQuery |
find(java.lang.String name)
Returns the data query with the specified name in this collection. |
java.lang.String |
generateName()
Generates a unique (one that is not already contained in this collection) name for a new data query. |
DataQuery[] |
get()
Returns a list of data queries in this DataQueryCollection. |
Source |
getDataSource()
Returns the data source associated with this DataQueryCollection. |
java.lang.String[] |
getNames()
Returns a list of the names of queries in this collection, ordered by the queries' refresh indexes. |
boolean |
isEmpty()
Returns whether the current data query collection contains any queries. |
boolean |
isNameValid(java.lang.String name)
Returns whether or not the specified name is valid for a new query to be added to this collection. |
boolean |
isParameterRequired(java.lang.String paramName)
Returns whether this query requires the specified report parameter. |
boolean |
isParameterUsed(java.lang.String paramName)
Returns whether this collection uses the specified report parameter. |
| Method Detail |
public Source getDataSource()
DataQueryCollection.Source,
factory(java.lang.String)
public DataQuery factory(java.lang.String name)
throws F1Exception
name - the name of the DataQuery object.
This name must be unique within this collection.DataQuery,
getDataSource()public DataQuery[] get()
DataQueryCollection. The
returned list will be ordered according to the DataQuery refresh
index.DataQuery,
DataQuery.setRefreshIndex(int)public void delete(DataQuery query)
query - the data query object to
delete.delete(String name)public void delete(java.lang.String name)
name - the name of the data query
to delete.delete(com.f1j.data.query.DataQuery query)public void clear()
DataQueryCollection of all queries. Disconnects
any data ranges listening to any of the queries in this collection, but
leaves the data ranges on the worksheet intact.delete(com.f1j.data.query.DataQuery)public boolean isEmpty()
true = contains no queries.
false = contains one or more queries.find(java.lang.String)public boolean isParameterRequired(java.lang.String paramName)
true = collection requires the specified parameter.public boolean isParameterUsed(java.lang.String paramName)
true = collection uses the specified parameter.public DataQuery find(java.lang.String name)
name - the data query name as a text string.null if a query with that name does not exist.find(com.f1j.data.DataRange range),
isEmpty()public DataQuery find(DataRange range)
range - a DataRange object specifying the
range, or null if a query cannot be found which has the specified
data range listening to it.find(String name),
isEmpty()public java.lang.String[] getNames()
find(java.lang.String),
isEmpty()public java.lang.String generateName()
public boolean isNameValid(java.lang.String name)
true if the name is valid.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||