|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nakedobjects.plugins.headless.embedded.internal.StandaloneAdapter
public class StandaloneAdapter
Only provides a concrete implementation of the methods corresponding to
the NakedObjectMM interface.
| Constructor Summary | |
|---|---|
StandaloneAdapter(NakedObjectSpecification spec,
java.lang.Object domainObject,
PersistenceState persistenceState)
|
|
| Method Summary | |
|---|---|
void |
changeState(ResolveState newState)
Not supported, always throws an exception. |
void |
checkLock(Version version)
Not supported, always throws an exception. |
void |
fireChangedEvent()
Not supported, always throws an exception. |
java.lang.String |
getIconName()
Not supported, always throws an exception. |
Instance |
getInstance(Specification specification)
Not supported, always throws an exception. |
java.lang.Object |
getObject()
Returns the domain object as provided in the constructor. |
Oid |
getOid()
Not supported, always throws an exception. |
NakedObject |
getOwner()
Always returns null. |
ResolveState |
getResolveState()
Not supported, always throws an exception. |
NakedObjectSpecification |
getSpecification()
Returns the NakedObjectSpecification as provided in the constructor. |
TypeOfFacet |
getTypeOfFacet()
Returns the overridden TypeOfFacet, else
looks up from specification (if any). |
Version |
getVersion()
Not supported, always throws an exception. |
boolean |
isAggregated()
Not supported, always throws an exception. |
boolean |
isPersistent()
Whether the object is persisted. |
boolean |
isTransient()
Whether the object is not persisted. |
void |
replacePojo(java.lang.Object pojo)
Replaces the domain object. |
void |
setOptimisticLock(Version version)
Not supported, always throws an exception. |
void |
setTypeOfFacet(TypeOfFacet typeOfFacet)
Override (or set the) TypeOfFacet. |
java.lang.String |
titleString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StandaloneAdapter(NakedObjectSpecification spec,
java.lang.Object domainObject,
PersistenceState persistenceState)
| Method Detail |
|---|
public NakedObjectSpecification getSpecification()
NakedObjectSpecification as provided in the constructor.
getSpecification in interface InstancegetSpecification in interface NakedObjectMMpublic java.lang.Object getObject()
getObject in interface NakedObjectMMpublic void replacePojo(java.lang.Object pojo)
domain object.
replacePojo in interface NakedObjectMMpublic boolean isPersistent()
As per the PersistenceState provided in the constructor.
isPersistent in interface NakedObjectMMpublic boolean isTransient()
As per the PersistenceState provided in the constructor.
isTransient in interface NakedObjectMMpublic NakedObject getOwner()
getOwner in interface Instancepublic java.lang.String titleString()
titleString in interface NakedObjectMMpublic TypeOfFacet getTypeOfFacet()
overridden TypeOfFacet, else
looks up from specification (if any).
getTypeOfFacet in interface NakedObjectMMpublic void setTypeOfFacet(TypeOfFacet typeOfFacet)
TypeOfFacet.
setTypeOfFacet in interface NakedObjectMMpublic ResolveState getResolveState()
getResolveState in interface NakedObjectjava.lang.UnsupportedOperationExceptionpublic void changeState(ResolveState newState)
changeState in interface NakedObjectjava.lang.UnsupportedOperationExceptionpublic Oid getOid()
getOid in interface NakedObjectjava.lang.UnsupportedOperationExceptionpublic boolean isAggregated()
isAggregated in interface NakedObjectjava.lang.UnsupportedOperationExceptionpublic java.lang.String getIconName()
getIconName in interface NakedObjectjava.lang.UnsupportedOperationExceptionpublic Instance getInstance(Specification specification)
getInstance in interface NakedObjectMMjava.lang.UnsupportedOperationExceptionpublic Version getVersion()
getVersion in interface NakedObjectjava.lang.UnsupportedOperationExceptionpublic void checkLock(Version version)
checkLock in interface NakedObjectjava.lang.UnsupportedOperationExceptionpublic void setOptimisticLock(Version version)
setOptimisticLock in interface NakedObjectjava.lang.UnsupportedOperationExceptionpublic void fireChangedEvent()
fireChangedEvent in interface NakedObjectjava.lang.UnsupportedOperationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||