pt.ist.fenixframework.backend.mem
Class MemDomainObject
java.lang.Object
pt.ist.fenixframework.core.AbstractDomainObject
pt.ist.fenixframework.core.AbstractDomainObjectAdapter
pt.ist.fenixframework.backend.mem.MemDomainObject
- All Implemented Interfaces:
- Serializable, DomainObject
public class MemDomainObject
- extends AbstractDomainObjectAdapter
- See Also:
- Serialized Form
Method Summary |
protected void |
ensureOid()
Set the identifier (oid ) of the object that is being created. |
String |
getExternalId()
|
Long |
getOid()
Returns an internal global representation of this object. |
MemDomainObject
protected MemDomainObject()
MemDomainObject
protected MemDomainObject(DomainObjectAllocator.OID oid)
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 Long 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.