|
SPT RWT Application API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sptci.rwt.Category
public class Category
A simple data object used to represent a category under which named queries are stored.
© Copyright 2007 Sans Pareil Technologies, Inc.
| Field Summary | |
|---|---|
private String |
name
The name of the category. |
private Map<String,Query> |
queries
The named queries associated with this category. |
| Constructor Summary | |
|---|---|
Category()
Default constructor. |
|
Category(String name)
Create a new instance using the specified name. |
|
| Method Summary | |
|---|---|
protected void |
addQuery(Query query)
Add the specified query as a saved instance. |
protected void |
deleteQuery(Query query)
Remove the query specified from persistent state. |
protected void |
deleteQuery(String name)
Remove the query identified by the specified unique name from persistent state. |
String |
getName()
Returns name. |
Collection<String> |
getNames()
Returns the unique names that have been used to save queries. |
Collection<Query> |
getQueries()
Returns a collection of Query objects that are stored under
this category. |
Query |
getQuery(String name)
Return the query associated with the specified name. |
protected void |
setName(String name)
Set name. |
protected void |
setQueries(Map<String,Query> queries)
Set queries. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private String name
private Map<String,Query> queries
| Constructor Detail |
|---|
public Category()
public Category(String name)
name - The name to use.| Method Detail |
|---|
public String getName()
name.
protected void setName(String name)
name.
name - The value to set.
protected void addQuery(Query query)
throws IllegalArgumentException
query - The query to add to the saved state.
IllegalArgumentException - If the specified name already exists.protected void deleteQuery(Query query)
query - The query that is to be removed.deleteQuery( String )protected void deleteQuery(String name)
name - The unique name assigned to the query.public Query getQuery(String name)
name - The unique name used to identify the saved query.
null if no such
saved query exists.public Collection<Query> getQueries()
Query objects that are stored under
this category.
protected void setQueries(Map<String,Query> queries)
queries.
queries - The value to set.public Collection<String> getNames()
|
SPT RWT Application API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||