java.lang.Object | |
↳ | com.google.gwt.requestfactory.shared.impl.AbstractRequestContext |
Base implementations for RequestContext services.
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new object, with an ephemeral id.
| |||||||||||
Returns a mutable version of the proxy, whose mutations will accumulate in
this context.
| |||||||||||
Take ownership of a proxy instance and make it editable.
| |||||||||||
For receiving errors or validation failures only.
| |||||||||||
Make sure there's a default receiver so errors don't get dropped.
| |||||||||||
EntityCodex support.
| |||||||||||
EntityCodex support.
| |||||||||||
Returns true if any changes have been made to proxies mutable under this
context.
| |||||||||||
EntityCodex support.
| |||||||||||
EntityCodex support.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Called by generated subclasses to enqueue a method invocation.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface com.google.gwt.requestfactory.shared.RequestContext | |||||||||||
From interface com.google.gwt.requestfactory.shared.impl.EntityCodex.EntitySource |
Create a new object, with an ephemeral id.
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
Take ownership of a proxy instance and make it editable.
For receiving errors or validation failures only.
receiver | a Receiver instance |
---|
Make sure there's a default receiver so errors don't get dropped. This behavior should be revisited when chaining is supported, depending on whether or not chained invocations can fail independently.
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
Called by generated subclasses to enqueue a method invocation.