db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcai...@apache.org
Subject svn commit: r558505 - in /db/jdo/trunk/tck2/src: conf/ java/org/apache/jdo/tck/pc/companyAnnotatedFC/
Date Sun, 22 Jul 2007 16:23:08 GMT
Author: mcaisse
Date: Sun Jul 22 09:23:06 2007
New Revision: 558505

URL: http://svn.apache.org/viewvc?view=rev&rev=558505
Log:
JDO-503 Rename conf files; add factory classes, move some factories from company to companyFactoryAnnotatedFC

Added:
    db/jdo/trunk/tck2/src/conf/companyAnnotated1-1RelationshipsFCPM.conf
      - copied, changed from r558497, db/jdo/trunk/tck2/src/conf/companyFCAnnotated1-1Relationships.conf
    db/jdo/trunk/tck2/src/conf/companyAnnotated1-MRelationshipsFCPM.conf
      - copied, changed from r558497, db/jdo/trunk/tck2/src/conf/companyFCAnnotated1-MRelationships.conf
    db/jdo/trunk/tck2/src/conf/companyAnnotatedAllRelationshipsFCPM.conf
      - copied, changed from r558497, db/jdo/trunk/tck2/src/conf/companyFCAnnotatedAllRelationships.conf
    db/jdo/trunk/tck2/src/conf/companyAnnotatedEmbeddedFCPM.conf
      - copied, changed from r558497, db/jdo/trunk/tck2/src/conf/companyFCAnnotatedEmbedded.conf
    db/jdo/trunk/tck2/src/conf/companyAnnotatedM-MRelationshipsFCConcrete.conf
    db/jdo/trunk/tck2/src/conf/companyAnnotatedM-MRelationshipsFCPM.conf
      - copied, changed from r558497, db/jdo/trunk/tck2/src/conf/companyFCAnnotatedM-MRelationships.conf
    db/jdo/trunk/tck2/src/conf/companyAnnotatedNoRelationshipsFCPM.conf
      - copied, changed from r558497, db/jdo/trunk/tck2/src/conf/companyFCAnnotatedNoRelationships.conf
    db/jdo/trunk/tck2/src/conf/companyAnnotatedNoRelationshipsPIPM.conf
      - copied, changed from r558497, db/jdo/trunk/tck2/src/conf/companyPIAnnotatedNoRelationships.conf
    db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedFC/CompanyFactoryAnnotatedFCAppConcrete.java
  (with props)
    db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedFC/CompanyFactoryAnnotatedFCConcreteDelegator.java
  (with props)
    db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedFC/CompanyFactoryAnnotatedFCDSConcrete.java
  (with props)
Removed:
    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

Copied: db/jdo/trunk/tck2/src/conf/companyAnnotated1-1RelationshipsFCPM.conf (from r558497,
db/jdo/trunk/tck2/src/conf/companyFCAnnotated1-1Relationships.conf)
URL: http://svn.apache.org/viewvc/db/jdo/trunk/tck2/src/conf/companyAnnotated1-1RelationshipsFCPM.conf?view=diff&rev=558505&p1=db/jdo/trunk/tck2/src/conf/companyFCAnnotated1-1Relationships.conf&r1=558497&p2=db/jdo/trunk/tck2/src/conf/companyAnnotated1-1RelationshipsFCPM.conf&r2=558505
==============================================================================
--- db/jdo/trunk/tck2/src/conf/companyFCAnnotated1-1Relationships.conf (original)
+++ db/jdo/trunk/tck2/src/conf/companyAnnotated1-1RelationshipsFCPM.conf Sun Jul 22 09:23:06
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.CompanyFactoryAnnotatedFCPMDelegator
+jdo.tck.mapping.companyfactory = org.apache.jdo.tck.pc.companyAnnotatedFC.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

