db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcai...@apache.org
Subject svn commit: r558078 - in /db/jdo/trunk/tck2/src: conf/ java/org/apache/jdo/tck/pc/company/ java/org/apache/jdo/tck/pc/companyAnnotatedFC/ java/org/apache/jdo/tck/pc/companyAnnotatedPI/
Date Fri, 20 Jul 2007 18:09:29 GMT
Author: mcaisse
Date: Fri Jul 20 11:09:27 2007
New Revision: 558078

URL: http://svn.apache.org/viewvc?view=rev&rev=558078
Log: (empty)

Added:
    db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/company/CompanyFactoryAnnotatedAbstractDelegator.java
  (with props)
    db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/company/CompanyFactoryNewInstance.java
  (with props)
    db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedFC/CompanyFactoryAnnotatedFCAppPM.java
  (with props)
    db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedFC/CompanyFactoryAnnotatedFCDSPM.java
  (with props)
    db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedFC/CompanyFactoryAnnotatedFCPMDelegator.java
  (with props)
    db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPI/CompanyFactoryAnnotatedPIAppPM.java
  (with props)
    db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPI/CompanyFactoryAnnotatedPIDSPM.java
  (with props)
    db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPI/CompanyFactoryAnnotatedPIPMDelegator.java
  (with props)
Modified:
    db/jdo/trunk/tck2/src/conf/companyFCAnnotated1-1Relationships.conf
    db/jdo/trunk/tck2/src/conf/companyFCAnnotated1-MRelationships.conf
    db/jdo/trunk/tck2/src/conf/companyFCAnnotatedAllRelationships.conf
    db/jdo/trunk/tck2/src/conf/companyFCAnnotatedEmbedded.conf
    db/jdo/trunk/tck2/src/conf/companyFCAnnotatedM-MRelationships.conf
    db/jdo/trunk/tck2/src/conf/companyFCAnnotatedNoRelationships.conf
    db/jdo/trunk/tck2/src/conf/companyPIAnnotatedNoRelationships.conf

Modified: db/jdo/trunk/tck2/src/conf/companyFCAnnotated1-1Relationships.conf
URL: http://svn.apache.org/viewvc/db/jdo/trunk/tck2/src/conf/companyFCAnnotated1-1Relationships.conf?view=diff&rev=558078&r1=558077&r2=558078
==============================================================================
--- db/jdo/trunk/tck2/src/conf/companyFCAnnotated1-1Relationships.conf (original)
+++ db/jdo/trunk/tck2/src/conf/companyFCAnnotated1-1Relationships.conf Fri Jul 20 11:09:27
2007
@@ -14,7 +14,7 @@
 # limitations under the License.
 
 jdo.tck.description = Completeness test with standard mapping, basic testdata with 1-1 relationships,
annotations. 
-jdo.tck.mapping.companyfactory = org.apache.jdo.tck.pc.company.CompanyFactoryAnnotatedPMFieldClass
+jdo.tck.mapping.companyfactory = org.apache.jdo.tck.pc.company.CompanyFactoryAnnotatedFCPMDelegator
 jdo.tck.classes = org.apache.jdo.tck.mapping.CompletenessTest
 jdo.tck.testdata = org/apache/jdo/tck/pc/company/company1-1Relationships.xml
 jdo.tck.mapping = 0

Modified: db/jdo/trunk/tck2/src/conf/companyFCAnnotated1-MRelationships.conf
URL: http://svn.apache.org/viewvc/db/jdo/trunk/tck2/src/conf/companyFCAnnotated1-MRelationships.conf?view=diff&rev=558078&r1=558077&r2=558078
==============================================================================
--- db/jdo/trunk/tck2/src/conf/companyFCAnnotated1-MRelationships.conf (original)
+++ db/jdo/trunk/tck2/src/conf/companyFCAnnotated1-MRelationships.conf Fri Jul 20 11:09:27
2007
@@ -14,7 +14,7 @@
 # limitations under the License.
 
 jdo.tck.description = Completeness test with standard mapping, basic testdata with 1-M relationships,
