public class

SimpleProxyId

extends Object
java.lang.Object
   ↳ com.google.gwt.requestfactory.shared.impl.SimpleProxyId<P extends com.google.gwt.requestfactory.shared.BaseProxy>
Known Direct Subclasses

Class Overview

The base implementation of id objects in the RequestFactory system. This type exists to allow ValueProxies to be implemented in the same manner as an EntityProxy as far as metadata maintenance is concerned. There is a specific subtype SimpleEntityProxyId which implements the requisite public interface for EntityProxy types.

Summary

Constants
int NEVER_EPHEMERAL A placeholder value for #clientId to indicate the id was not created locally.
Public Methods
boolean equals(Object o)
int getClientId()
Class<P> getProxyClass()
String getServerId()
TODO: Rename to getAddress().
int getSyntheticId()
A flag to indicate that the id is synthetic, that it is not valid beyond the duration of the request.
int hashCode()
boolean isEphemeral()
boolean isSynthetic()
void setServerId(String encodedAddress)
Allows the server address token to be set.
void setSyntheticId(int syntheticId)
String toString()
For debugging use only.
boolean wasEphemeral()
Returns true if the id was created as an ephemeral id.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int NEVER_EPHEMERAL

A placeholder value for #clientId to indicate the id was not created locally.

Constant Value: -1 (0xffffffff)

Public Methods

public boolean equals (Object o)

public int getClientId ()

public Class<P> getProxyClass ()

public String getServerId ()

TODO: Rename to getAddress().

public int getSyntheticId ()

A flag to indicate that the id is synthetic, that it is not valid beyond the duration of the request.

public int hashCode ()

public boolean isEphemeral ()

public boolean isSynthetic ()

public void setServerId (String encodedAddress)

Allows the server address token to be set. This method may be called exactly once over the lifetime of an id.

public void setSyntheticId (int syntheticId)

public String toString ()

For debugging use only.

public boolean wasEphemeral ()

Returns true if the id was created as an ephemeral id.