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 FormConstructor and Description |
---|
EntityConverter(String entityClassName,
int classVersion,
Conversion conversion,
Set<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(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. |
Set<String> |
getDeletedKeys()
Returns the set of key names that are to be deleted.
|
int |
hashCode() |
String |
toString() |
getConversion
getClassName, getClassVersion, getFieldName
public EntityConverter(String entityClassName, int classVersion, Conversion conversion, Set<String> deletedKeys)
public Set<String> getDeletedKeys()
public boolean equals(Object other)
Converter.equals(java.lang.Object)
superclass method
returns true.Copyright (c) 2002, 2015 Oracle and/or its affiliates. All rights reserved.