public final class RootOidDefault extends Object implements Serializable, RootOid
RootOid.ComparisonOid.Matchers, Oid.State| Constructor and Description |
|---|
RootOidDefault(DataInputExtended input) |
RootOidDefault(ObjectSpecId objectSpecId,
String identifier,
Oid.State state) |
RootOidDefault(ObjectSpecId objectSpecId,
String identifier,
Oid.State state,
Long versionSequence) |
RootOidDefault(ObjectSpecId objectSpecId,
String identifier,
Oid.State state,
Long versionSequence,
Long versionUtcTimestamp)
If specify version sequence, can optionally specify utc timestamp that the oid was changed.
|
RootOidDefault(ObjectSpecId objectSpecId,
String identifier,
Oid.State state,
Long versionSequence,
String versionUser)
If specify version sequence, can optionally specify the user that changed the object.
|
RootOidDefault(ObjectSpecId objectSpecId,
String identifier,
Oid.State state,
Long versionSequence,
String versionUser,
Long versionUtcTimestamp)
If specify version sequence, can optionally specify user and/or utc timestamp that the oid was changed.
|
RootOidDefault(ObjectSpecId objectSpecId,
String identifier,
Oid.State state,
Version version) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.isis.applib.services.bookmark.Bookmark |
asBookmark() |
RootOidDefault |
asPersistent(String identifier)
Returns a new RootOid for the same
TypedOid.getObjectSpecId(), but persistent and with the specified identifier. |
RootOid.Comparison |
compareAgainst(RootOid other) |
static RootOid |
create(org.apache.isis.applib.services.bookmark.Bookmark bookmark) |
static RootOidDefault |
create(ObjectSpecId objectSpecId,
String identifier) |
static RootOidDefault |
create(ObjectSpecId objectSpecId,
String identifier,
Long versionSequence) |
static RootOidDefault |
create(ObjectSpecId objectSpecId,
String identifier,
Long versionSequence,
Long versionUtcTimestamp) |
static RootOidDefault |
create(ObjectSpecId objectSpecId,
String identifier,
Long versionSequence,
String versionUser) |
static RootOidDefault |
create(ObjectSpecId objectSpecId,
String identifier,
Long versionSequence,
String versionUser,
Long versionUtcTimestamp) |
static RootOidDefault |
createTransient(ObjectSpecId objectSpecId,
String identifier) |
static RootOidDefault |
deString(String oidStr,
OidMarshaller oidMarshaller) |
static RootOid |
deStringEncoded(String urlEncodedOidStr,
OidMarshaller oidMarshaller) |
void |
encode(DataOutputExtended output)
Returns the domain object's value as an encoded byte array via the
encoder.
|
String |
enString(OidMarshaller oidMarshaller)
A string representation of this
Oid. |
String |
enStringNoVersion(OidMarshaller oidMarshaller) |
boolean |
equals(Object other) |
boolean |
equals(RootOid other) |
String |
getIdentifier() |
ObjectSpecId |
getObjectSpecId() |
Version |
getVersion() |
int |
hashCode() |
boolean |
isPersistent() |
boolean |
isTransient()
Flags whether this OID is for a transient (not-yet-persisted) object,
or a view model object, or for a persistent object.
|
boolean |
isViewModel() |
void |
setVersion(Version version) |
String |
toString() |
public RootOidDefault(ObjectSpecId objectSpecId, String identifier, Oid.State state)
public RootOidDefault(ObjectSpecId objectSpecId, String identifier, Oid.State state, Long versionSequence)
public RootOidDefault(ObjectSpecId objectSpecId, String identifier, Oid.State state, Long versionSequence, String versionUser)
public RootOidDefault(ObjectSpecId objectSpecId, String identifier, Oid.State state, Long versionSequence, Long versionUtcTimestamp)
public RootOidDefault(ObjectSpecId objectSpecId, String identifier, Oid.State state, Long versionSequence, String versionUser, Long versionUtcTimestamp)
public RootOidDefault(ObjectSpecId objectSpecId, String identifier, Oid.State state, Version version)
public RootOidDefault(DataInputExtended input) throws IOException
IOExceptionpublic static RootOidDefault createTransient(ObjectSpecId objectSpecId, String identifier)
public static RootOidDefault create(ObjectSpecId objectSpecId, String identifier)
public static RootOidDefault create(ObjectSpecId objectSpecId, String identifier, Long versionSequence)
public static RootOidDefault create(ObjectSpecId objectSpecId, String identifier, Long versionSequence, String versionUser)
public static RootOidDefault create(ObjectSpecId objectSpecId, String identifier, Long versionSequence, Long versionUtcTimestamp)
public static RootOidDefault create(ObjectSpecId objectSpecId, String identifier, Long versionSequence, String versionUser, Long versionUtcTimestamp)
public void encode(DataOutputExtended output) throws IOException
Encodableencode in interface EncodableIOExceptionpublic static RootOid deStringEncoded(String urlEncodedOidStr, OidMarshaller oidMarshaller)
public static RootOidDefault deString(String oidStr, OidMarshaller oidMarshaller)
public String enString(OidMarshaller oidMarshaller)
OidOid.public String enStringNoVersion(OidMarshaller oidMarshaller)
enStringNoVersion in interface Oidpublic ObjectSpecId getObjectSpecId()
getObjectSpecId in interface TypedOidpublic String getIdentifier()
getIdentifier in interface RootOidpublic boolean isTransient()
Oid
In the case of an AggregatedOid, is determined by the state
of its parent's state.
isTransient in interface Oidpublic boolean isViewModel()
isViewModel in interface Oidpublic boolean isPersistent()
isPersistent in interface Oidpublic RootOidDefault asPersistent(String identifier)
RootOidTypedOid.getObjectSpecId(), but persistent and with the specified identifier.asPersistent in interface RootOidpublic Version getVersion()
getVersion in interface Oidpublic void setVersion(Version version)
setVersion in interface OidsetVersion in interface RootOidpublic RootOid.Comparison compareAgainst(RootOid other)
compareAgainst in interface RootOidpublic org.apache.isis.applib.services.bookmark.Bookmark asBookmark()
asBookmark in interface RootOidCopyright © 2010–2014 The Apache Software Foundation. All rights reserved.