Copied: db/jdo/trunk/tck2/src/conf/companyAnnotated1-MRelationshipsFCPM.conf (from r558497,
db/jdo/trunk/tck2/src/conf/companyFCAnnotated1-MRelationships.conf)
URL: http://svn.apache.org/viewvc/db/jdo/trunk/tck2/src/conf/companyAnnotated1-MRelationshipsFCPM.conf?view=diff&rev=558505&p1=db/jdo/trunk/tck2/src/conf/companyFCAnnotated1-MRelationships.conf&r1=558497&p2=db/jdo/trunk/tck2/src/conf/companyAnnotated1-MRelationshipsFCPM.conf&r2=558505
==============================================================================
--- db/jdo/trunk/tck2/src/conf/companyFCAnnotated1-MRelationships.conf (original)
+++ db/jdo/trunk/tck2/src/conf/companyAnnotated1-MRelationshipsFCPM.conf Sun Jul 22 09:23:06
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.CompanyFactoryAnnotatedFCPMDelegator
+jdo.tck.mapping.companyfactory = org.apache.jdo.tck.pc.companyAnnotatedFC.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

Copied: db/jdo/trunk/tck2/src/conf/companyAnnotatedAllRelationshipsFCPM.conf (from r558497,
db/jdo/trunk/tck2/src/conf/companyFCAnnotatedAllRelationships.conf)
URL: http://svn.apache.org/viewvc/db/jdo/trunk/tck2/src/conf/companyAnnotatedAllRelationshipsFCPM.conf?view=diff&rev=558505&p1=db/jdo/trunk/tck2/src/conf/companyFCAnnotatedAllRelationships.conf&r1=558497&p2=db/jdo/trunk/tck2/src/conf/companyAnnotatedAllRelationshipsFCPM.conf&r2=558505
==============================================================================
--- db/jdo/trunk/tck2/src/conf/companyFCAnnotatedAllRelationships.conf (original)
+++ db/jdo/trunk/tck2/src/conf/companyAnnotatedAllRelationshipsFCPM.conf Sun Jul 22 09:23:06
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.CompanyFactoryAnnotatedFCPMDelegator
+jdo.tck.mapping.companyfactory = org.apache.jdo.tck.pc.companyAnnotatedFC.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

Copied: db/jdo/trunk/tck2/src/conf/companyAnnotatedEmbeddedFCPM.conf (from r558497, db/jdo/trunk/tck2/src/conf/companyFCAnnotatedEmbedded.conf)
URL: http://svn.apache.org/viewvc/db/jdo/trunk/tck2/src/conf/companyAnnotatedEmbeddedFCPM.conf?view=diff&rev=558505&p1=db/jdo/trunk/tck2/src/conf/companyFCAnnotatedEmbedded.conf&r1=558497&p2=db/jdo/trunk/tck2/src/conf/companyAnnotatedEmbeddedFCPM.conf&r2=558505
==============================================================================
--- db/jdo/trunk/tck2/src/conf/companyFCAnnotatedEmbedded.conf (original)
+++ db/jdo/trunk/tck2/src/conf/companyAnnotatedEmbeddedFCPM.conf Sun Jul 22 09:23:06 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.CompanyFactoryAnnotatedFCPMDelegator
+jdo.tck.mapping.companyfactory = org.apache.jdo.tck.pc.companyAnnotatedFC.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

Added: db/jdo/trunk/tck2/src/conf/companyAnnotatedM-MRelationshipsFCConcrete.conf
URL: http://svn.apache.org/viewvc/db/jdo/trunk/tck2/src/conf/companyAnnotatedM-MRelationshipsFCConcrete.conf?view=auto&rev=558505
==============================================================================
--- db/jdo/trunk/tck2/src/conf/companyAnnotatedM-MRelationshipsFCConcrete.conf (added)
+++ db/jdo/trunk/tck2/src/conf/companyAnnotatedM-MRelationshipsFCConcrete.conf Sun Jul 22
09:23:06 2007
@@ -0,0 +1,21 @@
+# 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.
+
+jdo.tck.description = Completeness test with standard mapping, basic testdata with M-M relationships,
annotations. 
+jdo.tck.mapping.companyfactory = org.apache.jdo.tck.pc.companyAnnotatedFC.CompanyFactoryAnnotatedFCConcreteDelegator
+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
+jdo.tck.requiredOptions =

