public interface RawSupport<S extends Storable> extends MasterSupport<S>
RawStorableGenerator.| Modifier and Type | Method and Description |
|---|---|
void |
decode(S dest,
int generation,
byte[] data)
Used for decoding different generations of Storable.
|
Blob |
getBlob(S storable,
java.lang.String name,
long locator)
Returns the Blob for the given locator, returning null if not found.
|
Clob |
getClob(S storable,
java.lang.String name,
long locator)
Returns the Clob for the given locator, returning null if not found.
|
long |
getLocator(Blob blob)
Returns the locator for the given Blob, returning zero if null.
|
long |
getLocator(Clob clob)
Returns the locator for the given Clob, returning zero if null.
|
void |
store(S storable,
byte[] key,
byte[] value)
Try to store the entry referenced by the given key with the given
value.
|
boolean |
tryDelete(S storable,
byte[] key)
Try to delete the entry referenced by the given key.
|
boolean |
tryInsert(S storable,
byte[] key,
byte[] value)
Try to insert the entry referenced by the given key with the given
value.
|
byte[] |
tryLoad(S storable,
byte[] key)
Try to load the entry referenced by the given key, but return null
if not found.
|
getSequenceValueProducergetDeleteTrigger, getInsertTrigger, getLoadTrigger, getUpdateTrigger, locallyDisableLoadTrigger, locallyEnableLoadTriggergetRootRepository, isPropertySupportedbyte[] tryLoad(S storable, byte[] key) throws FetchException
storable - user storable which will have its properties setkey - non-null key to search forFetchExceptionboolean tryInsert(S storable, byte[] key, byte[] value) throws PersistException
storable - user storable that key and value were derived fromkey - non-null key to insertvalue - non-null value to insertPersistExceptionvoid store(S storable, byte[] key, byte[] value) throws PersistException
storable - user storable that key and value were derived fromkey - non-null key to storevalue - non-null value to storePersistExceptionboolean tryDelete(S storable, byte[] key) throws PersistException
storable - user supplied storable objectkey - non-null key to deletePersistExceptionBlob getBlob(S storable, java.lang.String name, long locator) throws FetchException
storable - storable that contains Blobname - name of Blob propertylocator - Blob locatorFetchExceptionlong getLocator(Blob blob) throws PersistException
PersistException - if blob is unrecognizedClob getClob(S storable, java.lang.String name, long locator) throws FetchException
storable - storable that contains Blobname - name of Clob propertylocator - Clob locatorFetchExceptionlong getLocator(Clob clob) throws PersistException
PersistException - if blob is unrecognizedvoid decode(S dest, int generation, byte[] data) throws CorruptEncodingException
dest - storable to receive decoded propertiesgeneration - storable layout generation numberdata - decoded into properties, some of which may be dropped if
destination storable doesn't have itCorruptEncodingException - if generation is unknown or if data cannot be decodedCopyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.