annotations. 
-jdo.tck.mapping.companyfactory = org.apache.jdo.tck.pc.company.CompanyFactoryAnnotatedPMFieldClass
+jdo.tck.mapping.companyfactory = org.apache.jdo.tck.pc.company.CompanyFactoryAnnotatedFCPMDelegator
 jdo.tck.classes = org.apache.jdo.tck.mapping.CompletenessTest
 jdo.tck.testdata = org/apache/jdo/tck/pc/company/company1-MRelationships.xml
 jdo.tck.mapping = 0

Modified: db/jdo/trunk/tck2/src/conf/companyFCAnnotatedAllRelationships.conf
URL: http://svn.apache.org/viewvc/db/jdo/trunk/tck2/src/conf/companyFCAnnotatedAllRelationships.conf?view=diff&rev=558078&r1=558077&r2=558078
==============================================================================
--- db/jdo/trunk/tck2/src/conf/companyFCAnnotatedAllRelationships.conf (original)
+++ db/jdo/trunk/tck2/src/conf/companyFCAnnotatedAllRelationships.conf Fri Jul 20 11:09:27
2007
@@ -15,7 +15,7 @@
 
 jdo.tck.description = Completeness test with standard mapping, basic testdata with all relationships
\
 and embedded objects, annotations. 
-jdo.tck.mapping.companyfactory = org.apache.jdo.tck.pc.company.CompanyFactoryAnnotatedPMFieldClass
+jdo.tck.mapping.companyfactory = org.apache.jdo.tck.pc.company.CompanyFactoryAnnotatedFCPMDelegator
 jdo.tck.classes = org.apache.jdo.tck.mapping.CompletenessTest
 jdo.tck.testdata = org/apache/jdo/tck/pc/company/companyAllRelationships.xml
 jdo.tck.mapping = 0

Modified: db/jdo/trunk/tck2/src/conf/companyFCAnnotatedEmbedded.conf
URL: http://svn.apache.org/viewvc/db/jdo/trunk/tck2/src/conf/companyFCAnnotatedEmbedded.conf?view=diff&rev=558078&r1=558077&r2=558078
==============================================================================
--- db/jdo/trunk/tck2/src/conf/companyFCAnnotatedEmbedded.conf (original)
+++ db/jdo/trunk/tck2/src/conf/companyFCAnnotatedEmbedded.conf Fri Jul 20 11:09:27 2007
@@ -15,7 +15,7 @@
 
 jdo.tck.description = Completeness test with standard mapping, basic testdata with no relationships
\
 and embedded objects, annotations. 
-jdo.tck.mapping.companyfactory = org.apache.jdo.tck.pc.company.CompanyFactoryAnnotatedPMFieldClass
+jdo.tck.mapping.companyfactory = org.apache.jdo.tck.pc.company.CompanyFactoryAnnotatedFCPMDelegator
 jdo.tck.classes = org.apache.jdo.tck.mapping.CompletenessTest
 jdo.tck.testdata = org/apache/jdo/tck/pc/company/companyEmbedded.xml
 jdo.tck.mapping = 0

Modified: db/jdo/trunk/tck2/src/conf/companyFCAnnotatedM-MRelationships.conf
URL: http://svn.apache.org/viewvc/db/jdo/trunk/tck2/src/conf/companyFCAnnotatedM-MRelationships.conf?view=diff&rev=558078&r1=558077&r2=558078
==============================================================================
--- db/jdo/trunk/tck2/src/conf/companyFCAnnotatedM-MRelationships.conf (original)
+++ db/jdo/trunk/tck2/src/conf/companyFCAnnotatedM-MRelationships.conf Fri Jul 20 11:09:27
2007
@@ -14,7 +14,7 @@
 # limitations under the License.
 
 jdo.tck.description = Completeness test with standard mapping, basic testdata with M-M relationships,
annotations. 
-jdo.tck.mapping.companyfactory = org.apache.jdo.tck.pc.company.CompanyFactoryAnnotatedPMFieldClass
+jdo.tck.mapping.companyfactory = org.apache.jdo.tck.pc.company.CompanyFactoryAnnotatedFCPMDelegator
 jdo.tck.classes = org.apache.jdo.tck.mapping.CompletenessTest
 jdo.tck.testdata = org/apache/jdo/tck/pc/company/companyM-MRelationships.xml
 jdo.tck.mapping = 0

