pt.ist.fenixframework.backend.ogm
Class OgmDomainObject

Package class diagram package OgmDomainObject
java.lang.Object
  extended by pt.ist.fenixframework.core.AbstractDomainObject
      extended by pt.ist.fenixframework.core.AbstractDomainObjectAdapter
          extended by pt.ist.fenixframework.backend.ogm.OgmDomainObject
All Implemented Interfaces:
Serializable, DomainObject

public abstract class OgmDomainObject
extends AbstractDomainObjectAdapter

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class pt.ist.fenixframework.core.AbstractDomainObjectAdapter
AbstractDomainObjectAdapter.SerializedForm
 
Constructor Summary
protected OgmDomainObject()
           
protected OgmDomainObject(DomainObjectAllocator.OID oid)
           
 
Method Summary
protected  void ensureOid()
          Set the identifier (oid) of the object that is being created.
 String getExternalId()
           
 OgmOID getOid()
          Returns an internal global representation of this object.
 
Methods inherited from class pt.ist.fenixframework.core.AbstractDomainObjectAdapter
makeSerializedForm
 
Methods inherited from class pt.ist.fenixframework.core.AbstractDomainObject
equals, hashCode, toString, writeReplace
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OgmDomainObject

protected OgmDomainObject()

OgmDomainObject

protected OgmDomainObject(DomainObjectAllocator.OID oid)
Method Detail

ensureOid

protected void ensureOid()
Description copied from class: AbstractDomainObject
Set the identifier (oid) of the object that is being created. This method is invoked by the no-arg constructor. It is only intented to be invoked from within a constructor (with the exception of AbstractDomainObject.AbstractDomainObject(DomainObjectAllocator.OID), which has its own way of restoring the object's id.

Overrides:
ensureOid in class AbstractDomainObject

getOid

public OgmOID getOid()
Description copied from class: AbstractDomainObject
Returns an internal global representation of this object. Although, it can be implemented simply as a call to AbstractDomainObject.getExternalId(), this method enables code **within** the framework to leverage on the knowledge of the concrete identifier, thus being more efficient. This method should only be used by code internal to the framework.

Overrides:
getOid in class AbstractDomainObject

getExternalId

public final String getExternalId()
Specified by:
getExternalId in interface DomainObject
Overrides:
getExternalId in class AbstractDomainObject


Copyright © 2013. All Rights Reserved.