public class ArrayTranslatorFactory extends Object implements TranslatorFactory<Object>
Translator which can load an array of things.
Note that empty or null arrays are not stored in the datastore, and null values for the array field are ignored when they are loaded from the Entity. This is because the datastore doesn't store empty collections, and storing null fields will confuse filtering for actual nulls in the array contents.
CollectionTranslatorFactory
Constructor and Description |
---|
ArrayTranslatorFactory() |
public Translator<Object> create(Path path, Property property, Type type, CreateContext ctx)
create
in interface TranslatorFactory<Object>
path
- current path to this part of the tree, important for logging and exceptionsproperty
- is the property we are inspecting to create a translator fortype
- is the generic type of the field (or field component). For example, examining a field of type
ListCopyright © 2014. All rights reserved.