Modified: db/jdo/trunk/tck2/src/conf/companyFCAnnotatedNoRelationships.conf
URL: http://svn.apache.org/viewvc/db/jdo/trunk/tck2/src/conf/companyFCAnnotatedNoRelationships.conf?view=diff&rev=558078&r1=558077&r2=558078
==============================================================================
--- db/jdo/trunk/tck2/src/conf/companyFCAnnotatedNoRelationships.conf (original)
+++ db/jdo/trunk/tck2/src/conf/companyFCAnnotatedNoRelationships.conf Fri Jul 20 11:09:27
2007
@@ -14,7 +14,7 @@
 # limitations under the License.
 
 jdo.tck.description = Completeness test with standard mapping, basic testdata with no relationships.

-jdo.tck.mapping.companyfactory = org.apache.jdo.tck.pc.company.CompanyFactoryAnnotatedPMFieldClass
+jdo.tck.mapping.companyfactory = org.apache.jdo.tck.pc.company.CompanyFactoryAnnotatedFCPMDelegator
 jdo.tck.classes = org.apache.jdo.tck.mapping.CompletenessTest
 jdo.tck.testdata = org/apache/jdo/tck/pc/company/companyNoRelationships.xml
 jdo.tck.mapping = 0

Modified: db/jdo/trunk/tck2/src/conf/companyPIAnnotatedNoRelationships.conf
URL: http://svn.apache.org/viewvc/db/jdo/trunk/tck2/src/conf/companyPIAnnotatedNoRelationships.conf?view=diff&rev=558078&r1=558077&r2=558078
==============================================================================
--- db/jdo/trunk/tck2/src/conf/companyPIAnnotatedNoRelationships.conf (original)
+++ db/jdo/trunk/tck2/src/conf/companyPIAnnotatedNoRelationships.conf Fri Jul 20 11:09:27
2007
@@ -14,7 +14,7 @@
 # limitations under the License.
 
 jdo.tck.description = Completeness test with standard mapping, basic testdata with no relationships.

-jdo.tck.mapping.companyfactory = org.apache.jdo.tck.pc.company.CompanyFactoryAnnotatedPMInterface
+jdo.tck.mapping.companyfactory = org.apache.jdo.tck.pc.company.CompanyFactoryAnnotatedPIPMDelegator
 jdo.tck.classes = org.apache.jdo.tck.mapping.CompletenessTest
 jdo.tck.testdata = org/apache/jdo/tck/pc/company/companyNoRelationships.xml
 jdo.tck.mapping = 0

Added: db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/company/CompanyFactoryAnnotatedAbstractDelegator.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/company/CompanyFactoryAnnotatedAbstractDelegator.java?view=auto&rev=558078
==============================================================================
--- db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/company/CompanyFactoryAnnotatedAbstractDelegator.java
(added)
+++ db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/company/CompanyFactoryAnnotatedAbstractDelegator.java
Fri Jul 20 11:09:27 2007
@@ -0,0 +1,79 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.jdo.tck.pc.company;
+
+import javax.jdo.PersistenceManager;
+
+/*
+ * CompanyFactoryAnnotatedPMFieldClass.java
+ *
+ * This class uses the PersistenceManager.newInstance method with the concrete
+ * class as a parameter.
+ */
+public abstract class CompanyFactoryAnnotatedAbstractDelegator
+        extends CompanyFactoryAbstractImpl {
+    
+    public CompanyFactoryNewInstance delegate = null;
+    
+    public final String identitytype =
+            System.getProperty("jdo.tck.identitytype");
+    public boolean isAppIdentity = "applicationidentity".equals(identitytype);
+    
+    /**
+     * Creates a new instance of CompanyFactory
+     */
+    public CompanyFactoryAnnotatedAbstractDelegator(PersistenceManager pm) {
+        super(pm);
+    }
+    
+    public IAddress newAddress() {
+        return (IAddress)delegate.newAddress();
+    }
+    
+    public ICompany newCompany() {
+        return (ICompany)delegate.newCompany();
+    }
+    
+    public IDentalInsurance newDentalInsurance() {
+        return (IDentalInsurance)delegate.newDentalInsurance();
+    }
+    
+    public IDepartment newDepartment() {
+        return (IDepartment)delegate.newDepartment();
+    }
+    
+    public IFullTimeEmployee newFullTimeEmployee() {
+        return (IFullTimeEmployee)delegate.newFullTimeEmployee();
+    }
+    
+    public IMedicalInsurance newMedicalInsurance() {
+        return (IMedicalInsurance)delegate.newMedicalInsurance();
+    }
+    
+    public IPartTimeEmployee newPartTimeEmployee() {
+        return (IPartTimeEmployee)delegate.newPartTimeEmployee();
+    }
+    
+    public IProject newProject() {
+        return (IProject)delegate.newProject();
+    }
+    
+    public Class[]getTearDownClasses() {
+        return delegate.getTearDownClasses();
+    }
+}

