Class VKeyTranslatorFactory

  • All Implemented Interfaces:
    com.googlecode.objectify.impl.translate.TranslatorFactory<VKey>

    public class VKeyTranslatorFactory
    extends AbstractSimpleTranslatorFactory<VKey,​com.google.appengine.api.datastore.Key>
    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,​com.google.appengine.api.datastore.Key> createTranslator()  
      static VKey<?> createVKey​(com.google.appengine.api.datastore.Key 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

        create
      • 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

        @Nullable
        public static VKey<?> createVKey​(@Nullable
                                         com.google.appengine.api.datastore.Key datastoreKey)
        Create a VKey from a raw datastore key.
      • createVKey

        @Nullable
        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,​com.google.appengine.api.datastore.Key> createTranslator()