|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nakedobjects.metamodel.adapter.InstanceAbstract
org.nakedobjects.runtime.persistence.adapterfactory.pojo.PojoAdapter
public class PojoAdapter
| Constructor Summary | |
|---|---|
PojoAdapter(java.lang.Object pojo,
Oid oid)
|
|
| Method Summary | |
|---|---|
void |
changeState(ResolveState newState)
|
void |
checkLock(Version version)
|
protected void |
finalize()
|
void |
fireChangedEvent()
Guaranteed to be called whenever this object is known to have changed (specifically, by the ObjectStorePersistor). |
protected java.lang.String |
getDefaultTitle()
|
java.lang.String |
getIconName()
Returns the name of the icon to use to represent this object. |
Instance |
getInstance(Specification specification)
Not supported by this implementation. |
java.lang.Object |
getObject()
|
Oid |
getOid()
|
ResolveState |
getResolveState()
|
NakedObjectSpecification |
getSpecification()
Downcasts getSpecification(). |
TypeOfFacet |
getTypeOfFacet()
|
Version |
getVersion()
|
boolean |
isAggregated()
|
boolean |
isPersistent()
Just delegates to resolve state. |
boolean |
isTransient()
Just delegates to resolve state. |
protected NakedObjectSpecification |
loadSpecification()
|
void |
replacePojo(java.lang.Object pojo)
Sometimes it is necessary to manage the replacement of the underlying domain object (by another component such as an object store). |
protected void |
setOid(Oid oid)
|
void |
setOptimisticLock(Version version)
|
void |
setTypeOfFacet(TypeOfFacet typeOfFacet)
|
java.lang.String |
titleString()
Returns the title from the underlying business object. |
java.lang.String |
toString()
|
protected void |
toString(ToString str)
|
| Methods inherited from class org.nakedobjects.metamodel.adapter.InstanceAbstract |
|---|
getOwner, getSpecificationNoLoad |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.nakedobjects.metamodel.adapter.Instance |
|---|
getOwner |
| Constructor Detail |
|---|
public PojoAdapter(java.lang.Object pojo,
Oid oid)
| Method Detail |
|---|
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwableprotected NakedObjectSpecification loadSpecification()
loadSpecification in class InstanceAbstractpublic final NakedObjectSpecification getSpecification()
getSpecification().
getSpecification in interface InstancegetSpecification in interface NakedObjectMMgetSpecification in class InstanceAbstractpublic java.lang.Object getObject()
getObject in interface NakedObjectMMpublic void replacePojo(java.lang.Object pojo)
replacePojo in interface NakedObjectMMpublic ResolveState getResolveState()
getResolveState in interface NakedObjectpublic void changeState(ResolveState newState)
changeState in interface NakedObjectpublic boolean isPersistent()
resolve state.
isPersistent in interface NakedObjectMMResolveState.isPersistent(),
isTransient()public boolean isTransient()
resolve state.
isTransient in interface NakedObjectMMResolveState.isTransient(),
isPersistent()public Oid getOid()
getOid in interface NakedObjectprotected void setOid(Oid oid)
public boolean isAggregated()
isAggregated in interface NakedObjectpublic Version getVersion()
getVersion in interface NakedObjectpublic void checkLock(Version version)
checkLock in interface NakedObjectpublic void setOptimisticLock(Version version)
setOptimisticLock in interface NakedObjectpublic java.lang.String titleString()
If the object has not yet been resolved the specification will be asked for a unresolved title, which could of been persisted by the persistence mechanism. If either of the above provides null as the title then this method will return a title relating to the name of the object type, e.g. "A Customer", "A Product".
titleString in interface NakedObjectMMpublic java.lang.String toString()
toString in class java.lang.Objectprotected java.lang.String getDefaultTitle()
protected void toString(ToString str)
public java.lang.String getIconName()
getIconName in interface NakedObjectpublic TypeOfFacet getTypeOfFacet()
getTypeOfFacet in interface NakedObjectMMpublic void setTypeOfFacet(TypeOfFacet typeOfFacet)
setTypeOfFacet in interface NakedObjectMMpublic Instance getInstance(Specification specification)
getInstance in interface NakedObjectMMpublic void fireChangedEvent()
This implementation does nothing, but subclasses (for example PojoAdapterX) might provide listeners.
fireChangedEvent in interface NakedObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||