Class VKeyTranslatorFactory

  • All Implemented Interfaces:

    public class VKeyTranslatorFactory
    extends AbstractSimpleTranslatorFactory<VKey,​>
    Translator factory for VKey.

    These get translated to a string containing the URL safe encoding of the objectify key followed by a (url-unsafe) ampersand delimiter and the SQL key.

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void addTestEntityClass​(java.lang.Class<?> clazz)  
      google.registry.model.translators.AbstractSimpleTranslatorFactory.SimpleTranslator<VKey,​> createTranslator()  
      static VKey<?> createVKey​( datastoreKey)
      Create a VKey from a raw datastore key.
      static <T> VKey<T> createVKey​(com.googlecode.objectify.Key<T> key)
      Create a VKey from an objectify Key.
      static VKey<?> createVKey​(java.lang.String urlSafe)
      Create a VKey from a URL-safe string representation.
      • Methods inherited from class com.googlecode.objectify.impl.translate.ValueTranslatorFactory

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • VKeyTranslatorFactory

        public VKeyTranslatorFactory()
    • Method Detail

      • createVKey

        public static VKey<?> createVKey​(@Nullable
        Create a VKey from a raw datastore key.
      • createVKey

        public static <T> VKey<T> createVKey​(@Nullable
                                             com.googlecode.objectify.Key<T> key)
        Create a VKey from an objectify Key.
      • createVKey

        public static VKey<?> createVKey​(java.lang.String urlSafe)
        Create a VKey from a URL-safe string representation.
      • addTestEntityClass

        public static void addTestEntityClass​(java.lang.Class<?> clazz)
      • createTranslator

        public google.registry.model.translators.AbstractSimpleTranslatorFactory.SimpleTranslator<VKey,​> createTranslator()