Package org.datanucleus.identity
Interface IdentityKeyTranslator
-
- All Superinterfaces:
java.io.Serializable
public interface IdentityKeyTranslator extends java.io.Serializable
Translator for object identities where the user wants to input identities that are not strict key forms, so this returns a valid identity.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Object
getKey(ExecutionContext ec, java.lang.Class cls, java.lang.Object key)
Method to translate the object into the identity.
-
-
-
Method Detail
-
getKey
java.lang.Object getKey(ExecutionContext ec, java.lang.Class cls, java.lang.Object key)
Method to translate the object into the identity.- Parameters:
ec
- ExecutionContextcls
- Class of the persistent objectkey
- The passed in key- Returns:
- The valid key for this class
-
-