public class EntityConverter extends Converter
When a Converter is used with an entity class, secondary keys cannot be automatically deleted based on field deletion, because field Deleter objects are not used in conjunction with a Converter mutation. The EntityConverter can be used instead of a plain Converter to specify the key names to be deleted.
It is not currently possible to rename or insert secondary keys when using a Converter mutation with an entity class.
Converter,
Class Evolution,
Serialized Form| Constructor and Description |
|---|
EntityConverter(java.lang.String entityClassName,
int classVersion,
Conversion conversion,
java.util.Set<java.lang.String> deletedKeys)
Creates a mutation for converting all instances of the given entity
class version to the current version of the class.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other)
Returns true if the deleted and renamed keys are equal in this object
and given object, and if the
Converter.equals(java.lang.Object) superclass method
returns true. |
java.util.Set<java.lang.String> |
getDeletedKeys()
Returns the set of key names that are to be deleted.
|
int |
hashCode() |
java.lang.String |
toString() |
getConversiongetClassName, getClassVersion, getFieldNamepublic EntityConverter(java.lang.String entityClassName,
int classVersion,
Conversion conversion,
java.util.Set<java.lang.String> deletedKeys)
entityClassName - the entity class to which this mutation applies.classVersion - the class version to which this mutation applies.conversion - converter instance.deletedKeys - the set of key names that are to be deleted.public java.util.Set<java.lang.String> getDeletedKeys()
public boolean equals(java.lang.Object other)
Converter.equals(java.lang.Object) superclass method
returns true.Copyright (c) 1996, 2016 Oracle and/or its affiliates. All rights reserved.