|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RawSupport<S extends Storable>
Provides runtime support for Storable classes generated by RawStorableGenerator.
| Method Summary | |
|---|---|
void |
decode(S dest,
int generation,
byte[] data)
Used for decoding different generations of Storable. |
Blob |
getBlob(S storable,
String name,
long locator)
Returns the Blob for the given locator, returning null if not found. |
Clob |
getClob(S storable,
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. |
| Methods inherited from interface com.amazon.carbonado.gen.MasterSupport |
|---|
getSequenceValueProducer |
| Methods inherited from interface com.amazon.carbonado.gen.TriggerSupport |
|---|
getDeleteTrigger, getInsertTrigger, getLoadTrigger, getUpdateTrigger, locallyDisableLoadTrigger, locallyEnableLoadTrigger |
| Methods inherited from interface com.amazon.carbonado.gen.StorableSupport |
|---|
getRootRepository, isPropertySupported |
| Method Detail |
|---|
byte[] tryLoad(S storable,
byte[] key)
throws FetchException
storable - user storable which will have its properties setkey - non-null key to search for
FetchException
boolean 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 insert
PersistException
void 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 store
PersistException
boolean tryDelete(S storable,
byte[] key)
throws PersistException
storable - user supplied storable objectkey - non-null key to delete
PersistException
Blob getBlob(S storable,
String name,
long locator)
throws FetchException
storable - storable that contains Blobname - name of Blob propertylocator - Blob locator
FetchException
long getLocator(Blob blob)
throws PersistException
PersistException - if blob is unrecognized
Clob getClob(S storable,
String name,
long locator)
throws FetchException
storable - storable that contains Blobname - name of Clob propertylocator - Clob locator
FetchException
long getLocator(Clob clob)
throws PersistException
PersistException - if blob is unrecognized
void 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 it
CorruptEncodingException - if generation is unknown or if data cannot be decoded
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||