public interface Transaction
TransactionFunction
s to provide access to the
object graph stored by GoshawkDB. Transaction
must not be used outside of a transaction.Modifier and Type | Method and Description |
---|---|
GoshawkObj |
createObject(java.nio.ByteBuffer value,
GoshawkObj... references)
Create a new object and set its value and references.
|
GoshawkObj |
getObject(VarUUId vUUId)
Fetches the object specified by its unique object id.
|
GoshawkObj |
getRoot()
Get the root of the object-graph.
|
void |
retry()
Perform a retry operation.
|
void retry()
GoshawkObj getRoot()
GoshawkObj createObject(java.nio.ByteBuffer value, GoshawkObj... references)
value
- The value to set the new object to. The buffer will be cloned and the
contents copied. Therefore any changes you make to this param after calling
this method will be ignored (you will need to call a set method). The
copying will not alter any position, limit, capacity or marks of the value
ByteBuffer. The value is taken to be from position 0 to the current limit
of the buffer.references
- The list of objects to which the new object refers. Again, the array of
references is copied.GoshawkObj getObject(VarUUId vUUId)
vUUId
- The id of the object to fetch