Propchange: db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/company/CompanyFactoryAnnotatedAbstractDelegator.java
------------------------------------------------------------------------------
    svn:eol-style = LF

Added: db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/company/CompanyFactoryNewInstance.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/company/CompanyFactoryNewInstance.java?view=auto&rev=558078
==============================================================================
--- db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/company/CompanyFactoryNewInstance.java
(added)
+++ db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/company/CompanyFactoryNewInstance.java
Fri Jul 20 11:09:27 2007
@@ -0,0 +1,27 @@
+/*
+ * CompanyFactoryNewInstance.java
+ *
+ * Created on July 19, 2007, 2:16 PM
+ *
+ * To change this template, choose Tools | Template Manager
+ * and open the template in the editor.
+ */
+
+package org.apache.jdo.tck.pc.company;
+
+/**
+ *
+ * @author michelle
+ */
+public interface CompanyFactoryNewInstance {
+    
+    abstract public IAddress newAddress();
+    abstract public ICompany newCompany();
+    abstract public IDentalInsurance newDentalInsurance();
+    abstract public IDepartment newDepartment();
+    abstract public IFullTimeEmployee newFullTimeEmployee();
+    abstract public IMedicalInsurance newMedicalInsurance();
+    abstract public IPartTimeEmployee newPartTimeEmployee();
+    abstract public IProject newProject();
+    Class[] getTearDownClasses();    
+}

Propchange: db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/company/CompanyFactoryNewInstance.java
------------------------------------------------------------------------------
    svn:eol-style = LF

Added: db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedFC/CompanyFactoryAnnotatedFCAppPM.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedFC/CompanyFactoryAnnotatedFCAppPM.java?view=auto&rev=558078
==============================================================================
--- db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedFC/CompanyFactoryAnnotatedFCAppPM.java
(added)
+++ db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedFC/CompanyFactoryAnnotatedFCAppPM.java
Fri Jul 20 11:09:27 2007
@@ -0,0 +1,85 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.jdo.tck.pc.companyAnnotatedFC;
+
+import javax.jdo.PersistenceManager;
+import org.apache.jdo.tck.pc.company.*;
+
+/*
+ * CompanyFactoryAnnotatedPMFieldClass.java
+ *
+ * This class uses the PersistenceManager.newInstance method with the concrete
+ * class as a parameter.
+ */
+public class CompanyFactoryAnnotatedFCAppPM
+        implements CompanyFactoryNewInstance {
+    
+    PersistenceManager pm = null;
+    
+    /**
+     * Creates a new instance of CompanyFactoryAnnotatedPMFieldClass
+     */
+    public CompanyFactoryAnnotatedFCAppPM(PersistenceManager pm) {
+        this.pm = pm;        
+    }
+    
+    public Class[] getTearDownClasses() {
+        return new Class[] {
+            FCAppDentalInsurance.class,
+            FCAppMedicalInsurance.class,
+            FCAppPartTimeEmployee.class,
+            FCAppFullTimeEmployee.class,
+            FCAppProject.class,
+            FCAppDepartment.class,
+            FCAppCompany.class,
+            FCAppAddress.class
+        };
+    }
+    
+    public IAddress newAddress() {
+        return (IAddress)pm.newInstance(FCAppAddress.class);
+    }
+    
+    public ICompany newCompany() {
+        return (ICompany)pm.newInstance(FCAppCompany.class);
+    }
+    
+    public IDentalInsurance newDentalInsurance() {
+        return (IDentalInsurance)pm.newInstance(FCAppDentalInsurance.class);
+    }
+    
+    public IDepartment newDepartment() {
+        return (IDepartment)pm.newInstance(FCAppDepartment.class);
+    }
+    
+    public IFullTimeEmployee newFullTimeEmployee() {
+        return (IFullTimeEmployee)pm.newInstance(FCAppFullTimeEmployee.class);
+    }
+    
+    public IMedicalInsurance newMedicalInsurance() {
+        return (IMedicalInsurance)pm.newInstance(FCAppMedicalInsurance.class);
+    }
+    
+    public IPartTimeEmployee newPartTimeEmployee() {
+        return (IPartTimeEmployee)pm.newInstance(FCAppPartTimeEmployee.class);
+    }
+    
+    public IProject newProject() {
+        return (IProject)pm.newInstance(FCAppProject.class);
+    }
+}

