|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.amazon.carbonado.raw.RawStorableGenerator
public class RawStorableGenerator
Generates and caches abstract implementations of Storable types
which are encoded and decoded in a raw format. The generated abstract
classes extend those created by MasterStorableGenerator.
GenericStorableCodec,
RawSupport| Field Summary | |
|---|---|
static String |
DECODE_DATA_METHOD_NAME
Name of protected abstract method in generated storable |
static String |
DECODE_KEY_METHOD_NAME
Name of protected abstract method in generated storable |
static String |
ENCODE_DATA_METHOD_NAME
Name of protected abstract method in generated storable |
static String |
ENCODE_KEY_METHOD_NAME
Name of protected abstract method in generated storable |
| Method Summary | ||
|---|---|---|
static
|
getAbstractClass(Class<S> type,
boolean isMaster)
Returns an abstract implementation of the given Storable type, which is fully thread-safe. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ENCODE_KEY_METHOD_NAME
public static final String DECODE_KEY_METHOD_NAME
public static final String ENCODE_DATA_METHOD_NAME
public static final String DECODE_DATA_METHOD_NAME
| Method Detail |
|---|
public static <S extends Storable> Class<? extends S> getAbstractClass(Class<S> type,
boolean isMaster)
throws SupportException,
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 managed
IllegalArgumentException - if type is null
SupportException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||