public abstract class MappingMemberElementImpl extends MappingElementImpl implements MappingMemberElement
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 and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
addPropertyChangeListener, addVetoableChangeListener, compareTo, getMessages, getName, removePropertyChangeListener, removeVetoableChangeListener, setName, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addPropertyChangeListener, addVetoableChangeListener, getName, removePropertyChangeListener, removeVetoableChangeListener, setName
compareTo
public MappingMemberElementImpl()
public MappingMemberElementImpl(String name, MappingClassElement declaringClass)
name
- the name of the elementdeclaringClass
- the class to attach topublic MappingClassElement getDeclaringClass()
getDeclaringClass
in interface MappingMemberElement
null
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 MappingElementImpl
obj
- 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 MappingElementImpl
name
- property nameo
- old valuen
- new valueprotected final void fireVetoableChange(String name, Object o, Object n) throws PropertyVetoException
fireVetoableChange
in class MappingElementImpl
name
- property nameo
- old valuen
- new valuePropertyVetoException
- when the change is vetoed by a listenerpublic void setDeclaringClass(MappingClassElement declaringClass)
declaringClass
- the declaring class of this mapping memberCopyright © 2019. All rights reserved.