|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
public interface BaseEntityInterface
BaseEntityInterface represents a local (non-remote)Entity. It extends the functionality of BaseEntityValueInterface by providing methods for bulk access of attributes, removing attributes, as well as obtaining a list of attribute names associated with the Entity.
RemoteBaseEntityInterface| Method Summary | |
|---|---|
abstract boolean |
containsAttributeNamed(java.lang.String name)
Test if the Entity contains an attribute of a specified name. |
abstract java.lang.Object |
getAttribute(java.lang.String attributeName,
java.lang.Object defaultValue)
Get a value of an attribute from the Entity or return a default value if it does not exist. |
abstract java.util.Map |
getAttributes(java.util.Map query)
Perform a bulk value get on the Entity. |
abstract java.lang.String |
getStringAttribute(java.lang.String attributeName,
java.lang.String defaultValue)
Get a string value of an attribute from the Entity. |
abstract java.lang.String[] |
listAttributeNames()
Return an array of the attribute names on the Entity. |
abstract void |
removeAllAttributes()
Remove all attributes from the Entity. |
abstract void |
removeAttribute(java.lang.String attributeName)
Remove an attribute from the Entity if the attribute is an instance-based attribute. |
abstract void |
setAttributes(java.util.Map update)
Perform a bulk attribute set on the Entity. |
| Methods inherited from interface com.sas.entities.BaseEntityValueInterface |
|---|
getAttribute, setAttribute |
| Method Detail |
|---|
void setAttributes(java.util.Map update)
throws AttributeSetException
update - a set of name/value pairs to assign to the attributes
of the Entity
AttributeSetException - if the AttributeType of a parameter is not compatible
with a previous setting of the attribute OR an attribute
has been designated as non-modifiablegetAttributes(Map query)java.util.Map getAttributes(java.util.Map query)
query - a set of name/value pairs. This
object is updated if the operation is performed locally.
setAttributes(Map update)boolean containsAttributeNamed(java.lang.String name)
name - the attribute name to test
void removeAttribute(java.lang.String attributeName)
containsAttributeNamed(String) will return false
and BaseEntityValueInterface.getAttribute(String)
will throw a NoSuchElementException
attributeName - the name of the attributevoid removeAllAttributes()
java.lang.String getStringAttribute(java.lang.String attributeName,
java.lang.String defaultValue)
BaseEntityValueInterface.getAttribute(String).
attributeName - the name of the valuedefaultValue - a default value to return if the named attribute,
attributeName does not exist in the Entity
java.lang.ClassCastException - if the attribute value named by the attributeName
is not a String value
java.lang.Object getAttribute(java.lang.String attributeName,
java.lang.Object defaultValue)
attributeName - the name of the valuedefaultValue - a default value to return if the named attribute,
attributeName does not exist in the Entity
java.lang.String[] listAttributeNames()
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||