Class ByteArrayTranslatorFactory

java.lang.Object
com.googlecode.objectify.impl.translate.ValueTranslatorFactory<byte[],​Object>
com.googlecode.objectify.impl.translate.ByteArrayTranslatorFactory
All Implemented Interfaces:
TranslatorFactory<byte[],​Object>

public class ByteArrayTranslatorFactory
extends ValueTranslatorFactory<byte[],​Object>

Translates a byte[] to Blob. Make sure this translator gets registered *before* the normal ArrayTranslator otherwise it won't get used.

Also reads ShortBlob into the byte[]

Author:
Jeff Schnitzer
  • Constructor Details

    • ByteArrayTranslatorFactory

      protected ByteArrayTranslatorFactory()
  • Method Details