db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcai...@apache.org
Subject svn commit: r201114 - in /incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc: company/ icompany/
Date Thu, 23 Jun 2005 20:33:03 GMT
Author: mcaisse
Date: Thu Jun 23 13:33:01 2005
New Revision: 201114

URL: http://svn.apache.org/viewcvs?rev=201114&view=rev
Log:
Add ICompany package of interfaces. Submitted by Michael Watzek

Added:
    incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/icompany/
    incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/icompany/IAddress.java
    incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/icompany/ICompany.java
    incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/icompany/IDentalInsurance.java
    incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/icompany/IDepartment.java
    incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/icompany/IEmployee.java
    incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/icompany/IFullTimeEmployee.java
    incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/icompany/IInsurance.java
    incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/icompany/IMedicalInsurance.java
    incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/icompany/IPartTimeEmployee.java
    incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/icompany/IPerson.java
    incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/icompany/IProject.java
Removed:
    incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/company/ICompany.java
Modified:
    incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/company/Company.java

Modified: incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/company/Company.java
URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/company/Company.java?rev=201114&r1=201113&r2=201114&view=diff
==============================================================================
--- incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/company/Company.java (original)
+++ incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/company/Company.java Thu Jun
23 13:33:01 2005
@@ -32,7 +32,7 @@
  * This class represents information about a company.
  */
 public class Company 
