|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jdo.impl.model.jdo.JDOElementImpl
org.apache.jdo.impl.model.jdo.JDOMemberImpl
This is the super interface for named JDO metadata elements, such as JDOClass and JDOField.
Field Summary | |
private JDOClass |
declaringClass
Relationship JDOClass<->JDOMember. |
private java.lang.String |
name
Property name. |
Fields inherited from class org.apache.jdo.impl.model.jdo.JDOElementImpl |
|
Constructor Summary | |
protected |
JDOMemberImpl(java.lang.String name,
JDOClass declaringClass)
Constructor. |
Method Summary | |
int |
compareTo(java.lang.Object o)
Compares this object with the specified object for order. |
boolean |
equals(java.lang.Object obj)
Overrides Object's equals method by comparing the name
of this member with the name of the argument obj. |
JDOClass |
getDeclaringClass()
Get the declaring class of this JDOMember. |
java.lang.String |
getName()
Returns the name of this JDOMember. |
int |
hashCode()
Overrides Object's hashCode method to return the hashCode
of this name. |
java.lang.String |
toString()
Overrides Object's toString method to return the name
of this persistence element. |
Methods inherited from class org.apache.jdo.impl.model.jdo.JDOElementImpl |
addPropertyChangeListener, addVetoableChangeListener, createJDOExtension, firePropertyChange, fireVetoableChange, getJDOExtensions, removeJDOExtension, removePropertyChangeListener, removeVetoableChangeListener |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.jdo.model.jdo.JDOElement |
addPropertyChangeListener, addVetoableChangeListener, createJDOExtension, getJDOExtensions, removeJDOExtension, removePropertyChangeListener, removeVetoableChangeListener |
Field Detail |
private java.lang.String name
private JDOClass declaringClass
Constructor Detail |
protected JDOMemberImpl(java.lang.String name, JDOClass declaringClass)
Method Detail |
public java.lang.String getName()
getName
in interface JDOMember
public JDOClass getDeclaringClass()
getDeclaringClass
in interface JDOMember
null
if the element is not attached to any classpublic java.lang.String toString()
toString
method to return the name
of this persistence element.
public boolean equals(java.lang.Object obj)
equals
method by comparing the name
of this member with the name of the argument obj. The method returns
false
if obj does not have the same dynamic type as this
member.
obj
- the reference object with which to compare.
true
if this object is the same as the obj argument;
false
otherwise.public int hashCode()
hashCode
method to return the hashCode
of this name.
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
o
- the Object to be compared.
java.lang.ClassCastException
- - if the specified object is null or is not
an instance of JDOMember
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |