|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
public interface RemoteBaseEntityValueInterface
RemoteBaseEntityValueInterface represents a core API for accessing the attributes (name/value pairs) of an Entity. Similar to an EJB Entity Bean, an Entity contains data that is probably persisted as a record in a data table/database.
Entities act as collections of values. The Entity values are
accessed via attributeName/value pairs. Those Entity values that have setter/getter
methods are called type-based attributes. Entity values that do not have setter/getter
methods are called instance-based attributes.
Instance-based attributes may only be accessed
via the generic methods that set/get values by name, such as setAttribute(String attributeName, Object value).
Entities may be accessed remotely, thus
all methods may throw RemoteException.
| Method Summary | |
|---|---|
java.lang.Object |
getAttribute(java.lang.String attributeName)
Get an attribute value from a entity. |
void |
setAttribute(java.lang.String attributeName,
java.lang.Object value)
Set an attribute and its value in this entity. |
| Method Detail |
|---|
void setAttribute(java.lang.String attributeName,
java.lang.Object value)
throws java.rmi.RemoteException,
AttributeSetException
attributeName - the name of the attribute.value - the value to associate with the value name.
Attribute values may be null.
java.rmi.RemoteException - if there was an IO error communicating with the Entity
AttributeSetException - if the AttributeType of the parameter, value, is not
compatible with a previous setting of the attribute OR the attribute corresponding to the
parameter, attributeName, has been designated as non-modifiable
java.lang.Object getAttribute(java.lang.String attributeName)
throws java.rmi.RemoteException,
java.util.NoSuchElementException
attributeName - the name of the value.
java.util.NoSuchElementException - if there
is no such value in this entity.
(this is necessary to distinguish between
no such attributeName and a value of null.)
java.rmi.RemoteException - if there was an IO error communicating with the Entity
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||