Propchange: db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedFC/CompanyFactoryAnnotatedFCAppPM.java
------------------------------------------------------------------------------
    svn:eol-style = LF

Added: db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedFC/CompanyFactoryAnnotatedFCDSPM.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedFC/CompanyFactoryAnnotatedFCDSPM.java?view=auto&rev=558078
==============================================================================
--- db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedFC/CompanyFactoryAnnotatedFCDSPM.java
(added)
+++ db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedFC/CompanyFactoryAnnotatedFCDSPM.java
Fri Jul 20 11:09:27 2007
@@ -0,0 +1,85 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.jdo.tck.pc.companyAnnotatedFC;
+
+import javax.jdo.PersistenceManager;
+import org.apache.jdo.tck.pc.company.*;
+
+/*
+ * CompanyFactoryAnnotatedFCDSPM.java
+ *
+ * This class uses the PersistenceManager.newInstance method with the concrete
+ * class as a parameter.
+ */
+public class CompanyFactoryAnnotatedFCDSPM
+        implements CompanyFactoryNewInstance {
+    
+    PersistenceManager pm = null;
+    
+    /**
+     * Creates a new instance of CompanyFactoryAnnotatedPMFieldClass
+     */
+    public CompanyFactoryAnnotatedFCDSPM(PersistenceManager pm) {
+        this.pm = pm;        
+    }
+    
+    public Class[] getTearDownClasses() {
+        return new Class[] {
+            FCDSDentalInsurance.class,
+            FCDSMedicalInsurance.class,
+            FCDSPartTimeEmployee.class,
+            FCDSFullTimeEmployee.class,
+            FCDSProject.class,
+            FCDSDepartment.class,
+            FCDSCompany.class,
+            FCDSAddress.class
+        };
+    }
+    
+    public IAddress newAddress() {
+        return (IAddress)pm.newInstance(FCDSAddress.class);
+    }
+    
+    public ICompany newCompany() {
+        return (ICompany)pm.newInstance(FCDSCompany.class);
+    }
+    
+    public IDentalInsurance newDentalInsurance() {
+        return (IDentalInsurance)pm.newInstance(FCDSDentalInsurance.class);
+    }
+    
+    public IDepartment newDepartment() {
+        return (IDepartment)pm.newInstance(FCDSDepartment.class);
+    }
+    
+    public IFullTimeEmployee newFullTimeEmployee() {
+        return (IFullTimeEmployee)pm.newInstance(FCDSFullTimeEmployee.class);
+    }
+    
+    public IMedicalInsurance newMedicalInsurance() {
+        return (IMedicalInsurance)pm.newInstance(FCDSMedicalInsurance.class);
+    }
+    
+    public IPartTimeEmployee newPartTimeEmployee() {
+        return (IPartTimeEmployee)pm.newInstance(FCDSPartTimeEmployee.class);
+    }
+    
+    public IProject newProject() {
+        return (IProject)pm.newInstance(FCDSProject.class);
+    }
+}

Propchange: db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedFC/CompanyFactoryAnnotatedFCDSPM.java
------------------------------------------------------------------------------
    svn:eol-style = LF

