com.google.gwt.requestfactory.shared.RequestContext |
Known Indirect Subclasses |
The base interface for RequestFactory service endpoints.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns a new mutable proxy that this request can carry to the server,
perhaps to be persisted.
| |||||||||||
Returns a mutable version of the proxy, whose mutations will accumulate in
this context.
| |||||||||||
For receiving errors or validation failures only.
| |||||||||||
Send the accumulated changes and method invocations associated with the
RequestContext.
| |||||||||||
Returns true if any changes have been made to proxies mutable under this
context.
|
Returns a new mutable proxy that this request can carry to the server, perhaps to be persisted. If the object is succesfully persisted, a PERSIST event will be posted including the EntityProxyId of this proxy.
clazz | a Class object of type T |
---|
BaseProxy
instance of type T
Returns a mutable version of the proxy, whose mutations will accumulate in this context. Proxies reached via getters on this mutable proxy will also be mutable.
object | an instance of type T |
---|
EntityProxy
or ValueProxy
instance of type T
For receiving errors or validation failures only.
receiver | a Receiver instance |
---|
IllegalArgumentException | if receiver is
null
|
---|
Send the accumulated changes and method invocations associated with the RequestContext.
If to(Receiver)
has not been called, this method will
install a default receiver that will throw a RuntimeException if there is a
server failure.
Returns true if any changes have been made to proxies mutable under this context. Note that vacuous changes — e.g. foo.setName(foo.getName() — will not trip the changed flag. Similarly, "unmaking" a change will clear the isChanged flag
String name = bar.getName(); bar.setName("something else"); assertTrue(context.isChanged()); bar.setName(name); assertFalse(context.isChanged());
true
if any changes have been made