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 |
---|---|
GoshawkObjRef |
createObject(java.nio.ByteBuffer value,
GoshawkObjRef... references)
Create a new object and set its value and references.
|
GoshawkObjRef |
getObject(GoshawkObjRef objRef)
Fetches the object specified by a reference.
|
java.util.Map<java.lang.String,GoshawkObjRef> |
getRoots()
Get the roots of the object-graph.
|
void |
retry()
Perform a retry operation.
|
void retry()
java.util.Map<java.lang.String,GoshawkObjRef> getRoots()
GoshawkObjRef createObject(java.nio.ByteBuffer value, GoshawkObjRef... references)
Capability
on the object for the lifetime of the client
connection.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.GoshawkObjRef getObject(GoshawkObjRef objRef)
objRef
- Reference of the object to retrieve