public static class Account.Id
extends com.google.gwtorm.client.IntKey<com.google.gwtorm.client.Key<?>>
Modifier and Type | Field and Description |
---|---|
protected int |
id |
Modifier and Type | Method and Description |
---|---|
static Account.Id |
fromRef(java.lang.String name) |
static Account.Id |
fromRefPart(java.lang.String name)
Parse an Account.Id out of a part of a ref-name.
|
static Account.Id |
fromRefSuffix(java.lang.String name)
Parse an Account.Id out of the last part of a ref name.
|
int |
get() |
static Account.Id |
parse(java.lang.String str)
Parse an Account.Id out of a string representation.
|
protected void |
set(int newValue) |
public int get()
get
in class com.google.gwtorm.client.IntKey<com.google.gwtorm.client.Key<?>>
protected void set(int newValue)
set
in class com.google.gwtorm.client.IntKey<com.google.gwtorm.client.Key<?>>
public static Account.Id parse(java.lang.String str)
public static Account.Id fromRef(java.lang.String name)
public static Account.Id fromRefPart(java.lang.String name)
name
- a ref name with the following syntax: "34/1234..."
. We assume that the
caller has trimmed any prefix.public static Account.Id fromRefSuffix(java.lang.String name)
The input is a ref name of the form ".../1234"
, where the suffix is a non-sharded
account ID. Ref names using a sharded ID should use fromRefPart(String)
instead for
greater safety.
name
- ref name