Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
CDO/Client
< CDO
Revision as of 06:24, 19 October 2007 by Stepper.esc-net.de (Talk | contribs) (→CDOObject Introduction)
CDOObject Introduction
CDOObjects represent the object instances of the models that your application deals with. Internally each such object is managed by a singleton CDOStateMachine. The state machine accurately transits objects and trees of objects through the states TRANSIENT, NEW, CLEAN, DIRTY, PROXY and CONFLICT.
A CDOObject is basically an EObject with a handful of additional read-only features as the following java code shows:
public interface CDOObject extends EObject { public CDOClass cdoClass(); public CDOID cdoID(); public CDOState cdoState(); public CDOView cdoView(); public CDOResource cdoResource(); public CDORevision cdoRevision(); }
The method names differ from the regular Java getter notation to make it less likely that name collisions with your model name space occur. To understand the details about the return types you should browse the JavaDoc.
CDOObject Categories
Model Type | Native | Legacy | Meta | |||
Dynamic | Generated | Unwoven | Woven | |||
Development Artifacts |
Ecore | Unaffected | N/A | |||
Genmodel | N/A | Slightly modified | Unaffected | |||
Instance Interface | CDOObject | EObject | EModelObject | |||
Statemachine Interface | CDOAdapter | CDOCallback | CDOMeta | |||
Location of Internal Values |
class | DynamicCDOObject | Java Byte Code | |||
store | CDOObject | N/A | ||||
view | CDOAdapter | CDOCallback | CDOMeta | |||
id | CDOSession | |||||
state | N/A | |||||
revision | ||||||
resource | ||||||
Location of Model Values per CDOState |
TRANSIENT | EObject | ||||
NEW | CDORevision | EObject and CDORevision | ||||
DIRTY | ||||||
CLEAN | EModelObject |
Wikis: CDO | Net4j | EMF | Eclipse
CDOObject Categories
Model Type | Native | Legacy | Meta | |||
Dynamic | Generated | Unwoven | Woven | |||
Development Artifacts |
Ecore | Unaffected | N/A | |||
Genmodel | N/A | Slightly modified | Unaffected | |||
Instance Interface | CDOObject | EObject | EModelObject | |||
Statemachine Interface | CDOAdapter | CDOCallback | CDOMeta | |||
Location of Internal Values |
class | DynamicCDOObject | Java Byte Code | |||
store | CDOObject | N/A | ||||
view | CDOAdapter | CDOCallback | CDOMeta | |||
id | CDOSession | |||||
state | N/A | |||||
revision | ||||||
resource | ||||||
Location of Model Values per CDOState |
TRANSIENT | EObject | ||||
NEW | CDORevision | EObject and CDORevision | ||||
DIRTY | ||||||
CLEAN | EModelObject |