Jump to: navigation, search

Difference between revisions of "CDO/Client"

< CDO
(CDOObject Introduction)
(CDOObject Introduction)
Line 1: Line 1:
 
==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
 +
[[Image:CDOObject.png]]
  
 
A CDOObject is basically an EObject with a handful of additional read-only features as the following java code shows:
 
A CDOObject is basically an EObject with a handful of additional read-only features as the following java code shows:
Line 13: Line 16:
 
  }
 
  }
  
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.
+
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.
 
+
[[Image:CDOObject.png]]
+
  
 
==CDOObject Categories==
 
==CDOObject Categories==

Revision as of 06:22, 19 October 2007

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 CDOObject.png

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

Wikis: CDO | Net4j | EMF | Eclipse