public abstract static class BaseEntity.Builder<K,B>
Type Parameters
Name | Description |
K | |
B |
Methods
build()
public abstract BaseEntity<K> build()
Type | Description |
BaseEntity<K> |
clear()
public B clear()
Clears all the properties.
Type | Description |
B |
key()
protected K key()
Type | Description |
K |
remove(String name)
public B remove(String name)
Removes a property with the given name
.
Name | Description |
name | String |
Type | Description |
B |
set(String name, boolean value)
public B set(String name, boolean value)
Sets a property of type BooleanValue.
Name | Description |
name | String name of the property |
value | boolean value associated with the property |
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.
Name | Description |
name | String name of the property |
first | boolean the first boolean in the list |
second | boolean the second boolean in the list |
others | boolean[] other booleans in the list |
Type | Description |
B |
set(String name, Timestamp value)
public B set(String name, Timestamp value)
Sets a property of type TimestampValue.
Name | Description |
name | String name of the property |
value | com.google.cloud.Timestamp value associated with the property |
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.
Name | Description |
name | String name of the property |
first | com.google.cloud.Timestamp the first Timestamp in the list |
second | com.google.cloud.Timestamp the second Timestamp in the list |
others | com.google.cloud.Timestamp[] other Timestamps in the list |
Type | Description |
B |
set(String name, Blob value)
public B set(String name, Blob value)
Sets a property of type BlobValue.
Name | Description |
name | String name of the property |
value | Blob value associated with the property |
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.
Name | Description |
name | String name of the property |
first | Blob the first Blob in the list |
second | Blob the second Blob in the list |
others | Blob[] other Blobs in the list |
Type | Description |
B |
set(String name, FullEntity<?> value)
public B set(String name, FullEntity<?> value)
Sets a property of type EntityValue.
Name | Description |
name | String name of the property |
value | FullEntity<?> value associated with the property |
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.
Name | Description |
name | String name 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 |
Type | Description |
B |
set(String name, Key value)
public B set(String name, Key value)
Sets a property of type KeyValue.
Name | Description |
name | String name of the property |
value | Key value associated with the property |
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.
Name | Description |
name | String name of the property |
first | Key the first Key in the list |
second | Key the second Key in the list |
others | Key[] other Keys in the list |
Type | Description |
B |
set(String name, LatLng value)
public B set(String name, LatLng value)
Sets a property of type LatLng.
Name | Description |
name | String name of the property |
value | LatLng value associated with the property |
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.
Name | Description |
name | String name of the property |
first | LatLng the first LatLng in the list |
second | LatLng the second LatLng in the list |
others | LatLng[] other LatLngs in the list |
Type | Description |
B |
set(String name, Value<?> value)
public B set(String name, Value<?> value)
Sets a property.
Name | Description |
name | String name of the property |
value | Value<?> value associated with the property |
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.
Name | Description |
name | String name 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 |
Type | Description |
B |
set(String name, double value)
public B set(String name, double value)
Sets a property of type DoubleValue.
Name | Description |
name | String name of the property |
value | double value associated with the property |
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.
Name | Description |
name | String name of the property |
first | double the first double in the list |
second | double the second double in the list |
others | double[] other doubles in the list |
Type | Description |
B |
set(String name, String value)
public B set(String name, String value)
Sets a property of type StringValue.
Name | Description |
name | String name of the property |
value | String value associated with the property |
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.
Name | Description |
name | String name of the property |
first | String the first string in the list |
second | String the second string in the list |
others | String[] other strings in the list |
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.
Name | Description |
name | String name of the property |
values | List<? extends com.google.cloud.datastore.Value<?>> list of values associated with the property |
Type | Description |
B |
set(String name, long value)
public B set(String name, long value)
Sets a property of type LongValue.
Name | Description |
name | String name of the property |
value | long value associated with the property |
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.
Name | Description |
name | String name of the property |
first | long the first long in the list |
second | long the second long in the list |
others | long[] other longs in the list |
Type | Description |
B |
setKey(K key)
public B setKey(K key)
Sets the key for the entity.
Name | Description |
key | K |
Type | Description |
B |
setNull(String name)
public B setNull(String name)
Sets a property of type NullValue
.
Name | Description |
name | String name of the property |
Type | Description |
B |
setProperties()
protected Map<String,Value<?>> setProperties()
Type | Description |
Map<String,Value<?>> |
setProperties(Map<String,Value<?>> properties)
protected B setProperties(Map<String,Value<?>> properties)
Name | Description |
properties | Map<String,Value<?>> |
Type | Description |
B |