|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Database
The Database
interface is used to represent a source
of data for a template. It also serves the purpose of providing
a means to to share data between controllers. The database object
contains a subset of the methods provided by a Map
.
Method Summary | |
---|---|
boolean |
contains(java.lang.String name)
The contains method is used to determine if
a mapping exists for the given name. |
java.lang.Object |
get(java.lang.String name)
The get method is used to retrieve the value
mapped to the specified name. |
java.util.Set |
keySet()
To ascertain what mappings exist, the names of all values previously put into thhis database can be retrieved with this method. |
void |
put(java.lang.String name,
java.lang.Object value)
The put method is used to insert a mapping in
the database that pairs the issued name with the issued
value. |
void |
remove(java.lang.String name)
The remove method is used to remove the
named value from the database. |
Method Detail |
---|
void put(java.lang.String name, java.lang.Object value)
put
method is used to insert a mapping in
the database that pairs the issued name with the issued
value. The value can be referenced in future by its name.
name
- this is the name of the value being insertedvalue
- this is the named value that is insertedjava.lang.Object get(java.lang.String name)
get
method is used to retrieve the value
mapped to the specified name. If a value does not exist
matching the given name, then this returns null.
name
- this is the name of the value to be retrieved
void remove(java.lang.String name)
remove
method is used to remove the
named value from the database. This method either removes
the value or returns silently if the name does not exits.
name
- this is the name of the value to be removedjava.util.Set keySet()
Set
that
contains the names of all the mappings added to this.
boolean contains(java.lang.String name)
contains
method is used to determine if
a mapping exists for the given name. This returns true if
the mapping exists or false otherwise.
name
- this is the name of the mapping to determine
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |