public class RawStorableGenerator
extends java.lang.Object
Storable types
which are encoded and decoded in a raw format. The generated abstract
classes extend those created by MasterStorableGenerator.GenericStorableCodec,
RawSupport| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DECODE_DATA_METHOD_NAME
Name of protected abstract method in generated storable
|
static java.lang.String |
DECODE_KEY_METHOD_NAME
Name of protected abstract method in generated storable
|
static java.lang.String |
ENCODE_DATA_METHOD_NAME
Name of protected abstract method in generated storable
|
static java.lang.String |
ENCODE_KEY_METHOD_NAME
Name of protected abstract method in generated storable
|
| Modifier and Type | Method and Description |
|---|---|
static <S extends Storable> |
getAbstractClass(java.lang.Class<S> type,
boolean isMaster)
Returns an abstract implementation of the given Storable type, which is
fully thread-safe.
|
public static final java.lang.String ENCODE_KEY_METHOD_NAME
public static final java.lang.String DECODE_KEY_METHOD_NAME
public static final java.lang.String ENCODE_DATA_METHOD_NAME
public static final java.lang.String DECODE_DATA_METHOD_NAME
public static <S extends Storable> java.lang.Class<? extends S> getAbstractClass(java.lang.Class<S> type, boolean isMaster) throws SupportException, java.lang.IllegalArgumentException
public <init>(RawSupport); public <init>(RawSupport, byte[] key); public <init>(RawSupport, byte[] key, byte[] value);
Subclasses must implement the following abstract protected methods, whose exact names are defined by constants in this class:
// Encode the primary key of this storable. protected abstract byte[] encodeKey(); // Encode all properties of this storable excluding the primary key. protected abstract byte[] encodeData(); // Decode the primary key into properties of this storable. // Note: this method is also invoked by the three argument constructor. protected abstract void decodeKey(byte[]); // Decode the data into properties of this storable. // Note: this method is also invoked by the three argument constructor. protected abstract void decodeData(byte[]);
isMaster - when true, version properties, sequences, and triggers are managedjava.lang.IllegalArgumentException - if type is nullSupportExceptionCopyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.