|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.jdo.api.persistence.model.mapping.impl.MappingElementImpl
com.sun.jdo.api.persistence.model.mapping.impl.MappingMemberElementImpl
public abstract class MappingMemberElementImpl
| Field Summary |
|---|
| Fields inherited from interface com.sun.jdo.api.persistence.model.mapping.MappingElementProperties |
|---|
PROP_ASSOCIATED_COLUMNS, PROP_COLUMNS, PROP_CONSISTENCY, PROP_DATABASE_ROOT, PROP_FETCH_GROUP, PROP_FIELDS, PROP_IN_CONCURRENCY_CHECK, PROP_KEY_COLUMNS, PROP_MODIFIED, PROP_NAME, PROP_NAVIGABLE, PROP_READ_ONLY, PROP_REFERENCING_KEYS, PROP_TABLE, PROP_TABLES, PROP_VERSION_FIELD |
| Constructor Summary | |
|---|---|
MappingMemberElementImpl()
Create new MappingMemberElementImpl with no corresponding name or declaring class. |
|
MappingMemberElementImpl(String name,
MappingClassElement declaringClass)
Create new MappingMemberElementImpl with the corresponding name and declaring class. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Overrides MappingElementImpl's equals method to add
comparison of the name of the declaring class this mapping element. |
protected void |
firePropertyChange(String name,
Object o,
Object n)
Fires property change event. |
protected void |
fireVetoableChange(String name,
Object o,
Object n)
Fires vetoable change event. |
MappingClassElement |
getDeclaringClass()
Get the declaring class. |
int |
hashCode()
Overrides MappingElementImpl's hashCode method to add
the hashCode of this mapping element's declaring class. |
void |
setDeclaringClass(MappingClassElement declaringClass)
Set the declaring class of this mapping member. |
| Methods inherited from class com.sun.jdo.api.persistence.model.mapping.impl.MappingElementImpl |
|---|
addPropertyChangeListener, addVetoableChangeListener, compareTo, getMessages, getName, removePropertyChangeListener, removeVetoableChangeListener, setName, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.sun.jdo.api.persistence.model.mapping.MappingElement |
|---|
addPropertyChangeListener, addVetoableChangeListener, getName, removePropertyChangeListener, removeVetoableChangeListener, setName |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Constructor Detail |
|---|
public MappingMemberElementImpl()
public MappingMemberElementImpl(String name,
MappingClassElement declaringClass)
name - the name of the elementdeclaringClass - the class to attach to| Method Detail |
|---|
public MappingClassElement getDeclaringClass()
getDeclaringClass in interface MappingMemberElementnull
if the element is not attached to any classpublic boolean equals(Object obj)
equals method to add
comparison of the name of the declaring class this mapping element.
The method returns false if obj does not have a declaring
class with the same name as this mapping element.
equals in class MappingElementImplobj - 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 mapping element's declaring class.
hashCode in class MappingElementImpl
protected final void firePropertyChange(String name,
Object o,
Object n)
firePropertyChange in class MappingElementImplname - property nameo - old valuen - new value
protected final void fireVetoableChange(String name,
Object o,
Object n)
throws PropertyVetoException
fireVetoableChange in class MappingElementImplname - property nameo - old valuen - new value
PropertyVetoException - when the change is vetoed by a listenerpublic void setDeclaringClass(MappingClassElement declaringClass)
declaringClass - the declaring class of this mapping member
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||