Copied: db/jdo/trunk/tck2/src/conf/companyAnnotatedM-MRelationshipsFCPM.conf (from r558497,
db/jdo/trunk/tck2/src/conf/companyFCAnnotatedM-MRelationships.conf)
URL: http://svn.apache.org/viewvc/db/jdo/trunk/tck2/src/conf/companyAnnotatedM-MRelationshipsFCPM.conf?view=diff&rev=558505&p1=db/jdo/trunk/tck2/src/conf/companyFCAnnotatedM-MRelationships.conf&r1=558497&p2=db/jdo/trunk/tck2/src/conf/companyAnnotatedM-MRelationshipsFCPM.conf&r2=558505
==============================================================================
--- db/jdo/trunk/tck2/src/conf/companyFCAnnotatedM-MRelationships.conf (original)
+++ db/jdo/trunk/tck2/src/conf/companyAnnotatedM-MRelationshipsFCPM.conf Sun Jul 22 09:23:06
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.CompanyFactoryAnnotatedFCPMDelegator
+jdo.tck.mapping.companyfactory = org.apache.jdo.tck.pc.companyAnnotatedFC.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

Copied: db/jdo/trunk/tck2/src/conf/companyAnnotatedNoRelationshipsFCPM.conf (from r558497,
db/jdo/trunk/tck2/src/conf/companyFCAnnotatedNoRelationships.conf)
URL: http://svn.apache.org/viewvc/db/jdo/trunk/tck2/src/conf/companyAnnotatedNoRelationshipsFCPM.conf?view=diff&rev=558505&p1=db/jdo/trunk/tck2/src/conf/companyFCAnnotatedNoRelationships.conf&r1=558497&p2=db/jdo/trunk/tck2/src/conf/companyAnnotatedNoRelationshipsFCPM.conf&r2=558505
==============================================================================
--- db/jdo/trunk/tck2/src/conf/companyFCAnnotatedNoRelationships.conf (original)
+++ db/jdo/trunk/tck2/src/conf/companyAnnotatedNoRelationshipsFCPM.conf Sun Jul 22 09:23:06
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.CompanyFactoryAnnotatedFCPMDelegator
+jdo.tck.mapping.companyfactory = org.apache.jdo.tck.pc.companyAnnotatedFC.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

Copied: db/jdo/trunk/tck2/src/conf/companyAnnotatedNoRelationshipsPIPM.conf (from r558497,
db/jdo/trunk/tck2/src/conf/companyPIAnnotatedNoRelationships.conf)
URL: http://svn.apache.org/viewvc/db/jdo/trunk/tck2/src/conf/companyAnnotatedNoRelationshipsPIPM.conf?view=diff&rev=558505&p1=db/jdo/trunk/tck2/src/conf/companyPIAnnotatedNoRelationships.conf&r1=558497&p2=db/jdo/trunk/tck2/src/conf/companyAnnotatedNoRelationshipsPIPM.conf&r2=558505
==============================================================================
--- db/jdo/trunk/tck2/src/conf/companyPIAnnotatedNoRelationships.conf (original)
+++ db/jdo/trunk/tck2/src/conf/companyAnnotatedNoRelationshipsPIPM.conf Sun Jul 22 09:23:06
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.CompanyFactoryAnnotatedPIPMDelegator
+jdo.tck.mapping.companyfactory = org.apache.jdo.tck.pc.companyAnnotatedPI.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/companyAnnotatedFC/CompanyFactoryAnnotatedFCAppConcrete.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedFC/CompanyFactoryAnnotatedFCAppConcrete.java?view=auto&rev=558505
==============================================================================
--- db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedFC/CompanyFactoryAnnotatedFCAppConcrete.java
(added)
+++ db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedFC/CompanyFactoryAnnotatedFCAppConcrete.java
Sun Jul 22 09:23:06 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 CompanyFactoryAnnotatedFCAppConcrete
+        implements CompanyFactoryNewInstance {
+    
+    PersistenceManager pm = null;
+    
+    /**
+     * Creates a new instance of CompanyFactoryAnnotatedPMFieldClass
+     */
+    public CompanyFactoryAnnotatedFCAppConcrete(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) new FCAppAddress();
+    }
+    
+    public ICompany newCompany() {
+        return (ICompany) new FCAppCompany();
+    }
+    
+    public IDentalInsurance newDentalInsurance() {
+        return (IDentalInsurance) new FCAppDentalInsurance();
+    }
+    
+    public IDepartment newDepartment() {
+        return (IDepartment) new FCAppDepartment();
+    }
+    
+    public IFullTimeEmployee newFullTimeEmployee() {
+        return (IFullTimeEmployee) new FCAppFullTimeEmployee();
+    }
+    
+    public IMedicalInsurance newMedicalInsurance() {
+        return (IMedicalInsurance) new FCAppMedicalInsurance();
+    }
+    
+    public IPartTimeEmployee newPartTimeEmployee() {
+        return (IPartTimeEmployee) new FCAppPartTimeEmployee();
+    }
+    
+    public IProject newProject() {
+        return (IProject) new FCAppProject();
+    }
+}

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

