Modified: db/jdo/site/docs/metadata.html URL: http://svn.apache.org/viewvc/db/jdo/site/docs/metadata.html?rev=772590&r1=772589&r2=772590&view=diff ============================================================================== --- db/jdo/site/docs/metadata.html (original) +++ db/jdo/site/docs/metadata.html Thu May 7 10:25:02 2009 @@ -1,7 +1,7 @@ Java Data Objects (JDO) - JDO MetaData

Persistence MetaData

+ @import url("./style/maven-theme.css");

Persistence MetaData

JDO 1.0 and JDO 2.0 support specification of persistence using XML MetaData. JDO 2.1 adds on the ability to specify persistence using Java5 annotations.

XML MetaData

Modified: db/jdo/site/docs/newshistory.html URL: http://svn.apache.org/viewvc/db/jdo/site/docs/newshistory.html?rev=772590&r1=772589&r2=772590&view=diff ============================================================================== --- db/jdo/site/docs/newshistory.html (original) +++ db/jdo/site/docs/newshistory.html Thu May 7 10:25:02 2009 @@ -1,7 +1,7 @@ Java Data Objects (JDO) - News

Older JDO News

+ @import url("./style/maven-theme.css");

Older JDO News

JDO code donated to Apache by Sun Microsystems, Inc.

On 9-Mar-2005 Sun Microsystems, Inc. officially donated to Apache Software Foundation the Modified: db/jdo/site/docs/object_retrieval.html URL: http://svn.apache.org/viewvc/db/jdo/site/docs/object_retrieval.html?rev=772590&r1=772589&r2=772590&view=diff ============================================================================== --- db/jdo/site/docs/object_retrieval.html (original) +++ db/jdo/site/docs/object_retrieval.html Thu May 7 10:25:02 2009 @@ -1,20 +1,24 @@ Java Data Objects (JDO) - JDO Object Retrieval

Object Retrieval

- JDO provides persistence of objects. The logical next step after persisting objects is to retrieve them - for use in your application. There are several ways to do this + @import url("./style/maven-theme.css");

Object Retrieval

+ JDO provides persistence of objects. The logical next step after persisting + objects is to retrieve them for use in your application. + There are several ways to do this

Retrieve an object from its identity

- The simplest form of object retrieval is where we have the identity. This is simply + The simplest form of object retrieval is where we have the identity. + This is simply

 Object obj = pm.getObjectById(identity);
                 

- If the object is in the JDO cache then it is retrieved from there, otherwise the JDO implementation - goes to the datastore. When the object is retrieved its fields are populated according to its Fetch Group. + If the object is in the JDO cache then it is retrieved from there, + otherwise the JDO implementation goes to the datastore. When the object + is retrieved its fields are populated according to its Fetch Group.

Retrieve an object based on its Extent

- A persistable class can be persisted with an Extent of all instances of that type. + A persistable class can be persisted with an Extent of all + instances of that type. You can use this to retrieve objects of the required type, like this

@@ -26,15 +30,17 @@
     ...
 }

- The second argument in the getExtent call is whether to include instances of subclasses. + The second argument in the getExtent call is whether to include + instances of subclasses.



Retrieve an object based on a criteria

- Where we want to retrieve all objects based on some criteria (e.g all objects of class A where - field 'x' of A is a certain value) we need to use a query language. JDO2 provides 2 options here. - JDOQL is object-based and allows you to express your query in terms of the classes and fields - you are using. SQL is datastore-based and allows you to express your query in terms of the - datastore tables and columns. + Where we want to retrieve all objects based on some criteria (e.g all + objects of class A where field 'x' of A is a certain value) we need to + use a query language. JDO2 provides 2 options here. JDOQL is object-based + and allows you to express your query in terms of the classes and fields + you are using. SQL is datastore-based and allows you to express your query + in terms of the datastore tables and columns.

- To give an exmaple of a JDOQL query + To give an example of a JDOQL query

 Query q = pm.newQuery(MyClass.class, "field1 < value");
@@ -46,8 +52,10 @@
     MyClass obj = (MyClass)iter.next();
 }

- If the objects found by the query are in the JDO cache then they are retrieved from there, otherwise the - JDO implementation goes to the datastore. When the objects are retrieved their fields are populated according to the Fetch Group. + If the objects found by the query are in the JDO cache then they are + retrieved from there, otherwise the JDO implementation goes to the + datastore. When the objects are retrieved their fields are populated + according to the Fetch Group.


\ No newline at end of file Modified: db/jdo/site/docs/orm_dtd.html URL: http://svn.apache.org/viewvc/db/jdo/site/docs/orm_dtd.html?rev=772590&r1=772589&r2=772590&view=diff ============================================================================== --- db/jdo/site/docs/orm_dtd.html (original) +++ db/jdo/site/docs/orm_dtd.html Thu May 7 10:25:02 2009 @@ -1,7 +1,7 @@ Java Data Objects (JDO) - ORM DTD

Meta-Data - ORM

+ @import url("./style/maven-theme.css");

Meta-Data - ORM

JDO2 defines XML MetaData in jdo files as well as orm files. As always with XML, the metadata must match the defined DTD/XSD for that file type. This section describes the content of the orm files. Modified: db/jdo/site/docs/pm.html URL: http://svn.apache.org/viewvc/db/jdo/site/docs/pm.html?rev=772590&r1=772589&r2=772590&view=diff ============================================================================== --- db/jdo/site/docs/pm.html (original) +++ db/jdo/site/docs/pm.html Thu May 7 10:25:02 2009 @@ -1,7 +1,7 @@ Java Data Objects (JDO) - Persistence Manager

Persistence Manager

+ @import url("./style/maven-theme.css");

Persistence Manager

Any JDO-enabled application will require at least one PersistenceManager (PM). This is obtained from the PersistenceManagerFactory for the datastore.

Modified: db/jdo/site/docs/pmf.html URL: http://svn.apache.org/viewvc/db/jdo/site/docs/pmf.html?rev=772590&r1=772589&r2=772590&view=diff ============================================================================== --- db/jdo/site/docs/pmf.html (original) +++ db/jdo/site/docs/pmf.html Thu May 7 10:25:02 2009 @@ -1,7 +1,7 @@ Java Data Objects (JDO) - Persistence Manager Factory

Persistence Manager Factory

+ @import url("./style/maven-theme.css");

Persistence Manager Factory

Any JDO-enabled application will require at least one PersistenceManagerFactory. Typically applications create one per datastore being utilised. A PersistenceManagerFactory provides access to PersistenceManagers which allow Modified: db/jdo/site/docs/project-info.html URL: http://svn.apache.org/viewvc/db/jdo/site/docs/project-info.html?rev=772590&r1=772589&r2=772590&view=diff ============================================================================== --- db/jdo/site/docs/project-info.html (original) +++ db/jdo/site/docs/project-info.html Thu May 7 10:25:02 2009 @@ -3,7 +3,7 @@

General Project Information

+ @import url("./style/maven-theme.css");

General Project Information

Maven Modified: db/jdo/site/docs/references.html URL: http://svn.apache.org/viewvc/db/jdo/site/docs/references.html?rev=772590&r1=772589&r2=772590&view=diff ============================================================================== --- db/jdo/site/docs/references.html (original) +++ db/jdo/site/docs/references.html Thu May 7 10:25:02 2009 @@ -1,7 +1,7 @@ Java Data Objects (JDO) - References

JDO References

Articles

+ @import url("./style/maven-theme.css");

JDO References

Articles

There have been several articles about JDO on various websites. Some are listed below