Modified: db/jdo/site/docs/jdo_v_jpa_api.html URL: http://svn.apache.org/viewvc/db/jdo/site/docs/jdo_v_jpa_api.html?rev=1090559&r1=1090558&r2=1090559&view=diff ============================================================================== --- db/jdo/site/docs/jdo_v_jpa_api.html (original) +++ db/jdo/site/docs/jdo_v_jpa_api.html Sat Apr 9 10:16:58 2011 @@ -1,11 +1,11 @@ Java Data Objects (JDO) - JDO .v. JPA : API
< a name="JDO__v__JPA_:_API">

JDO .v. JPA : API

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

JDO .v. JPA : API

The two persistence standards in Java have very similar API's on the face of it. Here we give a comparison of the method calls and their equivalent in the other API.

OperationJDOJPA
Persist Objectpm.makePersistent()em.persist
Update Objectpm.makePersistent()em.merge()
Remove Objectpm.deletePersistent()em.remove()
Retrieve Objectpm.getObjectById()

pm.getExtent()
em.find()
Refresh Objectpm.refresh()em.refresh()
Detach single Objectpm.detachCopy()em.detach()
Flush changespm.flush()em.flush()
Access transactionpm.currentTransaction()em.getTransaction()
New Querypm.newQuery()em.createQuery()
New Named Querypm.newNamedQuery()em.createNamedQuery()
New SQL Querypm.newQuery()em.createNativeQuery()

\ No newline at end of file + © 2005-2011 Apache Software Foundation
\ No newline at end of file Modified: db/jdo/site/docs/jdo_v_jpa_orm.html URL: http://svn.apache.org/viewvc/db/jdo/site/docs/jdo_v_jpa_orm.html?rev=1090559&r1=1090558&r2=1090559&view=diff ============================================================================== --- db/jdo/site/docs/jdo_v_jpa_orm.html (original) +++ db/jdo/site/docs/jdo_v_jpa_orm.html Sat Apr 9 10:16:58 2011 @@ -1,7 +1,7 @@ Java Data Objects (JDO) - JDO .v. JPA : Object/Relational Mapping
< a name="Which_ORM_specification__">

Which ORM specification ?

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

Which ORM specification ?

There are 2 prevalent specification in the Java ORM world. JDO provides the most complete definition, whilst JPA is the most recent.

Relationships

@@ -10,4 +10,4 @@ added to to provide a comprehensive list of relationship type and where you can find it.

Field TypeRelationJDOJPA
PC1-1 Unidirectional
PC1-1 Bidirectional
PC1-1 serialised
PC1-1 CompoundIdentity Unidirectional
PC1-N CompoundIdentity Collection Bidirectional
PC1-N CompoundIdentity Map Bidirectional
Interface1-1 Unidirectional
Interface1-1 Bidirectional
Interface1-1 serialised?
Collection<PC>1-N ForeignKey Unidirectional Collection
Collection<PC>1-N ForeignKey Bidirectional Collection
Collection<PC>1-N JoinTable Unidir ectional Collection
Collection<PC>1-N JoinTable Bidirectional Collection
Collection<Non-PC>1-N JoinTable Collection
Collection<PC>1-N JoinTable Collection using shared JoinTable
Collection<PC>1-N ForeignKey Collection using shared ForeignKey
Collection<PC>M-N JoinTable
Collection<PC>1-N CompoundIdentity Unidirectional
Collection<PC>1-N serialised Collection
Collection<PC>1-N JoinTable Collection of serialised elements
List<PC>1-N ForeignKey Unidirectional Indexed List
List<PC>1-N ForeignKey Bidirectional Indexed List
List<PC>1-N JoinTable Unidirectional Indexed List
List<PC>1-N JoinTable Bidirectional Indexed List
List<Non-PC>1-N JoinTable Indexed List
List<PC>1-N ForeignKey Unidirectional Ordered List
List<PC>1-N ForeignKey Bidirectional Ordered List
List<PC>1-N JoinTable Unidirectional Ordered List
List<PC>1-N JoinTable Bidirectional Ordered List
Map<PC, PC>1-N JoinTable Map
Map<Non-PC, PC>1-N JoinTable Map
Map<PC, Non-PC>1-N JoinTable Map
Map<Non-PC, Non-PC>1-N JoinTable Map
Map<Non-PC, PC>1-N ForeignKey Map Unidirectional (key stored in value)
Map<Non-PC, PC>1-N ForeignKey Map Bidirectional (key stored in value)
Map<PC, Non-PC>1-N ForeignKey Map Unidirectional (value stored in key)
Map<PC, PC>1-N serialised Map
Map<PC, PC>1-N JoinTable Map of serialised keys/values
PC[ ]1-N ForeignKey Unidirectional Array
PC[ ]1-N JoinTable Unidirectional Array
PC[ ]1-N serialised Array
Non-PC[ ]1-N JoinTable Unidirectional Array

