|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface OidGenerator
| Method Summary | |
|---|---|
void |
convertTransientToPersistentOid(Oid oid)
Convert the Oid from transient to
persistent, storing the previous Oid as Oid.getPrevious() |
Oid |
createTransientOid(java.lang.Object pojo)
Create a new transient Oid for the
supplied pojo, uniquely distinguishable from any other Oid. |
OidStringifier |
getOidStringifier()
An OidStringifier to use for stringifying instances of the concrete Oid
generated by this generator. |
| Methods inherited from interface org.nakedobjects.metamodel.commons.debug.DebugInfo |
|---|
debugData, debugTitle |
| Methods inherited from interface org.nakedobjects.metamodel.commons.component.SessionScopedComponent |
|---|
close, open |
| Methods inherited from interface org.nakedobjects.metamodel.commons.component.Injectable |
|---|
injectInto |
| Method Detail |
|---|
Oid createTransientOid(java.lang.Object pojo)
transient Oid for the
supplied pojo, uniquely distinguishable from any other Oid.
void convertTransientToPersistentOid(Oid oid)
Oid from transient to
persistent, storing the previous Oid as Oid.getPrevious()
Implementation notes:
AdapterManager will need to be updated so that the
adapter is re-mapped by the new Oid. However,
the not the responsibility of the OidGenerator to do this;
it merely ensures that the Oid is in the correct new state.
Oid
prior to call. Check for details.
OidStringifier getOidStringifier()
OidStringifier to use for stringifying instances of the concrete Oid
generated by this generator.
All Oids (ultimately being Encodable) can be stringified using OidStringifierHex.
However, some implementations (for example SerialOid) implement DirectlyStringableOid which
means that we can get a more user-friendly string representation of the Oid.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||