JCR (JSR-170) API main concepts

JCR (JSR-170) API main concepts

Java Content Repository API as well as other Java language related standards is created within the Java Community Process http://jcp.org/ as a result of collaboration of an expert group and the Java community and known as JSR-170 (Java Specification Request) http://www.jcp.org/en/jsr/detail?id=170.

Data model

As the main purpose of content repository is to maintain the data - the heart of CR is the data model:

  • The main data storage abstraction of JCR's data model is a workspace.
  • Each repository should have one or more workspaces.
  • The content is stored in a workspace as a hierarchy of items.
  • Each workspace has its own hierarchy of items.
There are two types of items: node and property. The following UML diagram summarizes the relationships between these entities. Each item (node and property) has one parent Node (except root node). Each node can have one or more child nodes and properties.

item.gif

Node is intended to support the data hierarchy. They are typed using namespaced names which allows the content to be structured according to standardized constraints. A node may be versioned through an associated version graph (optional feature)

Property stored data are values of predefined types (String, Binary, Long, Boolean, Double, Date, Reference, Path).

It is important to note that the data model for the interface (the repository model) is rarely the same as the data models used by the repository's underlying storage subsystems.
The repository knows how to make the client's changes persistent because that is part of the repository configuration, rather than part of the application programming task.

JCR includes 2 levels of required functionality and set of optional features that can be accessed via standardized API.

sub-pages

Tags:
Created by Administrator on 05/26/2007
Last modified by Sören Schmidt on 08/06/2009

Products

generated on Fri Jul 30 19:09:34 UTC 2010

eXo Optional Modules

eXo Core Foundations


Copyright (c) 2000-2010. All Rights Reserved - eXo platform SAS
2.4.30451