P
- the type of BaseProxy object the id describespublic class SimpleProxyId<P extends BaseProxy> extends Object
SimpleEntityProxyId
which implements the requisite public
interface for EntityProxy types.Modifier and Type | Field and Description |
---|---|
static int |
NEVER_EPHEMERAL
A placeholder value for
clientId to indicate the id was not
created locally. |
Modifier and Type | Method and Description |
---|---|
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. |
public static final int NEVER_EPHEMERAL
clientId
to indicate the id was not
created locally.public int getClientId()
public String getServerId()
public int getSyntheticId()
public boolean isEphemeral()
public boolean isSynthetic()
public void setServerId(String encodedAddress)
public void setSyntheticId(int syntheticId)
public boolean wasEphemeral()
true
if the id was created as an ephemeral id.Copyright © 2016. All rights reserved.