|
||||||||||
| 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
public class JDOMemberImpl
This is the super interface for named JDO metadata elements, such as JDOClass and JDOField.
| Constructor Summary | |
|---|---|
JDOMemberImpl()
|
|
| 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. |
void |
setDeclaringClass(JDOClass declaringClass)
Set the declaring class of this JDOMember. |
void |
setName(java.lang.String name)
Sets the name of this JDOMember. |
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 |
| Constructor Detail |
|---|
public JDOMemberImpl()
| Method Detail |
|---|
public java.lang.String getName()
getName in interface JDOMemberpublic void setName(java.lang.String name)
setName in interface JDOMembername - the namepublic JDOClass getDeclaringClass()
getDeclaringClass in interface JDOMembernull
if the element is not attached to any classpublic void setDeclaringClass(JDOClass declaringClass)
setDeclaringClass in interface JDOMemberdeclaringClass - the declaring class of this member elementpublic 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 JDOMember
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||