Package | Description |
---|---|
com.amazon.carbonado |
Main user-level interfaces, classes, and annotations for Carbonado.
|
com.amazon.carbonado.adapter |
Contains annotations and implementations for supporting property adapters.
|
com.amazon.carbonado.capability |
Common capabilities for repositories.
|
com.amazon.carbonado.gen |
Storable code generation support intended for use by repository implementations.
|
com.amazon.carbonado.layout |
Support for recording the evolution of a storable's layout, used internally
by some repositories.
|
com.amazon.carbonado.lob |
Support for LOB property types, which are Large OBjects.
|
com.amazon.carbonado.qe |
Support for implementing a Query Engine.
|
com.amazon.carbonado.raw |
Provides support for repositories that encode/decode storables in a raw
binary format.
|
com.amazon.carbonado.repo.jdbc |
Repository implementation that connects to an external SQL database via
JDBC.
|
com.amazon.carbonado.repo.sleepycat |
Repository implementation backed by a Sleepycat (BDB, Berkeley)
database.
|
com.amazon.carbonado.sequence |
Support for generating sequences of values, intended for creating surrogate
keys.
|
com.amazon.carbonado.spi |
Service Provider Interface for Carbonado.
|
com.amazon.carbonado.txn |
Provides support for managing transactions.
|
Modifier and Type | Class and Description |
---|---|
class |
ConstraintException
A ConstraintException is thrown if the
Repository storage layer
detects any kind of constraint violation. |
class |
NonDurableCommitException
Thrown during a transaction commit if durability guarantees cannot be met.
|
class |
OptimisticLockException
An OptimisticLockException is thrown if the
Repository is using
optimistic locking for concurrency control, and lock aquisition failed. |
class |
PersistDeadlockException
Thrown if a persist operation fails because it was selected to resolve a
deadlock.
|
class |
PersistDeniedException
Thrown when a persist operation was denied either because the repository is
in read-only mode, or the connection does not have permission.
|
class |
PersistInterruptedException
Thrown from a persist operation that was canceled.
|
class |
PersistMultipleException
A PersistMultipleException is thrown when a persist operation would have
applied to more than one record when at most one was expected.
|
class |
PersistNoneException
A PersistNoneException is thrown when a persist operation applied to no
records when at least one was expected.
|
class |
PersistTimeoutException
Thrown if a persist operation fails because lock acquisition timed out.
|
static class |
Trigger.Abort |
class |
UniqueConstraintException
A UniqueConstraintException is thrown if the
Repository storage
layer has a unique constraint check defined for a property, and a violation
has been detected. |
Modifier and Type | Method and Description |
---|---|
protected PersistException |
FetchDeadlockException.makePersistException(java.lang.String message,
java.lang.Throwable cause) |
protected PersistException |
FetchMultipleException.makePersistException(java.lang.String message,
java.lang.Throwable cause) |
protected PersistException |
FetchTimeoutException.makePersistException(java.lang.String message,
java.lang.Throwable cause) |
protected PersistException |
RepositoryException.makePersistException(java.lang.String message,
java.lang.Throwable cause)
Subclasses can override this to provide a more specialized exception.
|
protected PersistException |
FetchNoneException.makePersistException(java.lang.String message,
java.lang.Throwable cause) |
protected PersistException |
FetchInterruptedException.makePersistException(java.lang.String message,
java.lang.Throwable cause) |
PersistException |
RepositoryException.toPersistException()
Converts RepositoryException into an appropriate PersistException.
|
PersistException |
RepositoryException.toPersistException(java.lang.String message)
Converts RepositoryException into an appropriate PersistException, prepending
the specified message.
|
Modifier and Type | Method and Description |
---|---|
void |
Trigger.afterDelete(S storable,
java.lang.Object state)
Called right after a storable has been successfully deleted.
|
void |
Trigger.afterInsert(S storable,
java.lang.Object state)
Called right after a storable has been successfully inserted.
|
void |
Trigger.afterTryDelete(S storable,
java.lang.Object state)
Called right after a storable has been successfully deleted via
tryDelete.
|
void |
Trigger.afterTryInsert(S storable,
java.lang.Object state)
Called right after a storable has been successfully inserted via
tryInsert.
|
void |
Trigger.afterTryUpdate(S storable,
java.lang.Object state)
Called right after a storable has been successfully updated via
tryUpdate.
|
void |
Trigger.afterUpdate(S storable,
java.lang.Object state)
Called right after a storable has been successfully updated.
|
java.lang.Object |
Trigger.beforeDelete(S storable)
Called before a storable is to be deleted.
|
java.lang.Object |
Trigger.beforeDelete(Transaction txn,
S storable)
Called before a storable is to be deleted.
|
java.lang.Object |
Trigger.beforeInsert(S storable)
Called before a storable is to be inserted.
|
java.lang.Object |
Trigger.beforeInsert(Transaction txn,
S storable)
Called before a storable is to be inserted.
|
java.lang.Object |
Trigger.beforeTryDelete(S storable)
Called before a storable is to be deleted via tryDelete.
|
java.lang.Object |
Trigger.beforeTryDelete(Transaction txn,
S storable)
Called before a storable is to be deleted via tryDelete.
|
java.lang.Object |
Trigger.beforeTryInsert(S storable)
Called before a storable is to be inserted via tryInsert.
|
java.lang.Object |
Trigger.beforeTryInsert(Transaction txn,
S storable)
Called before a storable is to be inserted via tryInsert.
|
java.lang.Object |
Trigger.beforeTryUpdate(S storable)
Called before a storable is to be updated via tryUpdate.
|
java.lang.Object |
Trigger.beforeTryUpdate(Transaction txn,
S storable)
Called before a storable is to be updated via tryUpdate.
|
java.lang.Object |
Trigger.beforeUpdate(S storable)
Called before a storable is to be updated.
|
java.lang.Object |
Trigger.beforeUpdate(Transaction txn,
S storable)
Called before a storable is to be updated.
|
void |
Transaction.commit()
If currently in a transaction, commits all changes to the storage layer
since the last commit within the transaction.
|
void |
Storable.delete()
Deletes this object from the storage layer by its primary key,
regardless of whether this object has actually been loaded or not.
|
void |
Query.deleteAll()
Deletes zero or more matching objects.
|
void |
Query.deleteAll(Query.Controller controller)
Deletes zero or more matching objects.
|
void |
Query.deleteOne()
Deletes one matching object.
|
void |
Query.deleteOne(Query.Controller controller)
Deletes one matching object.
|
void |
Transaction.exit()
Closes the current transaction, aborting all changes since the last
commit.
|
void |
Storable.insert()
Inserts a new persistent value for this object.
|
boolean |
Transaction.preCommit()
Calling this method commits all nested child transactions, closes all
scoped cursors, and locks out some interactions from other threads.
|
void |
Storage.truncate()
Attempts to quickly delete all Storables instances in this
Storage.
|
boolean |
Storable.tryDelete()
Deletes this object from the storage layer by its primary key,
regardless of whether this object has actually been loaded or not.
|
boolean |
Query.tryDeleteOne()
Deletes zero or one matching objects.
|
boolean |
Query.tryDeleteOne(Query.Controller controller)
Deletes zero or one matching objects.
|
boolean |
Storable.tryInsert()
Inserts a new persistent value for this object.
|
boolean |
Storable.tryUpdate()
Updates the persistent value of this object, regardless of whether this
object has actually been loaded or not.
|
void |
Storable.update()
Updates the persistent value of this object, regardless of whether this
object has actually been loaded or not.
|
Modifier and Type | Method and Description |
---|---|
Blob |
TextAdapter.Adapter.adaptToBlob(java.lang.String text) |
Modifier and Type | Method and Description |
---|---|
void |
ResyncCapability.Listener.afterDelete(S oldStorable,
java.lang.Object state)
Called right after a bogus storable has been successfully deleted.
|
void |
ResyncCapability.Listener.afterInsert(S newStorable,
java.lang.Object state)
Called right after a sync'd storable has been successfully inserted.
|
void |
ResyncCapability.Listener.afterUpdate(S newStorable,
java.lang.Object state)
Called right after a sync'd storable has been successfully updated.
|
java.lang.Object |
ResyncCapability.Listener.beforeDelete(S oldStorable)
Called before a bogus storable is to be deleted.
|
java.lang.Object |
ResyncCapability.Listener.beforeInsert(S newStorable)
Called before a sync'd storable is to be inserted.
|
java.lang.Object |
ResyncCapability.Listener.beforeUpdate(S newStorable)
Called before a sync'd storable is to be updated.
|
java.lang.Object |
ResyncCapability.Listener.beforeUpdate(S oldStorable,
S newStorable)
Overloaded version of beforeUpdate method which is passed the
storable in it's out-of-sync and sync'd states.
|
Modifier and Type | Method and Description |
---|---|
boolean |
DelegateSupport.doTryDelete(S storable) |
boolean |
DelegateSupport.doTryInsert(S storable) |
boolean |
DelegateSupport.doTryUpdate(S storable) |
SequenceValueProducer |
MasterSupport.getSequenceValueProducer(java.lang.String name)
Returns a sequence value producer by name, or throw PersistException if not found.
|
Modifier and Type | Method and Description |
---|---|
Layout |
LayoutFactory.layoutFor(boolean readOnly,
java.lang.Class<? extends Storable> type,
LayoutOptions options)
Returns the layout matching the current definition of the given type.
|
Layout |
LayoutCapability.layoutFor(java.lang.Class<? extends Storable> type)
Returns the layout matching the current definition of the given type.
|
Layout |
LayoutFactory.layoutFor(java.lang.Class<? extends Storable> type)
Returns the layout matching the current definition of the given type.
|
Layout |
LayoutFactory.layoutFor(java.lang.Class<? extends Storable> type,
LayoutOptions options)
Returns the layout matching the current definition of the given type.
|
Modifier and Type | Method and Description |
---|---|
java.io.OutputStream |
Blob.openOutputStream()
Returns an OutputStream for writing Blob data, positioned at the
start.
|
java.io.OutputStream |
FileBlob.openOutputStream() |
java.io.OutputStream |
Blob.openOutputStream(long pos)
Returns an OutputStream for writing Blob data.
|
java.io.OutputStream |
FileBlob.openOutputStream(long pos) |
java.io.OutputStream |
Blob.openOutputStream(long pos,
int bufferSize)
Returns an OutputStream for writing Blob data.
|
java.io.OutputStream |
FileBlob.openOutputStream(long pos,
int bufferSize) |
java.io.Writer |
Clob.openWriter()
Returns a Writer for writing Clob data, positioned at the start.
|
java.io.Writer |
StringClob.openWriter() |
java.io.Writer |
BlobClob.openWriter() |
java.io.Writer |
Clob.openWriter(long pos)
Returns a Writer for writing Clob data.
|
java.io.Writer |
StringClob.openWriter(long pos) |
java.io.Writer |
BlobClob.openWriter(long pos) |
java.io.Writer |
Clob.openWriter(long pos,
int bufferSize)
Returns a Writer for writing Clob data.
|
java.io.Writer |
StringClob.openWriter(long pos,
int bufferSize) |
java.io.Writer |
BlobClob.openWriter(long pos,
int bufferSize) |
void |
Clob.setLength(long length)
Set the length of this Clob, in characters.
|
void |
ByteArrayBlob.setLength(long length) |
void |
StringClob.setLength(long length) |
void |
CharArrayClob.setLength(long length) |
void |
BlobClob.setLength(long length) |
void |
Blob.setLength(long length)
Set the length of this Blob, in bytes.
|
void |
FileBlob.setLength(long length) |
void |
Clob.setValue(java.lang.String value)
Convenience method to overwrite all Clob data with the value of a single
String.
|
void |
StringClob.setValue(java.lang.String value) |
void |
AbstractBlob.setValue(java.lang.String value) |
void |
AbstractClob.setValue(java.lang.String value) |
void |
Blob.setValue(java.lang.String value)
Convenience method to overwrite all Blob data with the value of a single
String, applying UTF-8 encoding.
|
void |
AbstractBlob.setValue(java.lang.String value,
java.nio.charset.Charset charset) |
void |
Blob.setValue(java.lang.String value,
java.nio.charset.Charset charset)
Convenience method to overwrite all Blob data with the value of a single
String, applying the given charset encoding.
|
void |
AbstractBlob.setValue(java.lang.String value,
java.lang.String charsetName) |
void |
Blob.setValue(java.lang.String value,
java.lang.String charsetName)
Convenience method to overwrite all Blob data with the value of a single
String, applying the given charset encoding.
|
Modifier and Type | Method and Description |
---|---|
void |
StandardQuery.deleteAll() |
void |
StandardQuery.deleteAll(Query.Controller controller) |
void |
AbstractQuery.deleteOne() |
void |
AbstractQuery.deleteOne(Query.Controller controller) |
boolean |
StandardQuery.tryDeleteOne() |
boolean |
StandardQuery.tryDeleteOne(Query.Controller controller) |
Modifier and Type | Method and Description |
---|---|
long |
RawSupport.getLocator(Blob blob)
Returns the locator for the given Blob, returning zero if null.
|
long |
RawSupport.getLocator(Clob clob)
Returns the locator for the given Clob, returning zero if null.
|
void |
RawSupport.store(S storable,
byte[] key,
byte[] value)
Try to store the entry referenced by the given key with the given
value.
|
boolean |
RawSupport.tryDelete(S storable,
byte[] key)
Try to delete the entry referenced by the given key.
|
boolean |
RawSupport.tryInsert(S storable,
byte[] key,
byte[] value)
Try to insert the entry referenced by the given key with the given
value.
|
Modifier and Type | Method and Description |
---|---|
PersistException |
JDBCConnectionCapability.toPersistException(java.lang.Throwable e)
Transforms the given throwable into an appropriate persist exception.
|
Modifier and Type | Method and Description |
---|---|
Blob |
JDBCSupport.setBlobValue(java.sql.PreparedStatement ps,
int column,
Blob blob) |
Clob |
JDBCSupport.setClobValue(java.sql.PreparedStatement ps,
int column,
Clob clob) |
void |
JDBCSupport.updateBlob(Blob oldBlob,
Blob newBlob) |
void |
JDBCSupport.updateClob(Clob oldClob,
Clob newClob) |
Modifier and Type | Method and Description |
---|---|
void |
CheckpointCapability.forceCheckpoint()
Forces a checkpoint to run now, even if checkpointer is suspended or
disabled.
|
void |
CheckpointCapability.sync()
Synchronously flushes changes to stable storage, which is cheaper than
performing a checkpoint.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
SequenceValueProducer.nextDecimalValue()
Returns the next decimal string value from the sequence, which remains
positive.
|
java.lang.String |
AbstractSequenceValueProducer.nextDecimalValue() |
int |
SequenceValueProducer.nextIntValue()
Returns the next value from the sequence, which may wrap negative if all
positive values are exhausted.
|
int |
SequenceValueGenerator.nextIntValue()
Returns the next value from the sequence, which may wrap negative if all
positive values are exhausted.
|
int |
AbstractSequenceValueProducer.nextIntValue() |
long |
SequenceValueProducer.nextLongValue()
Returns the next value from the sequence, which may wrap negative if all
positive values are exhausted.
|
long |
SequenceValueGenerator.nextLongValue()
Returns the next value from the sequence, which may wrap negative if all
positive values are exhausted.
|
java.lang.String |
SequenceValueProducer.nextNumericalValue(int radix,
int minLength)
Returns the next numerical string value from the sequence, which remains
positive.
|
java.lang.String |
AbstractSequenceValueProducer.nextNumericalValue(int radix,
int minLength) |
void |
SequenceValueGenerator.reset(int initialValue)
Reset the sequence.
|
boolean |
SequenceValueProducer.returnReservedValues()
Allow any unused reserved values to be returned for re-use.
|
boolean |
SequenceValueGenerator.returnReservedValues()
Allow any unused reserved values to be returned for re-use.
|
Modifier and Type | Method and Description |
---|---|
PersistException |
ExceptionTransformer.toPersistException(java.lang.Throwable e)
Transforms the given throwable into an appropriate persist exception.
|
protected PersistException |
ExceptionTransformer.transformIntoPersistException(java.lang.Throwable e)
Override to support custom transformations, returning null if none is
applicable.
|
Modifier and Type | Method and Description |
---|---|
void |
TriggerManager.afterDelete(S storable,
java.lang.Object state) |
void |
TriggerManager.afterInsert(S storable,
java.lang.Object state) |
void |
TriggerManager.afterTryDelete(S storable,
java.lang.Object state) |
void |
TriggerManager.afterTryInsert(S storable,
java.lang.Object state) |
void |
TriggerManager.afterTryUpdate(S storable,
java.lang.Object state) |
void |
TriggerManager.afterUpdate(S storable,
java.lang.Object state) |
java.lang.Object |
TriggerManager.beforeDelete(S storable) |
java.lang.Object |
TriggerManager.beforeDelete(Transaction txn,
S storable) |
java.lang.Object |
TriggerManager.beforeInsert(S storable) |
java.lang.Object |
TriggerManager.beforeInsert(Transaction txn,
S storable) |
java.lang.Object |
TriggerManager.beforeTryDelete(S storable) |
java.lang.Object |
TriggerManager.beforeTryDelete(Transaction txn,
S storable) |
java.lang.Object |
TriggerManager.beforeTryInsert(S storable) |
java.lang.Object |
TriggerManager.beforeTryInsert(Transaction txn,
S storable) |
java.lang.Object |
TriggerManager.beforeTryUpdate(S storable) |
java.lang.Object |
TriggerManager.beforeTryUpdate(Transaction txn,
S storable) |
java.lang.Object |
TriggerManager.beforeUpdate(S storable) |
java.lang.Object |
TriggerManager.beforeUpdate(Transaction txn,
S storable) |
Blob |
LobEngine.createNewBlob(int blockSize)
Returns a new Blob whose length is zero.
|
Clob |
LobEngine.createNewClob(int blockSize)
Returns a new Clob whose length is zero.
|
void |
LobEngine.deleteLob(Lob lob)
Deletes Lob data, freeing up all space consumed by it.
|
void |
LobEngine.deleteLob(long locator)
Deletes Lob data, freeing up all space consumed by it.
|
void |
LobEngine.setBlobValue(long locator,
Blob data)
Stores a value into a Blob, replacing anything that was there
before.
|
void |
LobEngine.setBlobValue(long locator,
java.io.InputStream data)
Stores a value into a Blob, replacing anything that was there
before.
|
void |
LobEngine.setClobValue(long locator,
Clob data)
Stores a value into a Clob, replacing anything that was there
before.
|
void |
LobEngine.setClobValue(long locator,
java.io.Reader data)
Stores a value into a Clob, replacing anything that was there
before.
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
TransactionManager.abortTxn(Txn txn)
Aborts and closes the given internal transaction.
|
void |
TransactionPair.commit() |
protected abstract boolean |
TransactionManager.commitTxn(Txn txn)
Commits and closes the given internal transaction.
|
void |
TransactionPair.exit() |
boolean |
TransactionPair.preCommit() |
Copyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.