Save This Page
Home » jdo2-tck-2.3-ea-src » org.apache.jdo.tck.pc.companyAnnotatedJPA » [javadoc | source]
org.apache.jdo.tck.pc.companyAnnotatedJPA
public class: JPAAppProject [javadoc | source]
java.lang.Object
   org.apache.jdo.tck.pc.companyAnnotatedJPA.JPAAppProject

All Implemented Interfaces:
    IProject, DeepEquality, Comparator, Serializable, Comparable

This class represents a project, a budgeted task with one or more employees working on it.
Nested Class Summary:
public static class  JPAAppProject.Oid  This class is used to represent the application identity for the JPAAppProject class. 
Constructor:
 public JPAAppProject() 
 public JPAAppProject(long projid,
    String name,
    BigDecimal budget) 
    Initialize a project.
    Parameters:
    projid - The project identifier.
    name - The name of the project.
    budget - The budget for the project.
Method from org.apache.jdo.tck.pc.companyAnnotatedJPA.JPAAppProject Summary:
addMember,   addReviewer,   compare,   compare,   compareTo,   compareTo,   deepCompareFields,   equals,   getBudget,   getFieldRepr,   getMembers,   getName,   getProjid,   getReviewers,   hashCode,   removeMember,   removeReviewer,   setBudget,   setMembers,   setName,   setProjid,   setReviewers,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.jdo.tck.pc.companyAnnotatedJPA.JPAAppProject Detail:
 public  void addMember(JPAAppEmployee emp) 
    Add a new member to the project.
 public  void addReviewer(JPAAppEmployee emp) 
    Add a reviewer to the project.
 public int compare(Object o1,
    Object o2) 
    Compare two instances. This is a method in Comparator.
 public static int compare(JPAAppProject o1,
    JPAAppProject o2) 
    Compares its two IProject arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
 public int compareTo(Object o) 
    Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
 public int compareTo(JPAAppProject other) 
    Compares this object with the specified JPAAppProject object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
 public boolean deepCompareFields(Object other,
    EqualityHelper helper) 
    Returns true if all the fields of this instance are deep equal to the coresponding fields of the specified Person.
 public boolean equals(Object obj) 
    Indicates whether some other object is "equal to" this one.
 public BigDecimal getBudget() 
    Get the project's budget.
 protected String getFieldRepr() 
    Returns a String representation of the non-relationship fields.
 public Set getMembers() 
    Get the project members.
 public String getName() 
    Get the name of the project.
 public long getProjid() 
    Get the project ID.
 public Set getReviewers() 
    Get the reviewers associated with this project.
 public int hashCode() 
    Returns a hash code value for the object.
 public  void removeMember(JPAAppEmployee emp) 
    Remove a member from the project.
 public  void removeReviewer(JPAAppEmployee emp) 
    Remove a reviewer from the project.
 public  void setBudget(BigDecimal budget) 
    Set the project's budget.
 public  void setMembers(Set employees) 
    Set the members of the project.
 public  void setName(String name) 
    Set the name of the project.
 public  void setProjid(long id) 
    Set the id associated with this object.
 public  void setReviewers(Set reviewers) 
    Set the reviewers associated with this project.
 public String toString() 
    Returns a String representation of a JPAAppProject object.