-    implements Serializable, Comparable, DeepEquality, ICompany {
+    implements Serializable, Comparable, DeepEquality {
 
     private long        companyid;
     private String      name;
@@ -190,7 +190,7 @@
      */
     public boolean deepCompareFields(DeepEquality other, 
                                      EqualityHelper helper) {
-        ICompany otherCompany = (ICompany)other;
+        Company otherCompany = (Company)other;
         return (companyid == otherCompany.getCompanyid()) &&
             helper.equals(name, otherCompany.getName()) &&
             helper.equals(founded, otherCompany.getFounded()) &&
@@ -209,7 +209,7 @@
      * it from being compared to this Object. 
      */
     public int compareTo(Object o) {
-        return compareTo((ICompany)o);
+        return compareTo((Company)o);
     }
 
     /** 
@@ -222,7 +222,7 @@
      * object is less than, equal to, or greater than the specified Company
      * object. 
      */
-    public int compareTo(ICompany other) {
+    public int compareTo(Company other) {
         long otherId = other.getCompanyid();
         return (companyid < otherId ? -1 : (companyid == otherId ? 0 : 1));
     }
@@ -234,8 +234,8 @@
      * argument; <code>false</code> otherwise. 
      */
     public boolean equals(Object obj) {
-        if (obj instanceof ICompany) {
-            return compareTo((ICompany)obj) == 0;
+        if (obj instanceof Company) {
+            return compareTo((Company)obj) == 0;
         }
         return false;
     }

Added: incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/icompany/IAddress.java
URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/icompany/IAddress.java?rev=201114&view=auto
==============================================================================
--- incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/icompany/IAddress.java (added)
+++ incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/icompany/IAddress.java Thu Jun
23 13:33:01 2005
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2005 The Apache Software Foundation.
+ * 
+ * Licensed 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.icompany;
+
+/**
+ * This interface represents the persistent state of Address.
+ * Javadoc was deliberately omitted because it would distract from
+ * the purpose of the interface.
+ */
+public interface IAddress {
+
+    long getAddrid();
+    String getStreet();
+    String getCity();
+    String getState();
+    String getZipcode();
+    String getCountry();
+    
+    void setStreet(String street);
+    void setCity(String city);
+    void setState(String state);
+    void setZipcode(String zipcode);
+    void setCountry(String country);
+}

Added: incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/icompany/ICompany.java
URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/icompany/ICompany.java?rev=201114&view=auto
==============================================================================
--- incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/icompany/ICompany.java (added)
+++ incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/icompany/ICompany.java Thu Jun
23 13:33:01 2005
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2005 The Apache Software Foundation.
+ * 
+ * Licensed 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.icompany;
+
+import java.util.Date;
+import java.util.Set;
+
+/**
+ * This interface represents the persistent state of Company.
+ * Javadoc was deliberately omitted because it would distract from
+ * the purpose of the interface.
+ */
+public interface ICompany {
+    
+    IAddress getAddress();
+    long getCompanyid();
+    Set getDepartments();
+    Date getFounded();
+    String getName();
+    
+    void setAddress(IAddress a);
+    void setCompanyid(long id);
+    void setDepartments(Set depts);
+    void setFounded(Date date);
+    void setName(String string);
+}

Added: incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/icompany/IDentalInsurance.java
URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/icompany/IDentalInsurance.java?rev=201114&view=auto
==============================================================================
--- incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/icompany/IDentalInsurance.java
(added)
+++ incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/icompany/IDentalInsurance.java
Thu Jun 23 13:33:01 2005
@@ -0,0 +1,30 @@
+/*
+ * Copyright 2005 The Apache Software Foundation.
+ * 
+ * Licensed 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.icompany;
+
+import java.math.BigDecimal;
+
+/**
+ * This interface represents the persistent state of DentalInsurance.
+ * Javadoc was deliberately omitted because it would distract from
+ * the purpose of the interface.
+ */
+public interface IDentalInsurance {
+
+    BigDecimal getLifetimeOrthoBenefit();
+    void setLifetimeOrthoBenefit(BigDecimal lifetimeOrthoBenefit);
+}

Added: incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/icompany/IDepartment.java
URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/icompany/IDepartment.java?rev=201114&view=auto
==============================================================================
--- incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/icompany/IDepartment.java (added)
+++ incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/icompany/IDepartment.java Thu
Jun 23 13:33:01 2005
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2005 The Apache Software Foundation.
+ * 
+ * Licensed 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.icompany;
+
+import java.util.Set;
+
+/**
+ * This interface represents the persistent state of Department.
+ * Javadoc was deliberately omitted because it would distract from
+ * the purpose of the interface.
+ */
+public interface IDepartment {
+
+    long getDeptid();
+    String getName();
+    ICompany getCompany();
+    IEmployee getEmployeeOfTheMonth();
+    Set getEmployees();
+    Set getFundedEmps();
+    
+    void setName(String name);
+    void setCompany(ICompany company);
+    void setEmployeeOfTheMonth(IEmployee employeeOfTheMonth);
+    void setEmployees(Set employees);
+    void setFundedEmps(Set employees);
+
+    void addEmployee(IEmployee emp);
+    void addFundedEmp(IEmployee emp);
+
+    void removeEmployee(IEmployee emp);
+    void removeFundedEmp(IEmployee emp);
+}

Added: incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/icompany/IEmployee.java
URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/icompany/IEmployee.java?rev=201114&view=auto
==============================================================================
--- incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/icompany/IEmployee.java (added)
+++ incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/icompany/IEmployee.java Thu
Jun 23 13:33:01 2005
@@ -0,0 +1,68 @@
+/*
+ * Copyright 2005 The Apache Software Foundation.
+ * 
+ * Licensed 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.icompany;
+
+import java.util.Date;
+import java.util.Set;
+
+/**
+ * This interface represents the persistent state of Employee.
+ * Javadoc was deliberately omitted because it would distract from
+ * the purpose of the interface.
+ */
+public interface IEmployee {
+
+    Date getHiredate();
+    double getWeeklyhours();
+    Set getReviewedProjects();
+    Set getProjects();
+    IDentalInsurance getDentalInsurance();
+    IMedicalInsurance getMedicalInsurance();
+    IDepartment getDepartment();
+    IDepartment getFundingDept();
+    IEmployee getManager();
+    Set getTeam();
+    IEmployee getMentor();
+    IEmployee getProtege();
+    IEmployee getHradvisor();
+    Set getHradvisees();
+    
+    void setHiredate(Date hiredate);
+    void setWeeklyhours(double weeklyhours);
+    void setReviewedProjects(Set reviewedProjects);
+    void setProjects(Set projects);
+    void setDentalInsurance(IDentalInsurance dentalInsurance);
+    void setMedicalInsurance(IMedicalInsurance medicalInsurance);
+    void setDepartment(IDepartment department);
+    void setFundingDept(IDepartment department);
+    void setManager(IEmployee manager);
+    void setTeam(Set team);
+    void setMentor(IEmployee mentor);
+    void setProtege(IEmployee protege);
+    void setHradvisor(IEmployee hradvisor);
+    void setHradvisees(Set hradvisees);
+    
+    void addReviewedProjects(IProject project);
+    void addProject(IProject project);
+    void addToTeam(IEmployee emp);
+    void addAdvisee(IEmployee emp);
+    
+    void removeReviewedProject(IProject project);
+    void removeProject(IProject project);
+    void removeFromTeam(IEmployee emp);
+    void removeAdvisee(IEmployee emp);
+}

Added: incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/icompany/IFullTimeEmployee.java
URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/icompany/IFullTimeEmployee.java?rev=201114&view=auto
==============================================================================
--- incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/icompany/IFullTimeEmployee.java
(added)
+++ incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/icompany/IFullTimeEmployee.java
Thu Jun 23 13:33:01 2005
@@ -0,0 +1,28 @@
+/*
+ * Copyright 2005 The Apache Software Foundation.
+ * 
+ * Licensed 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.icompany;
+
+/**
+ * This interface represents the persistent state of FullTimeEmployee.
+ * Javadoc was deliberately omitted because it would distract from
+ * the purpose of the interface.
+ */
+public interface IFullTimeEmployee {
+
+    double getSalary();
+    void setSalary(double salary);
+}

Added: incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/icompany/IInsurance.java
URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/icompany/IInsurance.java?rev=201114&view=auto
==============================================================================
--- incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/icompany/IInsurance.java (added)
+++ incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/icompany/IInsurance.java Thu
Jun 23 13:33:01 2005
@@ -0,0 +1,33 @@
+/*
+ * Copyright 2005 The Apache Software Foundation.
+ * 
+ * Licensed 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.icompany;
+
+/**
+ * This interface represents the persistent state of Insurance.
+ * Javadoc was deliberately omitted because it would distract from
+ * the purpose of the interface.
+ */
+public interface IInsurance {
+
+    long getInsid();
+    String getCarrier();
+    IEmployee getEmployee();
+
+    void setInsid(long insid);
+    void setCarrier(String carrier);
+    void setEmployee(IEmployee employee);
+}

Added: incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/icompany/IMedicalInsurance.java
URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/icompany/IMedicalInsurance.java?rev=201114&view=auto
==============================================================================
--- incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/icompany/IMedicalInsurance.java
(added)
+++ incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/icompany/IMedicalInsurance.java
Thu Jun 23 13:33:01 2005
@@ -0,0 +1,28 @@
+/*
+ * Copyright 2005 The Apache Software Foundation.
+ * 
+ * Licensed 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.icompany;
+
+/**
+ * This interface represents the persistent state of MedicalInsurance.
+ * Javadoc was deliberately omitted because it would distract from
+ * the purpose of the interface.
+ */
+public interface IMedicalInsurance {
+
+    String getPlanType();
+    void setPlanType(String planType);
+}

Added: incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/icompany/IPartTimeEmployee.java
URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/icompany/IPartTimeEmployee.java?rev=201114&view=auto
==============================================================================
--- incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/icompany/IPartTimeEmployee.java
(added)
+++ incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/icompany/IPartTimeEmployee.java
Thu Jun 23 13:33:01 2005
@@ -0,0 +1,28 @@
+/*
+ * Copyright 2005 The Apache Software Foundation.
+ * 
+ * Licensed 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.icompany;
+
+/**
+ * This interface represents the persistent state of PartTimeEmployee.
+ * Javadoc was deliberately omitted because it would distract from
+ * the purpose of the interface.
+ */
+public interface IPartTimeEmployee {
+
+    double getWage();
+    void setWage(double wage);
+}

Added: incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/icompany/IPerson.java
URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/icompany/IPerson.java?rev=201114&view=auto
==============================================================================
--- incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/icompany/IPerson.java (added)
+++ incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/icompany/IPerson.java Thu Jun
23 13:33:01 2005
@@ -0,0 +1,48 @@
+/*
+ * Copyright 2005 The Apache Software Foundation.
+ * 
+ * Licensed 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.icompany;
+
+import java.util.Date;
+import java.util.Map;
+
+/**
+ * This interface represents the persistent state of Person.
+ * Javadoc was deliberately omitted because it would distract from
+ * the purpose of the interface.
+ */
+public interface IPerson {
+
+    long getPersonid();
+    String getLastname();
+    String getFirstname();
+    String getMiddlename();
+    IAddress getAddress();
+    Date getBirthdate();
+    Map getPhoneNumbers();
+    String getPhoneNumber(String type);
+
+    void setLastname(long personid);
+    void setLastname(String lastname);
+    void setFirstname(String firstname);
+    void setMiddlename(String middlename);
+    void setAddress(IAddress address);
+    void setBirthdate(Date birthdate);
+    void setPhoneNumbers(Map phoneNumbers);
+
+    String putPhoneNumber(String type, String phoneNumber);
+    String removePhoneNumber(String type);
+}

Added: incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/icompany/IProject.java
URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/icompany/IProject.java?rev=201114&view=auto
==============================================================================
--- incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/icompany/IProject.java (added)
+++ incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/icompany/IProject.java Thu Jun
23 13:33:01 2005
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2005 The Apache Software Foundation.
+ * 
+ * Licensed 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.icompany;
+
+import java.math.BigDecimal;
+import java.util.Set;
+
+/**
+ * This interface represents the persistent state of Project.
+ * Javadoc was deliberately omitted because it would distract from
+ * the purpose of the interface.
+ */
+public interface IProject {
+
+    long getProjid();
+    String getName();
+    BigDecimal getBudget();
+    Set getReviewers();
+    Set getMembers();
+    
+    void setName(String name);
+    void setBudget(BigDecimal budget);
+    void setReviewers(Set reviewers);
+    void setMembers(Set employees);
+    
+    void addReviewer(IEmployee emp);
+    void addMember(IEmployee emp);
+    void removeReviewer(IEmployee emp);
+    void removeMember(IEmployee emp);
+}



Mime
View raw message