You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to communicate the Uri of a newly inserted row, I want a mechanism to retrieve the Uri from a RowReference, if possible.
There are conditions under which a RowReference can't be expressed as a Uri, namely when the respective row has not been committed yet or when the TransactionContext of that transaction is not available. So we probably have to consider an Optional<Uri>.
This is similar to a "serialize"/"unserialize" mechanism for RowReferences to committed rows, because with RowUriReference you can easily create a RowReference from a Uri.
The text was updated successfully, but these errors were encountered:
We add another method to RowReference which returns an Optional<Uri>.
publicinterfaceRowReference<T>
{
…
/** Returns the Optional Uri of the row this refers to. */@NonNullOptional<Uri> rowUri(@NonNullTransactionContexttransactionContext);
}
Some RowReferences don't know their table Uri, so we'll also have to extend the Table interface like so:
publicinterfaceTable<T>
{
…
/** Returns the Uri of a row with the given row id*/@NonNullUrirowUri(longid);
}
In order to communicate the Uri of a newly inserted row, I want a mechanism to retrieve the Uri from a
RowReference
, if possible.There are conditions under which a
RowReference
can't be expressed as aUri
, namely when the respective row has not been committed yet or when theTransactionContext
of that transaction is not available. So we probably have to consider anOptional<Uri>
.This is similar to a "serialize"/"unserialize" mechanism for
RowReference
s to committed rows, because withRowUriReference
you can easily create aRowReference
from aUri
.The text was updated successfully, but these errors were encountered: