|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nakedobjects.metamodel.adapter.oid.AggregatedOid
public class AggregatedOid
Used as the Oid for collections, values and @Aggregated types.
The Hibernate Object Store has custom handling for collections.
| Constructor Summary | |
|---|---|
AggregatedOid(DataInputExtended input)
|
|
AggregatedOid(Oid oid,
Identifier identifier)
|
|
AggregatedOid(Oid oid,
java.lang.String id)
|
|
| 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. |
void |
encode(DataOutputExtended output)
Returns the domain object's value as an encoded byte array via the encoder. |
boolean |
equals(AggregatedOid other)
|
boolean |
equals(java.lang.Object other)
|
java.lang.String |
getFieldName()
|
Oid |
getParentOid()
|
Oid |
getPrevious()
Returns the pending oid if there is one. |
int |
hashCode()
|
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. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AggregatedOid(Oid oid,
java.lang.String id)
public AggregatedOid(Oid oid,
Identifier identifier)
public AggregatedOid(DataInputExtended input)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public void encode(DataOutputExtended output)
throws java.io.IOException
Encodable
encode in interface Encodablejava.io.IOExceptionpublic Oid getParentOid()
public java.lang.String getFieldName()
public void makePersistent()
Oid
makePersistent in interface Oidpublic Oid getPrevious()
Oid
getPrevious in interface OidOid.hasPrevious(),
Oid.clearPrevious()public boolean hasPrevious()
Oidprevious value, specifically that the Oid was changed from
transient to persistent.
hasPrevious in interface OidOid.getPrevious(),
Oid.clearPrevious()public void clearPrevious()
Oidprevious value has been used to remap the adapter
and should not been cleared.
clearPrevious in interface OidOid.getPrevious(),
Oid.hasPrevious()public void copyFrom(Oid oid)
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.
copyFrom in interface Oidpublic boolean isTransient()
Oid
isTransient in interface Oidpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic boolean equals(AggregatedOid other)
public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||