|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.directwebremoting.io.ItemUpdate
public class ItemUpdate
Analogous to a Map.Entry that we use to pass objects that
have been stored in a StoreProvider to
the Internet.
TODO: Consider if we should add version field to this so we can add some sort
of pessimistic locking to updates.
| Constructor Summary | |
|---|---|
ItemUpdate(java.lang.String itemId,
java.lang.String attribute,
RawData newValue)
Create an Item with its ID and data. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getAttribute()
Accessor for the property that we want to change on the Object with the ID given in itemId. |
java.lang.String |
getItemId()
Accessor for the primary key for this Object. |
RawData |
getNewValue()
Accessor for the value for the attribute that we want to
change on the Object with the ID given in itemId. |
int |
hashCode()
|
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ItemUpdate(java.lang.String itemId,
java.lang.String attribute,
RawData newValue)
| Method Detail |
|---|
public java.lang.String getItemId()
Warning: It would be a bad idea to expose database primary keys directly to the Internet anyway, so some form of mapping is required.
public java.lang.String getAttribute()
itemId.
public RawData getNewValue()
attribute that we want to
change on the Object with the ID given in itemId.
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
|
Copyright ยจ 2008 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||