|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.sns.tools.data.EditContext
EditContext manages dynamic data held in all associated tables.
| Nested Class Summary | |
static interface |
EditContext.ContextMessage
Send notification about changes affecting this edit context |
| Field Summary | |
protected MessageCenter |
messageCenter
|
protected EditContext.ContextMessage |
noticeProxy
Map of tables by name |
protected java.util.Map |
tableMapByGroup
|
protected java.util.Map |
tableMapByName
Map of tables associated with group |
| Constructor Summary | |
EditContext()
Creates new EditContext |
|
| Method Summary | |
void |
addListener(EditContext.ContextMessage listener)
|
void |
addTablesToGroup(java.util.Collection newTables,
java.lang.String group)
Add the tables to the edit context. |
void |
addTableToGroup(DataTable newTable,
java.lang.String group)
Add the table to the edit context. |
void |
clear()
|
DataTable |
getTable(java.lang.String name)
Get the table associated with the specified table name. |
java.util.Collection |
getTableGroups()
Get all table groups |
java.util.Collection |
getTableNames()
Get the collection of all table names associated with this context. |
java.util.Collection |
getTables()
Get the collection of all tables in the edit context. |
java.util.Collection |
getTablesForGroup(java.lang.String group)
Get all tables associated with the specified group |
GenericRecord |
recordForNode(java.lang.String tableName,
java.lang.String nodeId)
Get a single record from the table associated with the node. |
java.util.Collection |
records(DataTable table,
java.util.Map bindings)
Get the records from the table where the bindings map is valid. |
java.util.Collection |
records(java.lang.String tableName)
Get all of the records from the table given by the table name. |
java.util.Collection |
records(java.lang.String tableName,
java.util.Map bindings)
Get the records from the table where the bindings map is valid. |
java.util.Collection |
records(java.lang.String tableName,
java.lang.String key,
java.lang.Object value)
Get the records from the table where the value for the specified key matches. |
java.util.Collection |
recordsForNode(java.lang.String tableName,
java.lang.String nodeId)
Get the records from the table associated with the node. |
void |
remove(DataTable aTable)
Remove the table from the edit context. |
void |
removeListener(EditContext.ContextMessage listener)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected MessageCenter messageCenter
protected java.util.Map tableMapByGroup
protected java.util.Map tableMapByName
protected EditContext.ContextMessage noticeProxy
| Constructor Detail |
public EditContext()
| Method Detail |
public void addListener(EditContext.ContextMessage listener)
public void removeListener(EditContext.ContextMessage listener)
public void clear()
public DataTable getTable(java.lang.String name)
public java.util.Collection getTableNames()
public java.util.Collection getTables()
public void addTableToGroup(DataTable newTable,
java.lang.String group)
public void addTablesToGroup(java.util.Collection newTables,
java.lang.String group)
public java.util.Collection getTableGroups()
public java.util.Collection getTablesForGroup(java.lang.String group)
public void remove(DataTable aTable)
public java.util.Collection records(java.lang.String tableName)
public java.util.Collection records(java.lang.String tableName,
java.util.Map bindings)
public java.util.Collection records(DataTable table,
java.util.Map bindings)
public java.util.Collection records(java.lang.String tableName,
java.lang.String key,
java.lang.Object value)
public java.util.Collection recordsForNode(java.lang.String tableName,
java.lang.String nodeId)
public GenericRecord recordForNode(java.lang.String tableName,
java.lang.String nodeId)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||