db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject svn commit: r386225 - in /db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/pc/company: Address.java Company.java DentalInsurance.java Department.java FullTimeEmployee.java MedicalInsurance.java PartTimeEmployee.java Project.java
Date Thu, 16 Mar 2006 00:04:38 GMT
Author: clr
Date: Wed Mar 15 16:04:36 2006
New Revision: 386225

URL: http://svn.apache.org/viewcvs?rev=386225&view=rev
Log:
JDO-339 Change no-args constructors from protected to public

Modified:
    db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/pc/company/Address.java
    db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/pc/company/Company.java
    db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/pc/company/DentalInsurance.java
    db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/pc/company/Department.java
    db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/pc/company/FullTimeEmployee.java
    db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/pc/company/MedicalInsurance.java
    db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/pc/company/PartTimeEmployee.java
    db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/pc/company/Project.java

Modified: db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/pc/company/Address.java
URL: http://svn.apache.org/viewcvs/db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/pc/company/Address.java?rev=386225&r1=386224&r2=386225&view=diff
==============================================================================
--- db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/pc/company/Address.java (original)
+++ db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/pc/company/Address.java Wed Mar 15 16:04:36
2006
@@ -35,8 +35,10 @@
     private String  zipcode;
     private String  country;
 
-    /** This is the JDO-required no-args constructor */
-    protected Address() {}
+    /** This is the JDO-required no-args constructor. The TCK relies on
+     * this constructor for testing PersistenceManager.newInstance(PCClass).
+     */
+    public Address() {}
 
     /**
      * This constructor initializes the <code>Address</code> components.

Modified: db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/pc/company/Company.java
URL: http://svn.apache.org/viewcvs/db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/pc/company/Company.java?rev=386225&r1=386224&r2=386225&view=diff
==============================================================================
--- db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/pc/company/Company.java (original)
+++ db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/pc/company/Company.java Wed Mar 15 16:04:36
2006
@@ -46,8 +46,10 @@
     protected static SimpleDateFormat formatter =
         new SimpleDateFormat("d/MMM/yyyy");
 
-    /** This is the JDO-required no-args constructor */
-    protected Company() {}
+    /** This is the JDO-required no-args constructor. The TCK relies on
+     * this constructor for testing PersistenceManager.newInstance(PCClass).
+     */
+    public Company() {}
 
     /** 
      * Initialize the <code>Company</code> instance.

Modified: db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/pc/company/DentalInsurance.java
URL: http://svn.apache.org/viewcvs/db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/pc/company/DentalInsurance.java?rev=386225&r1=386224&r2=386225&view=diff
==============================================================================
--- db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/pc/company/DentalInsurance.java (original)
+++ db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/pc/company/DentalInsurance.java Wed Mar
15 16:04:36 2006
@@ -29,8 +29,10 @@
 
     private BigDecimal lifetimeOrthoBenefit;
 
-    /** This is the JDO-required no-args constructor */
-    protected DentalInsurance() {}
+    /** This is the JDO-required no-args constructor. The TCK relies on
+     * this constructor for testing PersistenceManager.newInstance(PCClass).
+     */
+    public DentalInsurance() {}
 
     /**
      * Construct a <code>DentalInsurance</code> instance.

Modified: db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/pc/company/Department.java
URL: http://svn.apache.org/viewcvs/db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/pc/company/Department.java?rev=386225&r1=386224&r2=386225&view=diff
==============================================================================
--- db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/pc/company/Department.java (original)
+++ db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/pc/company/Department.java Wed Mar 15 16:04:36
2006
@@ -43,8 +43,10 @@
     private transient Set employees = new HashSet(); // element type is Employee
     private transient Set fundedEmps = new HashSet(); // element type is Employee
 
-    /** This is the JDO-required no-args constructor */
-    protected Department() {}
+    /** This is the JDO-required no-args constructor. The TCK relies on
+     * this constructor for testing PersistenceManager.newInstance(PCClass).
+     */
+    public Department() {}
 
     /**
      * Construct a <code>Department</code> instance.

Modified: db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/pc/company/FullTimeEmployee.java
URL: http://svn.apache.org/viewcvs/db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/pc/company/FullTimeEmployee.java?rev=386225&r1=386224&r2=386225&view=diff
==============================================================================
--- db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/pc/company/FullTimeEmployee.java (original)
+++ db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/pc/company/FullTimeEmployee.java Wed Mar
15 16:04:36 2006
@@ -28,8 +28,10 @@
 
     private double  salary;
 
-    /** This is the JDO-required no-args constructor */
-    protected FullTimeEmployee() {}
+    /** This is the JDO-required no-args constructor. The TCK relies on
+     * this constructor for testing PersistenceManager.newInstance(PCClass).
+     */
+    public FullTimeEmployee() {}
 
     /**
      * Construct a full-time employee.

Modified: db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/pc/company/MedicalInsurance.java
URL: http://svn.apache.org/viewcvs/db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/pc/company/MedicalInsurance.java?rev=386225&r1=386224&r2=386225&view=diff
==============================================================================
--- db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/pc/company/MedicalInsurance.java (original)
+++ db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/pc/company/MedicalInsurance.java Wed Mar
15 16:04:36 2006
@@ -29,8 +29,10 @@
 
     private String planType; // possible values: "PPO", "EPO", "NPO" 
 
-    /** This is the JDO-required no-args constructor */
-    protected MedicalInsurance() {}
+    /** This is the JDO-required no-args constructor. The TCK relies on
+     * this constructor for testing PersistenceManager.newInstance(PCClass).
+     */
+    public MedicalInsurance() {}
 
     /**
      * Construct a <code>MedicalInsurance</code> instance.

Modified: db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/pc/company/PartTimeEmployee.java
URL: http://svn.apache.org/viewcvs/db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/pc/company/PartTimeEmployee.java?rev=386225&r1=386224&r2=386225&view=diff
==============================================================================
--- db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/pc/company/PartTimeEmployee.java (original)
+++ db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/pc/company/PartTimeEmployee.java Wed Mar
15 16:04:36 2006
@@ -27,8 +27,10 @@
 public class PartTimeEmployee extends Employee implements IPartTimeEmployee {
     private double wage;
 
-    /** This is the JDO-required no-args constructor. */
-    protected PartTimeEmployee() {}
+    /** This is the JDO-required no-args constructor. The TCK relies on
+     * this constructor for testing PersistenceManager.newInstance(PCClass).
+     */
+    public PartTimeEmployee() {}
 
     /**
      * Construct a part-time employee.

Modified: db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/pc/company/Project.java
URL: http://svn.apache.org/viewcvs/db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/pc/company/Project.java?rev=386225&r1=386224&r2=386225&view=diff
==============================================================================
--- db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/pc/company/Project.java (original)
+++ db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/pc/company/Project.java Wed Mar 15 16:04:36
2006
@@ -42,8 +42,10 @@
     private transient Set reviewers = new HashSet(); // element type is Employee
     private transient Set members = new HashSet();   // element type is Employee
 
-    /** This is the JDO-required no-args constructor. */
-    protected Project() {}
+    /** This is the JDO-required no-args constructor. The TCK relies on
+     * this constructor for testing PersistenceManager.newInstance(PCClass).
+     */
+    public Project() {}
 
     /**
      * Initialize a project.



Mime
View raw message