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.
Difference between revisions of "CDO/Client"
< CDO
(→CDOObject Introduction) |
(→CDOObject Introduction) |
||
Line 1: | Line 1: | ||
==CDOObject Introduction== | ==CDOObject Introduction== | ||
− | + | 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 interface [http://download.eclipse.org/modeling/emft/cdo/javadoc/0.8.0/org/eclipse/emf/cdo/CDOObject.html CDOObject] extends [http://download.eclipse.org/modeling/emf/emf/javadoc/2.4.0/org/eclipse/emf/ecore/EObject.html EObject] |
− | + | { | |
− | + | public [http://download.eclipse.org/modeling/emft/cdo/javadoc/0.8.0/org/eclipse/emf/cdo/protocol/model/CDOClass.html CDOClass] cdoClass(); | |
− | + | public [http://download.eclipse.org/modeling/emft/cdo/javadoc/0.8.0/org/eclipse/emf/cdo/protocol/CDOID.html CDOID] cdoID(); | |
− | + | public [http://download.eclipse.org/modeling/emft/cdo/javadoc/0.8.0/org/eclipse/emf/cdo/CDOState.html CDOState] cdoState(); | |
− | + | public [http://download.eclipse.org/modeling/emft/cdo/javadoc/0.8.0/org/eclipse/emf/cdo/CDOView.html CDOView] cdoView(); | |
− | + | public [http://download.eclipse.org/modeling/emft/cdo/javadoc/0.8.0/org/eclipse/emf/cdo/eresource/CDOResource.html CDOResource] cdoResource(); | |
− | } | + | public [http://download.eclipse.org/modeling/emft/cdo/javadoc/0.8.0/org/eclipse/emf/cdo/protocol/revision/CDORevision.html CDORevision] cdoRevision(); |
− | + | } | |
+ | |||
+ | The method names differ from the regular Java getter notation to make it less likely that name collisions with your model namespace occur. To understand the details about the return types you should browse the JavaDoc. | ||
[[Image:CDOObject.png]] | [[Image:CDOObject.png]] |
Revision as of 06:15, 19 October 2007
CDOObject Introduction
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 namespace 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 |