Added: db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedFC/CompanyFactoryAnnotatedFCConcreteDelegator.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedFC/CompanyFactoryAnnotatedFCConcreteDelegator.java?view=auto&rev=558505
==============================================================================
--- db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedFC/CompanyFactoryAnnotatedFCConcreteDelegator.java
(added)
+++ db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedFC/CompanyFactoryAnnotatedFCConcreteDelegator.java
Sun Jul 22 09:23:06 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 CompanyFactoryAnnotatedFCConcreteDelegator
+        extends CompanyFactoryAnnotatedAbstractDelegator {
+    
+    /**
+     * Creates a new instance of CompanyFactory
+     */
+    public CompanyFactoryAnnotatedFCConcreteDelegator(PersistenceManager pm) {
+        super(pm);
+        if (isAppIdentity){
+            delegate = new CompanyFactoryAnnotatedFCAppConcrete(pm);
+        } else { //datastoreidentity
+            delegate = new CompanyFactoryAnnotatedFCDSConcrete(pm);
+        }
+    }
+    
+}

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

Added: db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedFC/CompanyFactoryAnnotatedFCDSConcrete.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedFC/CompanyFactoryAnnotatedFCDSConcrete.java?view=auto&rev=558505
==============================================================================
--- db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedFC/CompanyFactoryAnnotatedFCDSConcrete.java
(added)
+++ db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedFC/CompanyFactoryAnnotatedFCDSConcrete.java
Sun Jul 22 09:23:06 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 CompanyFactoryAnnotatedFCDSConcrete
+        implements CompanyFactoryNewInstance {
+    
+    PersistenceManager pm = null;
+    
+    /**
+     * Creates a new instance of CompanyFactoryAnnotatedPMFieldClass
+     */
+    public CompanyFactoryAnnotatedFCDSConcrete(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) new FCDSAddress();
+    }
+    
+    public ICompany newCompany() {
+        return (ICompany) new FCDSCompany();
+    }
+    
+    public IDentalInsurance newDentalInsurance() {
+        return (IDentalInsurance) new FCDSDentalInsurance();
+    }
+    
+    public IDepartment newDepartment() {
+        return (IDepartment) new FCDSDepartment();
+    }
+    
+    public IFullTimeEmployee newFullTimeEmployee() {
+        return (IFullTimeEmployee) new FCDSFullTimeEmployee();
+    }
+    
+    public IMedicalInsurance newMedicalInsurance() {
+        return (IMedicalInsurance) new FCDSMedicalInsurance();
+    }
+    
+    public IPartTimeEmployee newPartTimeEmployee() {
+        return (IPartTimeEmployee) new FCDSPartTimeEmployee();
+    }
+    
+    public IProject newProject() {
+        return (IProject) new FCDSProject();
+    }
+}

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



Mime
View raw message