org.nakedobjects.metamodel.adapter.oid
Interface Oid

All Superinterfaces:
Encodable
All Known Subinterfaces:
DirectlyStringableOid
All Known Implementing Classes:
AggregatedOid

public interface Oid
extends Encodable


Method Summary
 void clearPrevious()
          Indicate that the previous value has been used to remap the adapter and should not been cleared.
 void copyFrom(Oid oid)
          Copies the content of the specified oid into this oid.
 Oid getPrevious()
          Returns the pending oid if there is one.
 boolean hasPrevious()
          Returns true if this oid contains a previous value, specifically that the Oid was changed from transient to persistent.
 boolean isTransient()
          Flags whether this OID is temporary, and is for a transient object..
 void makePersistent()
          Marks the Oid as persistent.
 
Methods inherited from interface org.nakedobjects.metamodel.commons.encoding.Encodable
encode
 

Method Detail

copyFrom

void copyFrom(Oid oid)
Copies the content of the specified oid into this oid.

After this call the #hashCode() return by both the specified object and this object will be the same, and both objects will be equal.


getPrevious

Oid getPrevious()
Returns the pending oid if there is one.

See Also:
hasPrevious(), clearPrevious()

hasPrevious

boolean hasPrevious()
Returns true if this oid contains a previous value, specifically that the Oid was changed from transient to persistent.

See Also:
getPrevious(), clearPrevious()

clearPrevious

void clearPrevious()
Indicate that the previous value has been used to remap the adapter and should not been cleared.

See Also:
getPrevious(), hasPrevious()

isTransient

boolean isTransient()
Flags whether this OID is temporary, and is for a transient object..


makePersistent

void makePersistent()
Marks the Oid as persistent.



Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.