Package com.sleepycat.persist.evolve
Class EntityConverter
java.lang.Object
com.sleepycat.persist.evolve.Mutation
com.sleepycat.persist.evolve.Converter
com.sleepycat.persist.evolve.EntityConverter
- All Implemented Interfaces:
Serializable
A subclass of Converter that allows specifying keys to be deleted.
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.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEntityConverter(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. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if the deleted and renamed keys are equal in this object and given object, and if theConverter.equals(java.lang.Object)superclass method returns true.Returns the set of key names that are to be deleted.inthashCode()toString()Methods inherited from class com.sleepycat.persist.evolve.Converter
getConversionMethods inherited from class com.sleepycat.persist.evolve.Mutation
getClassName, getClassVersion, getFieldName
-
Constructor Details
-
EntityConverter
public 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.
-
-
Method Details
-
getDeletedKeys
Returns the set of key names that are to be deleted. -
equals
Returns true if the deleted and renamed keys are equal in this object and given object, and if theConverter.equals(java.lang.Object)superclass method returns true. -
hashCode
public int hashCode() -
toString
-