org.apache.jdo.model.jdo
Interface JDOMember

All Superinterfaces:
java.lang.Comparable, JDOElement
All Known Subinterfaces:
JDOClass, JDOField
All Known Implementing Classes:
JDOClassImplCaching, JDOClassImplDynamic, JDOFieldImplCaching, JDOFieldImplDynamic, JDOMemberImpl

public interface JDOMember
extends JDOElement, java.lang.Comparable

This is the super interface for named JDO metadata elements, such as JDOClass and JDOField.

Author:
Michael Bouschen

Method Summary
 JDOClass getDeclaringClass()
          Get the declaring class of this JDOMember.
 java.lang.String getName()
          Returns the name of this JDOMember.
 void setDeclaringClass(JDOClass declaringClass)
          Set the declaring class of this JDOMember.
 void setName(java.lang.String name)
          Sets the name of this JDOMember.
 
Methods inherited from interface org.apache.jdo.model.jdo.JDOElement
addPropertyChangeListener, addVetoableChangeListener, createJDOExtension, getJDOExtensions, removeJDOExtension, removePropertyChangeListener, removeVetoableChangeListener
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getName

java.lang.String getName()
Returns the name of this JDOMember.

Returns:
the name

setName

void setName(java.lang.String name)
             throws ModelException
Sets the name of this JDOMember.

Parameters:
name - the name
Throws:
ModelException - if impossible

getDeclaringClass

JDOClass getDeclaringClass()
Get the declaring class of this JDOMember.

Returns:
the class that owns this JDOMember, or null if the element is not attached to any class

setDeclaringClass

void setDeclaringClass(JDOClass declaringClass)
                       throws ModelException
Set the declaring class of this JDOMember.

Parameters:
declaringClass - the declaring class of this member element
Throws:
ModelException - if impossible


Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.