gwt - How stable is stableId? -


the javadoc entityproxy.stableid() says:

"an id returned proxy newly created requestcontext.create  object.equals(object) returned later proxies persisted object." 

does mean stable id valid object across different request contexts? across different request factory instances? suppose i'm asking scope of stable id?

the entityproxyid object has global scope , suitable long-term use map key or member of set. entityproxyid objects can used across different instances , types of requestfactory (assuming proxy type reachable requestfactory in question). requestfactory.gethistorytoken() , getproxyid methods can create string representation of entityproxyid suitable client-side persistence.

the 1 exception global scope of entityproxyid id of newly-created entityproxy has not yet been persisted on server. "ephemeral" id usable requestfactory newly-created proxy object derived. once proxy has been sent server , server has provided non-null id, ephemeral id upgraded persistent id , becomes indistinguishable other persistent id. object identity of upgraded entityproxyid not change, ephemeral ids can added map or set , retrieved later.


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

c# - SharpSVN - How to get the previous revision? -

php cli reading files and how to fix it? -