|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.spicefactory.pimento.intercept.EntityUpdate
public class EntityUpdate
Represents a set of property values that will be applied to a persistent entity.
This class may be used as an optional second parameter for interceptor methods
that are annoted with @Merge to inspect the properties changed by the client.
| Constructor Summary | |
|---|---|
EntityUpdate(Map<String,Object> properties)
Creates a new instance. |
|
| Method Summary | |
|---|---|
boolean |
containsProperty(String name)
Checks whether the property with the specified name is part of this update. |
Object |
getProperty(String name)
Returns the value for the property with the specified name or null if it is not part of this update. |
String[] |
getPropertyNames()
Returns the names of all properties that are part of this update. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EntityUpdate(Map<String,Object> properties)
properties - maps property names to property values for all properties contained in this update.| Method Detail |
|---|
public Object getProperty(String name)
name - the name of the property
public boolean containsProperty(String name)
name - the name of the property
public String[] getPropertyNames()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||