|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.jdo.api.persistence.model.jdo.PersistenceElement
com.sun.jdo.api.persistence.model.jdo.PersistenceMemberElement
public abstract class PersistenceMemberElement
| Nested Class Summary | |
|---|---|
static interface |
PersistenceMemberElement.Impl
Pluggable implementation of member elements. |
| Field Summary |
|---|
| Fields inherited from interface com.sun.jdo.api.persistence.model.jdo.PersistenceElementProperties |
|---|
PROP_CARDINALITY, PROP_COLLECTION_CLASS, PROP_DELETE_ACTION, PROP_ELEMENT_CLASS, PROP_FIELDS, PROP_GROUPS, PROP_IDENTITY, PROP_INVERSE_FIELD, PROP_KEY_CLASS, PROP_KEY_FIELD, PROP_MODIFIED, PROP_NAME, PROP_PERSISTENCE, PROP_PREFETCH, PROP_SENSITIVITY, PROP_UPDATE_ACTION |
| Constructor Summary | |
|---|---|
|
PersistenceMemberElement()
Create new PersistenceMemberElement with no implementation. |
protected |
PersistenceMemberElement(PersistenceMemberElement.Impl impl,
PersistenceClassElement declaringClass)
Create new PersistenceMemberElement with the provided implementation. |
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Overrides PersistenceElement's equals method to add
comparison of the name of the declaring class this persistence element. |
PersistenceClassElement |
getDeclaringClass()
Get the declaring class. |
int |
hashCode()
Overrides PersistenceElement's hashCode method to add
the hashCode of this persistence element's declaring class. |
void |
setDeclaringClass(PersistenceClassElement declaringClass)
Set the declaring class of this member element. |
| Methods inherited from class com.sun.jdo.api.persistence.model.jdo.PersistenceElement |
|---|
addPropertyChangeListener, addVetoableChangeListener, compareTo, getImpl, getMessages, getName, removePropertyChangeListener, removeVetoableChangeListener, setImpl, setName, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PersistenceMemberElement()
protected PersistenceMemberElement(PersistenceMemberElement.Impl impl,
PersistenceClassElement declaringClass)
impl - the implementation to usedeclaringClass - the class to attach to| Method Detail |
|---|
public PersistenceClassElement getDeclaringClass()
null
if the element is not attached to any classpublic void setDeclaringClass(PersistenceClassElement declaringClass)
declaringClass - the declaring class of this member elementpublic boolean equals(Object obj)
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.
equals in class PersistenceElementobj - 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 add
the hashCode of this persistence element's declaring class.
hashCode in class PersistenceElement
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||