public interface RootOid extends TypedOid
Oid specific to a root adapter.
The root adapter/pojo can be recreated with no further information; the
TypedOid.getObjectSpecId() can be used to fetch the corresponding
ObjectSpecification using SpecificationLoaderSpi#lookupBySpecId(String).
As such, is directly akin to the DSP's oid that is of the form CUS|1234567A, where the overall form is a simple string and also identifies the type of the object.
In addition, can be directly encoded/decoded into strings. The Oid.enString(OidMarshaller) interface
is defined in the interface; implementations must also provide a static
deString(String) factory method.
| Modifier and Type | Interface and Description |
|---|---|
static class |
RootOid.Comparison
The result of performing a
comparison. |
Oid.Matchers, Oid.State| Modifier and Type | Method and Description |
|---|---|
org.apache.isis.applib.services.bookmark.Bookmark |
asBookmark() |
RootOid |
asPersistent(String identifier)
Returns a new RootOid for the same
TypedOid.getObjectSpecId(), but persistent and with the specified identifier. |
RootOid.Comparison |
compareAgainst(RootOid oid2) |
String |
getIdentifier() |
void |
setVersion(Version version) |
getObjectSpecIdenString, enStringNoVersion, getVersion, isPersistent, isTransient, isViewModelString getIdentifier()
void setVersion(Version version)
setVersion in interface OidRootOid asPersistent(String identifier)
TypedOid.getObjectSpecId(), but persistent and with the specified identifier.RootOid.Comparison compareAgainst(RootOid oid2)
org.apache.isis.applib.services.bookmark.Bookmark asBookmark()
Copyright © 2010–2014 The Apache Software Foundation. All rights reserved.