|
||||||||||
| 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
public abstract class MappingElementImpl
| 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 | |
|---|---|
MappingElementImpl()
Create new MappingElementImpl with no corresponding name. |
|
MappingElementImpl(String name)
Creates new MappingElementImpl with the corresponding name |
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener l)
Add a property change listener. |
void |
addVetoableChangeListener(VetoableChangeListener l)
Add a vetoable change listener. |
int |
compareTo(Object o)
Compares this object with the specified object for order. |
boolean |
equals(Object obj)
Overrides Object's equals method by comparing the name of this mapping element
with the name of the argument obj. |
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. |
protected static ResourceBundle |
getMessages()
|
String |
getName()
Get the name of this mapping element. |
int |
hashCode()
Overrides Object's hashCode method to return the hashCode of this mapping element's name. |
void |
removePropertyChangeListener(PropertyChangeListener l)
Remove a property change listener. |
void |
removeVetoableChangeListener(VetoableChangeListener l)
Remove a vetoable change listener. |
void |
setName(String name)
Set the name of this mapping element. |
String |
toString()
Overrides Object's toString method to return the name
of this mapping element. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MappingElementImpl()
public MappingElementImpl(String name)
name - the name of the element| Method Detail |
|---|
protected static final ResourceBundle getMessages()
public String toString()
toString method to return the name
of this mapping element.
toString in class Objectpublic boolean equals(Object obj)
equals method by comparing the name of this mapping element
with the name of the argument obj. The method returns false if obj does not have
the same dynamic type as this mapping element.
equals in class 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 mapping element's name.
hashCode in class Object
protected void firePropertyChange(String name,
Object o,
Object n)
name - property nameo - old valuen - new value
protected void fireVetoableChange(String name,
Object o,
Object n)
throws PropertyVetoException
name - property nameo - old valuen - new value
PropertyVetoException - when the change is vetoed by a listenerpublic void addPropertyChangeListener(PropertyChangeListener l)
addPropertyChangeListener in interface MappingElementl - the listener to addpublic void removePropertyChangeListener(PropertyChangeListener l)
removePropertyChangeListener in interface MappingElementl - the listener to removepublic void addVetoableChangeListener(VetoableChangeListener l)
addVetoableChangeListener in interface MappingElementl - the listener to addpublic void removeVetoableChangeListener(VetoableChangeListener l)
removeVetoableChangeListener in interface MappingElementl - the listener to removepublic String getName()
getName in interface MappingElement
public void setName(String name)
throws ModelException
setName in interface MappingElementname - the name
ModelException - if impossiblepublic int compareTo(Object o)
compareTo in interface Comparableo - the Object to be compared.
ClassCastException - - if the specified object is null or is not an instance of MappingElementImpl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||