Methods Summary |
---|
public boolean | equals(java.lang.Object obj)Overrides PersistenceElement's equals method to add
comparison of the name of the declaring class this persistence element.
The method returns false if obj does not have a declaring
class with the same name as this persistence element.
if (super.equals(obj) && (obj instanceof PersistenceMemberElement))
{
PersistenceClassElement declaringClass = getDeclaringClass();
PersistenceClassElement objDeclaringClass =
((PersistenceMemberElement)obj).getDeclaringClass();
return ((declaringClass == null) ? (objDeclaringClass == null) :
declaringClass.equals(objDeclaringClass));
}
return false;
|
public PersistenceClassElement | getDeclaringClass()Get the declaring class.
return _declaringClass;
|
final com.sun.jdo.api.persistence.model.jdo.PersistenceMemberElement$Impl | getMemberImpl() return (Impl)getImpl();
|
public int | hashCode()Overrides PersistenceElement's hashCode method to add
the hashCode of this persistence element's declaring class.
PersistenceClassElement declaringClass = getDeclaringClass();
return (super.hashCode() +
((declaringClass == null) ? 0 : declaringClass.hashCode()));
|
public void | setDeclaringClass(PersistenceClassElement declaringClass)Set the declaring class of this member element. This method should
only be used internally and for cloning and archiving.
_declaringClass = declaringClass;
|