public abstract static class BaseEntity.Builder<K,B>Type Parameters |
|
|---|---|
| Name | Description |
K |
|
B |
|
Methods
build()
public abstract BaseEntity<K> build()| Returns | |
|---|---|
| Type | Description |
BaseEntity<K> |
|
clear()
public B clear()Clears all the properties.
| Returns | |
|---|---|
| Type | Description |
B |
|
key()
protected K key()| Returns | |
|---|---|
| Type | Description |
K |
|
remove(String name)
public B remove(String name)Removes a property with the given name.
| Parameter | |
|---|---|
| Name | Description |
name |
String |
| Returns | |
|---|---|
| Type | Description |
B |
|
set(String name, boolean value)
public B set(String name, boolean value)Sets a property of type BooleanValue.
| Parameters | |
|---|---|
| Name | Description |
name |
Stringname of the property |
value |
booleanvalue associated with the property |
| Returns | |
|---|---|
| Type | Description |
B |
|
set(String name, boolean first, boolean second, boolean[] others)
public B set(String name, boolean first, boolean second, boolean[] others)Sets a list property containing elements of type BooleanValue.
| Parameters | |
|---|---|
| Name | Description |
name |
Stringname of the property |
first |
booleanthe first boolean in the list |
second |
booleanthe second boolean in the list |
others |
boolean[]other booleans in the list |
| Returns | |
|---|---|
| Type | Description |
B |
|
set(String name, Timestamp value)
public B set(String name, Timestamp value)Sets a property of type TimestampValue.
| Parameters | |
|---|---|
| Name | Description |
name |
Stringname of the property |
value |
com.google.cloud.Timestampvalue associated with the property |
| Returns | |
|---|---|
| Type | Description |
B |
|
set(String name, Timestamp first, Timestamp second, Timestamp[] others)
public B set(String name, Timestamp first, Timestamp second, Timestamp[] others)Sets a list property containing elements of type TimestampValue.
| Parameters | |
|---|---|
| Name | Description |
name |
Stringname of the property |
first |
com.google.cloud.Timestampthe first Timestamp in the list |
second |
com.google.cloud.Timestampthe second Timestamp in the list |
others |
com.google.cloud.Timestamp[]other Timestamps in the list |
| Returns | |
|---|---|
| Type | Description |
B |
|
set(String name, Blob value)
public B set(String name, Blob value)Sets a property of type BlobValue.
| Parameters | |
|---|---|
| Name | Description |
name |
Stringname of the property |
value |
Blobvalue associated with the property |
| Returns | |
|---|---|
| Type | Description |
B |
|
set(String name, Blob first, Blob second, Blob[] others)
public B set(String name, Blob first, Blob second, Blob[] others)Sets a list property containing elements of type BlobValue.
| Parameters | |
|---|---|
| Name | Description |
name |
Stringname of the property |
first |
Blobthe first Blob in the list |
second |
Blobthe second Blob in the list |
others |
Blob[]other Blobs in the list |
| Returns | |
|---|---|
| Type | Description |
B |
|
set(String name, FullEntity<?> value)
public B set(String name, FullEntity<?> value)Sets a property of type EntityValue.
| Parameters | |
|---|---|
| Name | Description |
name |
Stringname of the property |
value |
FullEntity<?>value associated with the property |
| Returns | |
|---|---|
| Type | Description |
B |
|
set(String name, FullEntity<?> first, FullEntity<?> second, FullEntity<?>[] others)
public B set(String name, FullEntity<?> first, FullEntity<?> second, FullEntity<?>[] others)Sets a list property containing elements of type EntityValue.
| Parameters | |
|---|---|
| Name | Description |
name |
Stringname of the property |
first |
FullEntity<?>the first FullEntity in the list |
second |
FullEntity<?>the second FullEntity in the list |
others |
FullEntity<?>[]other entities in the list |
| Returns | |
|---|---|
| Type | Description |
B |
|
set(String name, Key value)
public B set(String name, Key value)Sets a property of type KeyValue.
| Parameters | |
|---|---|
| Name | Description |
name |
Stringname of the property |
value |
Keyvalue associated with the property |
| Returns | |
|---|---|
| Type | Description |
B |
|
set(String name, Key first, Key second, Key[] others)
public B set(String name, Key first, Key second, Key[] others)Sets a list property containing elements of type KeyValue.
| Parameters | |
|---|---|
| Name | Description |
name |
Stringname of the property |
first |
Keythe first Key in the list |
second |
Keythe second Key in the list |
others |
Key[]other Keys in the list |
| Returns | |
|---|---|
| Type | Description |
B |
|
set(String name, LatLng value)
public B set(String name, LatLng value)Sets a property of type LatLng.
| Parameters | |
|---|---|
| Name | Description |
name |
Stringname of the property |
value |
LatLngvalue associated with the property |
| Returns | |
|---|---|
| Type | Description |
B |
|
set(String name, LatLng first, LatLng second, LatLng[] others)
public B set(String name, LatLng first, LatLng second, LatLng[] others)Sets a list property containing elements of type LatLng.
| Parameters | |
|---|---|
| Name | Description |
name |
Stringname of the property |
first |
LatLngthe first LatLng in the list |
second |
LatLngthe second LatLng in the list |
others |
LatLng[]other LatLngs in the list |
| Returns | |
|---|---|
| Type | Description |
B |
|
set(String name, Value<?> value)
public B set(String name, Value<?> value)Sets a property.
| Parameters | |
|---|---|
| Name | Description |
name |
Stringname of the property |
value |
Value<?>value associated with the property |
| Returns | |
|---|---|
| Type | Description |
B |
|
set(String name, Value<?> first, Value<?> second, Value<?>[] others)
public B set(String name, Value<?> first, Value<?> second, Value<?>[] others)Sets a property of type ListValue.
| Parameters | |
|---|---|
| Name | Description |
name |
Stringname of the property |
first |
Value<?>the first value in the list |
second |
Value<?>the second value in the list |
others |
Value<?>[]other values in the list |
| Returns | |
|---|---|
| Type | Description |
B |
|
set(String name, double value)
public B set(String name, double value)Sets a property of type DoubleValue.
| Parameters | |
|---|---|
| Name | Description |
name |
Stringname of the property |
value |
doublevalue associated with the property |
| Returns | |
|---|---|
| Type | Description |
B |
|
set(String name, double first, double second, double[] others)
public B set(String name, double first, double second, double[] others)Sets a list property containing elements of type DoubleValue.
| Parameters | |
|---|---|
| Name | Description |
name |
Stringname of the property |
first |
doublethe first double in the list |
second |
doublethe second double in the list |
others |
double[]other doubles in the list |
| Returns | |
|---|---|
| Type | Description |
B |
|
set(String name, String value)
public B set(String name, String value)Sets a property of type StringValue.
| Parameters | |
|---|---|
| Name | Description |
name |
Stringname of the property |
value |
Stringvalue associated with the property |
| Returns | |
|---|---|
| Type | Description |
B |
|
set(String name, String first, String second, String[] others)
public B set(String name, String first, String second, String[] others)Sets a list property containing elements of type StringValue.
| Parameters | |
|---|---|
| Name | Description |
name |
Stringname of the property |
first |
Stringthe first string in the list |
second |
Stringthe second string in the list |
others |
String[]other strings in the list |
| Returns | |
|---|---|
| Type | Description |
B |
|
set(String name, List<? extends Value<?>> values)
public B set(String name, List<? extends Value<?>> values)Sets a property of type ListValue.
| Parameters | |
|---|---|
| Name | Description |
name |
Stringname of the property |
values |
List<? extends com.google.cloud.datastore.Value<?>>list of values associated with the property |
| Returns | |
|---|---|
| Type | Description |
B |
|
set(String name, long value)
public B set(String name, long value)Sets a property of type LongValue.
| Parameters | |
|---|---|
| Name | Description |
name |
Stringname of the property |
value |
longvalue associated with the property |
| Returns | |
|---|---|
| Type | Description |
B |
|
set(String name, long first, long second, long[] others)
public B set(String name, long first, long second, long[] others)Sets a list property containing elements of type LongValue.
| Parameters | |
|---|---|
| Name | Description |
name |
Stringname of the property |
first |
longthe first long in the list |
second |
longthe second long in the list |
others |
long[]other longs in the list |
| Returns | |
|---|---|
| Type | Description |
B |
|
setKey(K key)
public B setKey(K key)Sets the key for the entity.
| Parameter | |
|---|---|
| Name | Description |
key |
K |
| Returns | |
|---|---|
| Type | Description |
B |
|
setNull(String name)
public B setNull(String name)Sets a property of type NullValue.
| Parameter | |
|---|---|
| Name | Description |
name |
Stringname of the property |
| Returns | |
|---|---|
| Type | Description |
B |
|
setProperties()
protected Map<String,Value<?>> setProperties()| Returns | |
|---|---|
| Type | Description |
Map<String,Value<?>> |
|
setProperties(Map<String,Value<?>> properties)
protected B setProperties(Map<String,Value<?>> properties)| Parameter | |
|---|---|
| Name | Description |
properties |
Map<String,Value<?>> |
| Returns | |
|---|---|
| Type | Description |
B |
|