Package com.googlecode.objectify.impl.translate
package com.googlecode.objectify.impl.translate
-
ClassDescriptionTranslator which can load an array of things.Handle the native datastore BlobHandle Boolean and boolean typesTranslates a byte[] to Blob.Used by translators to populate properties between POJO and PropertiesContainer.Some common code for Translators which know how to convert a POJO type into a PropertiesContainer.Translator which maps classes, both normal embedded classes and Entity classes.Translator which can load things into a collection field.Translator factory which lets users create @Container properties.The context while creating translator factories.The datastore can't store java.util.Date nativelyTranslator which turns a Map<String, ?> into an EmbeddedEntity.Translator which can translate arbitrary entities based on registered kinds.EnumTranslatorFactory<E extends Enum<E>>Knows how to convert Enums to the datastore StringFloats are funky in the datastore.Handle java.time.InstantIntegers are funky in the datastore.Knows how to convert Keyinvalid input: '<'?> objects to datastore-native Key objects and vice-versa.Handle the native datastore LatLngA lifecycle method that can be executed on a POJOThe context of a load operation, which may extend across several entities (for example, a batch).This takes a datastore collection and converts it to a POJO Map by letting you select out the key value using a class of your own devising.Populator which does nothing.NullSafeTranslator<P,
D> Handles null checking so we don't have to do it everywhere.In case someone has a field of type Object or uses a raw collection without specifying the generic type.Populator<P>A populator knows how to copy properties between POJO objects and the native datastore representation.Handle the native datastore FullEntityHandle the native datastore KeyJust in case anyone has aValue<?>
field.Marker interface for a translator that indicates that, when loading, it is sensitive to the previously existing value in a field.Knows how to convert Refinvalid input: '<'?> objects to datastore-native Key objects and vice-versa.The context of a save operation; might involve multiple entities (eg, batch save).Loader which can load any serialized thing from a Blob.Simplest base class for most value translations.Thrown by any Translator that wants its value to be skipped.The datastore can't store java.sql.Date nativelyKnows how to convert Strings.Marker interface for a translator that indicates that on load, the property value in the entity should be ignored and instead the loader should just be run with a null value.Handle the native datastore TimestampConverts java.util.TimeZoneTranslator factory which lets users define a custom translator for a field.Translator<P,D> A translator knows how convert between POJO objects and the native datastore representation.TranslatorFactory<P,D> A translator knows how to convert between a POJO and a native datastore representation.TranslatorRecycles<P,D> Combines Translator with Recycles, useful so that we can create anonymous classes.Manages all the translators used to map between POJO fields and the types that the Datastore can actually persist.TypeKey<T>Unique identifier for a translator instance.The datastore can't store URL, so translate it to a String and back.ValueTranslator<P,D> Translator that should be extended for typical atomic values.Provides a little boilerplate for translators that work on simple atomic types.