geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dwo...@apache.org
Subject svn commit: r906664 - in /geronimo/plugins/openjpa2/branches/2.1: ./ geronimo-persistence-jpa20/src/main/java/org/apache/geronimo/persistence/ geronimo-persistence-jpa20/src/test/java/org/apache/geronimo/persistence/ geronimo-persistence-jpa20/src/test...
Date Thu, 04 Feb 2010 21:35:21 GMT
Author: dwoods
Date: Thu Feb  4 21:35:21 2010
New Revision: 906664

URL: http://svn.apache.org/viewvc?rev=906664&view=rev
Log:
GERONIMO-4946 updates to handle spec api changes between PFD2 and final

Modified:
    geronimo/plugins/openjpa2/branches/2.1/geronimo-persistence-jpa20/src/main/java/org/apache/geronimo/persistence/CMPEntityManagerExtended.java
    geronimo/plugins/openjpa2/branches/2.1/geronimo-persistence-jpa20/src/main/java/org/apache/geronimo/persistence/CMPEntityManagerTxScoped.java
    geronimo/plugins/openjpa2/branches/2.1/geronimo-persistence-jpa20/src/main/java/org/apache/geronimo/persistence/InternalCMPEntityManagerExtended.java
    geronimo/plugins/openjpa2/branches/2.1/geronimo-persistence-jpa20/src/main/java/org/apache/geronimo/persistence/NoTxQueryWrapper.java
    geronimo/plugins/openjpa2/branches/2.1/geronimo-persistence-jpa20/src/main/java/org/apache/geronimo/persistence/PersistenceUnitGBean.java
    geronimo/plugins/openjpa2/branches/2.1/geronimo-persistence-jpa20/src/test/java/org/apache/geronimo/persistence/PersistenceUnitGBeanTest.java
    geronimo/plugins/openjpa2/branches/2.1/geronimo-persistence-jpa20/src/test/java/org/apache/geronimo/persistence/mockjpa/MockEntityManager.java
    geronimo/plugins/openjpa2/branches/2.1/geronimo-persistence-jpa20/src/test/java/org/apache/geronimo/persistence/mockjpa/MockEntityManagerFactory.java
    geronimo/plugins/openjpa2/branches/2.1/jpa-tests/pom.xml
    geronimo/plugins/openjpa2/branches/2.1/pom.xml

Modified: geronimo/plugins/openjpa2/branches/2.1/geronimo-persistence-jpa20/src/main/java/org/apache/geronimo/persistence/CMPEntityManagerExtended.java
URL: http://svn.apache.org/viewvc/geronimo/plugins/openjpa2/branches/2.1/geronimo-persistence-jpa20/src/main/java/org/apache/geronimo/persistence/CMPEntityManagerExtended.java?rev=906664&r1=906663&r2=906664&view=diff
==============================================================================
--- geronimo/plugins/openjpa2/branches/2.1/geronimo-persistence-jpa20/src/main/java/org/apache/geronimo/persistence/CMPEntityManagerExtended.java
(original)
+++ geronimo/plugins/openjpa2/branches/2.1/geronimo-persistence-jpa20/src/main/java/org/apache/geronimo/persistence/CMPEntityManagerExtended.java
Thu Feb  4 21:35:21 2010
@@ -28,7 +28,7 @@
 import javax.persistence.Query;
 import javax.persistence.TypedQuery;
 import javax.persistence.criteria.CriteriaQuery;
