public class JDOMemberImpl extends JDOElementImpl implements JDOMember
| Modifier | Constructor and Description |
|---|---|
protected |
JDOMemberImpl(java.lang.String name,
JDOClass declaringClass)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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. |
addPropertyChangeListener, addVetoableChangeListener, createJDOExtension, firePropertyChange, fireVetoableChange, getJDOExtensions, removeJDOExtension, removePropertyChangeListener, removeVetoableChangeListenerclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddPropertyChangeListener, addVetoableChangeListener, createJDOExtension, getJDOExtensions, removeJDOExtension, removePropertyChangeListener, removeVetoableChangeListenerprotected JDOMemberImpl(java.lang.String name,
JDOClass declaringClass)
public java.lang.String getName()
public JDOClass getDeclaringClass()
getDeclaringClass in interface JDOMembernull
if the element is not attached to any classpublic java.lang.String toString()
toString method to return the name
of this persistence element.toString in class java.lang.Objectpublic 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.equals in class java.lang.Objectobj - 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.hashCode in class java.lang.Objectpublic int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparableo - the Object to be compared.java.lang.ClassCastException - - if the specified object is null or is not
an instance of JDOMemberCopyright © 2005-2012 Apache Software Foundation. All Rights Reserved.