Added: db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedFC/CompanyFactoryAnnotatedFCPMDelegator.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedFC/CompanyFactoryAnnotatedFCPMDelegator.java?view=auto&rev=558078
==============================================================================
--- db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedFC/CompanyFactoryAnnotatedFCPMDelegator.java
(added)
+++ db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedFC/CompanyFactoryAnnotatedFCPMDelegator.java
Fri Jul 20 11:09:27 2007
@@ -0,0 +1,44 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.jdo.tck.pc.companyAnnotatedFC;
+
+import javax.jdo.PersistenceManager;
+import org.apache.jdo.tck.pc.company.CompanyFactoryAnnotatedAbstractDelegator;
+
+/*
+ * CompanyFactoryAnnotatedPMFieldClass.java
+ *
+ * This class uses the PersistenceManager.newInstance method with the concrete
+ * class as a parameter.
+ */
+public class CompanyFactoryAnnotatedFCPMDelegator
+        extends CompanyFactoryAnnotatedAbstractDelegator {
+    
+    /**
+     * Creates a new instance of CompanyFactory
+     */
+    public CompanyFactoryAnnotatedFCPMDelegator(PersistenceManager pm) {
+        super(pm);
+        if (isAppIdentity){
+            delegate = new CompanyFactoryAnnotatedFCAppPM(pm);
+        } else { //datastoreidentity
+            delegate = new CompanyFactoryAnnotatedFCDSPM(pm);
+        }
+    }
+    
+}

Propchange: db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedFC/CompanyFactoryAnnotatedFCPMDelegator.java
------------------------------------------------------------------------------
    svn:eol-style = LF

Added: db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPI/CompanyFactoryAnnotatedPIAppPM.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPI/CompanyFactoryAnnotatedPIAppPM.java?view=auto&rev=558078
==============================================================================
--- db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPI/CompanyFactoryAnnotatedPIAppPM.java
(added)
+++ db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPI/CompanyFactoryAnnotatedPIAppPM.java
Fri Jul 20 11:09:27 2007
@@ -0,0 +1,85 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.jdo.tck.pc.companyAnnotatedPI;
+
+import javax.jdo.PersistenceManager;
+import org.apache.jdo.tck.pc.company.*;
+
+/*
+ * CompanyFactoryAnnotatedPMFieldClass.java
+ *
+ * This class uses the PersistenceManager.newInstance method with the concrete
+ * class as a parameter.
+ */
+public class CompanyFactoryAnnotatedPIAppPM
+        implements CompanyFactoryNewInstance {
+    
+    PersistenceManager pm = null;
+    
+    /**
+     * Creates a new instance of CompanyFactoryAnnotatedPMFieldClass
+     */
+    public CompanyFactoryAnnotatedPIAppPM(PersistenceManager pm) {
+        this.pm = pm;        
+    }
+    
+    public Class[] getTearDownClasses() {
+        return new Class[] {
+            PIAppDentalInsurance.class,
+            PIAppMedicalInsurance.class,
+            PIAppPartTimeEmployee.class,
+            PIAppFullTimeEmployee.class,
+            PIAppProject.class,
+            PIAppDepartment.class,
+            PIAppCompany.class,
+            PIAppAddress.class
+        };
+    }
+    
+    public IAddress newAddress() {
+        return (IAddress)pm.newInstance(PIAppAddress.class);
+    }
+    
+    public ICompany newCompany() {
+        return (ICompany)pm.newInstance(PIAppCompany.class);
+    }
+    
+    public IDentalInsurance newDentalInsurance() {
+        return (IDentalInsurance)pm.newInstance(PIAppDentalInsurance.class);
+    }
+    
+    public IDepartment newDepartment() {
+        return (IDepartment)pm.newInstance(PIAppDepartment.class);
+    }
+    
+    public IFullTimeEmployee newFullTimeEmployee() {
+        return (IFullTimeEmployee)pm.newInstance(PIAppFullTimeEmployee.class);
+    }
+    
+    public IMedicalInsurance newMedicalInsurance() {
+        return (IMedicalInsurance)pm.newInstance(PIAppMedicalInsurance.class);
+    }
+    
+    public IPartTimeEmployee newPartTimeEmployee() {
+        return (IPartTimeEmployee)pm.newInstance(PIAppPartTimeEmployee.class);
+    }
+    
+    public IProject newProject() {
+        return (IProject)pm.newInstance(PIAppProject.class);
+    }
+}

Propchange: db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPI/CompanyFactoryAnnotatedPIAppPM.java
------------------------------------------------------------------------------
    svn:eol-style = LF

Added: db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPI/CompanyFactoryAnnotatedPIDSPM.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPI/CompanyFactoryAnnotatedPIDSPM.java?view=auto&rev=558078
==============================================================================
--- db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPI/CompanyFactoryAnnotatedPIDSPM.java
(added)
+++ db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPI/CompanyFactoryAnnotatedPIDSPM.java
Fri Jul 20 11:09:27 2007
@@ -0,0 +1,85 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.jdo.tck.pc.companyAnnotatedPI;
+
+import javax.jdo.PersistenceManager;
+import org.apache.jdo.tck.pc.company.*;
+
+/*
+ * CompanyFactoryAnnotatedPIDSPM.java
+ *
+ * This class uses the PersistenceManager.newInstance method with the concrete
+ * class as a parameter.
+ */
+public class CompanyFactoryAnnotatedPIDSPM
+        implements CompanyFactoryNewInstance {
+    
+    PersistenceManager pm = null;
+    
+    /**
+     * Creates a new instance of CompanyFactoryAnnotatedPMFieldClass
+     */
+    public CompanyFactoryAnnotatedPIDSPM(PersistenceManager pm) {
+        this.pm = pm;        
+    }
+    
+    public Class[] getTearDownClasses() {
+        return new Class[] {
+            PIDSDentalInsurance.class,
+            PIDSMedicalInsurance.class,
+            PIDSPartTimeEmployee.class,
+            PIDSFullTimeEmployee.class,
+            PIDSProject.class,
+            PIDSDepartment.class,
+            PIDSCompany.class,
+            PIDSAddress.class
+        };
+    }
+    
+    public IAddress newAddress() {
+        return (IAddress)pm.newInstance(PIDSAddress.class);
+    }
+    
+    public ICompany newCompany() {
+        return (ICompany)pm.newInstance(PIDSCompany.class);
+    }
+    
+    public IDentalInsurance newDentalInsurance() {
+        return (IDentalInsurance)pm.newInstance(PIDSDentalInsurance.class);
+    }
+    
+    public IDepartment newDepartment() {
+        return (IDepartment)pm.newInstance(PIDSDepartment.class);
+    }
+    
+    public IFullTimeEmployee newFullTimeEmployee() {
+        return (IFullTimeEmployee)pm.newInstance(PIDSFullTimeEmployee.class);
+    }
+    
+    public IMedicalInsurance newMedicalInsurance() {
+        return (IMedicalInsurance)pm.newInstance(PIDSMedicalInsurance.class);
+    }
+    
+    public IPartTimeEmployee newPartTimeEmployee() {
+        return (IPartTimeEmployee)pm.newInstance(PIDSPartTimeEmployee.class);
+    }
+    
+    public IProject newProject() {
+        return (IProject)pm.newInstance(PIDSProject.class);
+    }
+}

Propchange: db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPI/CompanyFactoryAnnotatedPIDSPM.java
------------------------------------------------------------------------------
    svn:eol-style = LF

Added: db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPI/CompanyFactoryAnnotatedPIPMDelegator.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPI/CompanyFactoryAnnotatedPIPMDelegator.java?view=auto&rev=558078
==============================================================================
--- db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPI/CompanyFactoryAnnotatedPIPMDelegator.java
(added)
+++ db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPI/CompanyFactoryAnnotatedPIPMDelegator.java
Fri Jul 20 11:09:27 2007
@@ -0,0 +1,43 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.jdo.tck.pc.companyAnnotatedPI;
+
+import javax.jdo.PersistenceManager;
+import org.apache.jdo.tck.pc.company.CompanyFactoryAnnotatedAbstractDelegator;
+
+/*
+ * CompanyFactoryAnnotatedPMFieldClass.java
+ *
+ * This class uses the PersistenceManager.newInstance method with the concrete
+ * class as a parameter.
+ */
+public class CompanyFactoryAnnotatedPIPMDelegator
+        extends CompanyFactoryAnnotatedAbstractDelegator {
+    
+    /**
+     * Creates a new instance of CompanyFactory
+     */
+    public CompanyFactoryAnnotatedPIPMDelegator(PersistenceManager pm) {
+        super(pm);
+        if (isAppIdentity){
+            delegate = new CompanyFactoryAnnotatedPIAppPM(pm);
+        } else { //datastoreidentity
+            delegate = new CompanyFactoryAnnotatedPIDSPM(pm);
+        }
+    }
+}

Propchange: db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPI/CompanyFactoryAnnotatedPIPMDelegator.java
------------------------------------------------------------------------------
    svn:eol-style = LF



Mime
View raw message