-import javax.persistence.criteria.QueryBuilder;
+import javax.persistence.criteria.CriteriaBuilder;
 import javax.persistence.metamodel.Metamodel;
 
 /**
@@ -169,8 +169,8 @@
     }
 
     @Override
-    public QueryBuilder getQueryBuilder() {
-        return getEntityManager().getQueryBuilder();
+    public CriteriaBuilder getCriteriaBuilder() {
+        return getEntityManager().getCriteriaBuilder();
     }
 
     @Override
@@ -224,11 +224,6 @@
     }
 
     @Override
-    public Set<String> getSupportedProperties() {
-        return getEntityManager().getSupportedProperties();
-    }
-
-    @Override
     public void lock(Object entity, LockModeType lockMode, Map<String, Object> properties)
{
         getEntityManager().lock(entity, lockMode, properties);
     }

Modified: geronimo/plugins/openjpa2/branches/2.1/geronimo-persistence-jpa20/src/main/java/org/apache/geronimo/persistence/CMPEntityManagerTxScoped.java
URL: http://svn.apache.org/viewvc/geronimo/plugins/openjpa2/branches/2.1/geronimo-persistence-jpa20/src/main/java/org/apache/geronimo/persistence/CMPEntityManagerTxScoped.java?rev=906664&r1=906663&r2=906664&view=diff
==============================================================================
--- geronimo/plugins/openjpa2/branches/2.1/geronimo-persistence-jpa20/src/main/java/org/apache/geronimo/persistence/CMPEntityManagerTxScoped.java
(original)
+++ geronimo/plugins/openjpa2/branches/2.1/geronimo-persistence-jpa20/src/main/java/org/apache/geronimo/persistence/CMPEntityManagerTxScoped.java
Thu Feb  4 21:35:21 2010
@@ -395,14 +395,14 @@
     }
 
     @Override
-    public QueryBuilder getQueryBuilder() {
+    public CriteriaBuilder getCriteriaBuilder() {
         EntityManager entityManager = getEntityManager(false);
         if (entityManager != null) {
-            return entityManager.getQueryBuilder();
+            return entityManager.getCriteriaBuilder();
         } else {
             entityManager = createEntityManager();
             try {
-                return entityManager.getQueryBuilder();
+                return entityManager.getCriteriaBuilder();
             } finally {
                 entityManager.close();
             }
@@ -550,21 +550,6 @@
     }
 
     @Override
-    public Set<String> getSupportedProperties() {
-        EntityManager entityManager = getEntityManager(false);
-        if (entityManager != null) {
-            return entityManager.getSupportedProperties();
-        } else {
-            entityManager = createEntityManager();
-            try {
-                return entityManager.getSupportedProperties();
-            } finally {
-                entityManager.close();
-            }
-        }
-    }
-
-    @Override
     public void lock(Object entity, LockModeType lockMode, Map<String, Object> properties)
{
         EntityManager entityManager = getEntityManager(false);
         if (entityManager != null) {

Modified: geronimo/plugins/openjpa2/branches/2.1/geronimo-persistence-jpa20/src/main/java/org/apache/geronimo/persistence/InternalCMPEntityManagerExtended.java
URL: http://svn.apache.org/viewvc/geronimo/plugins/openjpa2/branches/2.1/geronimo-persistence-jpa20/src/main/java/org/apache/geronimo/persistence/InternalCMPEntityManagerExtended.java?rev=906664&r1=906663&r2=906664&view=diff
==============================================================================
--- geronimo/plugins/openjpa2/branches/2.1/geronimo-persistence-jpa20/src/main/java/org/apache/geronimo/persistence/InternalCMPEntityManagerExtended.java
(original)
+++ geronimo/plugins/openjpa2/branches/2.1/geronimo-persistence-jpa20/src/main/java/org/apache/geronimo/persistence/InternalCMPEntityManagerExtended.java
Thu Feb  4 21:35:21 2010
@@ -200,8 +200,8 @@
     }
 
     @Override
-    public QueryBuilder getQueryBuilder() {
-        return entityManager.getQueryBuilder();
+    public CriteriaBuilder getCriteriaBuilder() {
+        return entityManager.getCriteriaBuilder();
     }
 
     @Override
@@ -255,11 +255,6 @@
     }
 
     @Override
-    public Set<String> getSupportedProperties() {
-        return entityManager.getSupportedProperties();
-    }
-
-    @Override
     public void lock(Object entity, LockModeType lockMode, Map<String, Object> properties)
{
         entityManager.lock(entity, lockMode, properties);
     }

Modified: geronimo/plugins/openjpa2/branches/2.1/geronimo-persistence-jpa20/src/main/java/org/apache/geronimo/persistence/NoTxQueryWrapper.java
URL: http://svn.apache.org/viewvc/geronimo/plugins/openjpa2/branches/2.1/geronimo-persistence-jpa20/src/main/java/org/apache/geronimo/persistence/NoTxQueryWrapper.java?rev=906664&r1=906663&r2=906664&view=diff
==============================================================================
--- geronimo/plugins/openjpa2/branches/2.1/geronimo-persistence-jpa20/src/main/java/org/apache/geronimo/persistence/NoTxQueryWrapper.java
(original)
+++ geronimo/plugins/openjpa2/branches/2.1/geronimo-persistence-jpa20/src/main/java/org/apache/geronimo/persistence/NoTxQueryWrapper.java
Thu Feb  4 21:35:21 2010
@@ -190,11 +190,6 @@
     }
 
     @Override
-    public Set<String> getSupportedHints() {
-        return query.getSupportedHints();
-    }
-
-    @Override
     public boolean isBound(Parameter<?> param) {
         return query.isBound(param);
     }

Modified: geronimo/plugins/openjpa2/branches/2.1/geronimo-persistence-jpa20/src/main/java/org/apache/geronimo/persistence/PersistenceUnitGBean.java
URL: http://svn.apache.org/viewvc/geronimo/plugins/openjpa2/branches/2.1/geronimo-persistence-jpa20/src/main/java/org/apache/geronimo/persistence/PersistenceUnitGBean.java?rev=906664&r1=906663&r2=906664&view=diff
==============================================================================
--- geronimo/plugins/openjpa2/branches/2.1/geronimo-persistence-jpa20/src/main/java/org/apache/geronimo/persistence/PersistenceUnitGBean.java
(original)
+++ geronimo/plugins/openjpa2/branches/2.1/geronimo-persistence-jpa20/src/main/java/org/apache/geronimo/persistence/PersistenceUnitGBean.java
Thu Feb  4 21:35:21 2010
@@ -36,8 +36,8 @@
 import javax.persistence.spi.PersistenceProvider;
 import javax.persistence.spi.PersistenceUnitInfo;
 import javax.persistence.spi.PersistenceUnitTransactionType;
-import javax.persistence.spi.SharedCacheMode;
-import javax.persistence.spi.ValidationMode;
+import javax.persistence.SharedCacheMode;
+import javax.persistence.ValidationMode;
 import javax.resource.ResourceException;
 import javax.sql.DataSource;
 

Modified: geronimo/plugins/openjpa2/branches/2.1/geronimo-persistence-jpa20/src/test/java/org/apache/geronimo/persistence/PersistenceUnitGBeanTest.java
URL: http://svn.apache.org/viewvc/geronimo/plugins/openjpa2/branches/2.1/geronimo-persistence-jpa20/src/test/java/org/apache/geronimo/persistence/PersistenceUnitGBeanTest.java?rev=906664&r1=906663&r2=906664&view=diff
==============================================================================
--- geronimo/plugins/openjpa2/branches/2.1/geronimo-persistence-jpa20/src/test/java/org/apache/geronimo/persistence/PersistenceUnitGBeanTest.java
(original)
+++ geronimo/plugins/openjpa2/branches/2.1/geronimo-persistence-jpa20/src/test/java/org/apache/geronimo/persistence/PersistenceUnitGBeanTest.java
Thu Feb  4 21:35:21 2010
@@ -20,8 +20,8 @@
 import java.io.File;
 
 import javax.persistence.spi.PersistenceUnitInfo;
-import javax.persistence.spi.SharedCacheMode;
-import javax.persistence.spi.ValidationMode;
+import javax.persistence.SharedCacheMode;
+import javax.persistence.ValidationMode;
 
 import junit.framework.TestCase;
 

Modified: geronimo/plugins/openjpa2/branches/2.1/geronimo-persistence-jpa20/src/test/java/org/apache/geronimo/persistence/mockjpa/MockEntityManager.java
URL: http://svn.apache.org/viewvc/geronimo/plugins/openjpa2/branches/2.1/geronimo-persistence-jpa20/src/test/java/org/apache/geronimo/persistence/mockjpa/MockEntityManager.java?rev=906664&r1=906663&r2=906664&view=diff
==============================================================================
--- geronimo/plugins/openjpa2/branches/2.1/geronimo-persistence-jpa20/src/test/java/org/apache/geronimo/persistence/mockjpa/MockEntityManager.java
(original)
+++ geronimo/plugins/openjpa2/branches/2.1/geronimo-persistence-jpa20/src/test/java/org/apache/geronimo/persistence/mockjpa/MockEntityManager.java
Thu Feb  4 21:35:21 2010
@@ -28,7 +28,7 @@
 import javax.persistence.EntityTransaction;
 import javax.persistence.TypedQuery;
 import javax.persistence.criteria.CriteriaQuery;
-import javax.persistence.criteria.QueryBuilder;
+import javax.persistence.criteria.CriteriaBuilder;
 import javax.persistence.metamodel.Metamodel;
 
 /**
@@ -212,13 +212,7 @@
     }
 
     @Override
-    public QueryBuilder getQueryBuilder() {
-        // TODO Auto-generated method stub
-        return null;
-    }
-
-    @Override
-    public Set<String> getSupportedProperties() {
+    public CriteriaBuilder getCriteriaBuilder() {
         // TODO Auto-generated method stub
         return null;
     }
@@ -227,32 +221,27 @@
     public void lock(Object entity, LockModeType lockMode,
         Map<String, Object> properties) {
         // TODO Auto-generated method stub
-        
     }
 
     @Override
     public void refresh(Object entity, Map<String, Object> properties) {
         // TODO Auto-generated method stub
-        
     }
 
     @Override
     public void refresh(Object entity, LockModeType lockMode) {
         // TODO Auto-generated method stub
-        
     }
 
     @Override
     public void refresh(Object entity, LockModeType lockMode,
         Map<String, Object> properties) {
         // TODO Auto-generated method stub
-        
     }
 
     @Override
     public void setProperty(String propertyName, Object value) {
         // TODO Auto-generated method stub
-        
     }
 
     @Override

Modified: geronimo/plugins/openjpa2/branches/2.1/geronimo-persistence-jpa20/src/test/java/org/apache/geronimo/persistence/mockjpa/MockEntityManagerFactory.java
URL: http://svn.apache.org/viewvc/geronimo/plugins/openjpa2/branches/2.1/geronimo-persistence-jpa20/src/test/java/org/apache/geronimo/persistence/mockjpa/MockEntityManagerFactory.java?rev=906664&r1=906663&r2=906664&view=diff
==============================================================================
--- geronimo/plugins/openjpa2/branches/2.1/geronimo-persistence-jpa20/src/test/java/org/apache/geronimo/persistence/mockjpa/MockEntityManagerFactory.java
(original)
+++ geronimo/plugins/openjpa2/branches/2.1/geronimo-persistence-jpa20/src/test/java/org/apache/geronimo/persistence/mockjpa/MockEntityManagerFactory.java
Thu Feb  4 21:35:21 2010
@@ -24,7 +24,7 @@
 import javax.persistence.EntityManagerFactory;
 import javax.persistence.EntityManager;
 import javax.persistence.PersistenceUnitUtil;
-import javax.persistence.criteria.QueryBuilder;
+import javax.persistence.criteria.CriteriaBuilder;
 import javax.persistence.metamodel.Metamodel;
 
 /**
@@ -84,14 +84,9 @@
     }
 
     @Override
-    public QueryBuilder getQueryBuilder() {
+    public CriteriaBuilder getCriteriaBuilder() {
         // TODO Auto-generated method stub
         return null;
     }
 
-    @Override
-    public Set<String> getSupportedProperties() {
-        // TODO Auto-generated method stub
-        return null;
-    }
 }

Modified: geronimo/plugins/openjpa2/branches/2.1/jpa-tests/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/plugins/openjpa2/branches/2.1/jpa-tests/pom.xml?rev=906664&r1=906663&r2=906664&view=diff
==============================================================================
--- geronimo/plugins/openjpa2/branches/2.1/jpa-tests/pom.xml (original)
+++ geronimo/plugins/openjpa2/branches/2.1/jpa-tests/pom.xml Thu Feb  4 21:35:21 2010
@@ -45,7 +45,7 @@
 
     <properties>
         <openjpaVersion>2.0.0-beta</openjpaVersion>
-        <jpa2specVersion>1.0-PFD2</jpa2specVersion>
+        <jpa2specVersion>1.0</jpa2specVersion>
     </properties>
 
     <dependencies>

Modified: geronimo/plugins/openjpa2/branches/2.1/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/plugins/openjpa2/branches/2.1/pom.xml?rev=906664&r1=906663&r2=906664&view=diff
==============================================================================
--- geronimo/plugins/openjpa2/branches/2.1/pom.xml (original)
+++ geronimo/plugins/openjpa2/branches/2.1/pom.xml Thu Feb  4 21:35:21 2010
@@ -69,7 +69,7 @@
         <version>2.1.3-beta-SNAPSHOT</version>
 
         <openjpa2Version>2.0.0-beta</openjpa2Version>
-        <jpa2specVersion>1.0-PFD2</jpa2specVersion>
+        <jpa2specVersion>1.0</jpa2specVersion>
         <bvspecVersion>1.0-CR5</bvspecVersion>
         <geronimoVersion>2.1.3</geronimoVersion>
 



Mime
View raw message