\ No newline at end of file + © 2005-2011 Apache Software Foundation
\ No newline at end of file Modified: db/jdo/site/docs/jdocentral.html URL: http://svn.apache.org/viewvc/db/jdo/site/docs/jdocentral.html?rev=1090559&r1=1090558&r2=1090559&view=diff ============================================================================== --- db/jdo/site/docs/jdocentral.html (original) +++ db/jdo/site/docs/jdocentral.html Sat Apr 9 10:16:58 2011 @@ -1,7 +1,7 @@ Java Data Objects (JDO) - Home \ No newline at end of file Modified: db/jdo/site/docs/jdohelper.html URL: http://svn.apache.org/viewvc/db/jdo/site/docs/jdohelper.html?rev=1090559&r1=1090558&r2=1090559&view=diff ============================================================================== --- db/jdo/site/docs/jdohelper.html (original) +++ db/jdo/site/docs/jdohelper.html Sat Apr 9 10:16:58 2011 @@ -1,7 +1,7 @@ Java Data Objects (JDO) - JDOHelper

JDOHelper

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


\ No newline at end of file + © 2005-2011 Apache Software Foundation
\ No newline at end of file Modified: db/jdo/site/docs/jdoql.html URL: http://svn.apache.org/viewvc/db/jdo/site/docs/jdoql.html?rev=1090559&r1=1090558&r2=1090559&view=diff ============================================================================== --- db/jdo/site/docs/jdoql.html (original) +++ db/jdo/site/docs/jdoql.html Sat Apr 9 10:16:58 2011 @@ -1,7 +1,7 @@ Java Data Objects (JDO) - JDOQL

JDOQL

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

JDOQL

JDO defines ways of querying objects persisted into the datastore. It provides its own object-based query language (JDOQL). JDOQL is designed as the Java developers way of having the power of SQL queries, yet retaining the Java @@ -198,4 +198,4 @@ Query query = pm.newQuery("SELECT FROM m List results = (List)query.execute();


\ No newline at end of file + © 2005-2011 Apache Software Foundation
\ No newline at end of file Modified: db/jdo/site/docs/jdoql_methods.html URL: http://svn.apache.org/viewvc/db/jdo/site/docs/jdoql_methods.html?rev=1090559&r1=1090558&r2=1090559&view=diff ============================================================================== --- db/jdo/site/docs/jdoql_methods.html (original) +++ db/jdo/site/docs/jdoql_methods.html Sat Apr 9 10:16:58 2011 @@ -1,7 +1,7 @@ Java Data Objects (JDO) - JDOQL - Methods

JDOQL : Methods

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

JDOQL : Methods

When writing the "filter" for a JDOQL Query you can make use of some methods on the various Java types. The range of methods included as standard in JDOQL is not as flexible as with the true Java types, but the ones that are available are typically of much use. @@ -72,4 +72,4 @@ Query query = pm.newQuery( List results = (List)query.execute();



Other Methods

MethodDescription
Math.abs(number)Returns the absolute value of the passed number
Math.sqrt(number)Returns the square root of the passed number
JDOHelper.getObjectId(object)Returns the object identity of the passed persistent object

\ No newline at end of file + © 2005-2011 Apache Software Foundation
\ No newline at end of file Modified: db/jdo/site/docs/jdoql_result.html URL: http://svn.apache.org/viewvc/db/jdo/site/docs/jdoql_result.html?rev=1090559&r1=1090558&r2=1090559&view=diff ============================================================================== --- db/jdo/site/docs/jdoql_result.html (original) +++ db/jdo/site/docs/jdoql_result.html Sat Apr 9 10:16:58 2011 @@ -1,7 +1,7 @@ Java Data Objects (JDO) - JDOQL - Result

JDOQL : Result

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

JDOQL : Result

As we have seen, a JDOQL query is made up of different parts. In this section we look at the result part of the query. The result is what we want returning. By default (when not specifying the result) the objects returned will be of the candidate class type, where they match the query @@ -76,4 +76,4 @@ Iterator iter = c.iterator(); Double max_price = (Double)iter.next();




\ No newline at end of file + © 2005-2011 Apache Software Foundation
\ No newline at end of file