|
Berkeley DB version 5.3.21 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.persist.evolve.Mutation
com.sleepycat.persist.evolve.Converter
com.sleepycat.persist.evolve.EntityConverter
public class EntityConverter
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.
Converter
,
Class Evolution
,
Serialized FormConstructor Summary | |
---|---|
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 Summary | |
---|---|
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()
|
Methods inherited from class com.sleepycat.persist.evolve.Converter |
---|
getConversion |
Methods inherited from class com.sleepycat.persist.evolve.Mutation |
---|
getClassName, getClassVersion, getFieldName |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EntityConverter(String entityClassName, int classVersion, Conversion conversion, Set<String> deletedKeys)
Method Detail |
---|
public Set<String> getDeletedKeys()
public boolean equals(Object other)
Converter.equals(java.lang.Object)
superclass method
returns true.
equals
in class Converter
public int hashCode()
hashCode
in class Converter
public String toString()
toString
in class Converter
|
Berkeley DB version 5.3.21 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |