org.openware.job.generator.metadata
Class MDMClass

java.lang.Object
  |
  +--org.openware.job.generator.metadata.MetaElement
        |
        +--org.openware.job.generator.metadata.MDMClass
All Implemented Interfaces:
java.io.Serializable

public class MDMClass
extends MetaElement

One of the elements of metadata that MDM knows about is the class.

Version:
$Revision: 1.2 $ $Date: 2000/11/01 22:39:52 $
Author:
Vincent Sheffer
See Also:
Serialized Form

Field Summary
static java.lang.String PRIMARY_KEY_TYPE
           
 
Constructor Summary
MDMClass(java.lang.String name)
           
 
Method Summary
 void addEndPoint(MDMEndPoint ep)
           
 void addField(MDMField field)
           
 MDMField findField(java.lang.String fieldName)
           
 java.util.Iterator getEndPoints()
           
 java.util.Iterator getFields()
           
 java.util.Iterator getForeignKeyClasses()
          Get classes for foreign key definitions.
 java.util.Iterator getForeignKeyEndPoints()
          Get the EndPoints that correspond to the foreign key field.
 java.lang.String getName()
           
 MDMField getPrimaryKeyField()
          Get the primary key field for this class.
 
Methods inherited from class org.openware.job.generator.metadata.MetaElement
addDocumentationLine, getDocumentationLines
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PRIMARY_KEY_TYPE

public static final java.lang.String PRIMARY_KEY_TYPE
Constructor Detail

MDMClass

public MDMClass(java.lang.String name)
Method Detail

getName

public java.lang.String getName()

addEndPoint

public void addEndPoint(MDMEndPoint ep)

addField

public void addField(MDMField field)

findField

public MDMField findField(java.lang.String fieldName)

getPrimaryKeyField

public MDMField getPrimaryKeyField()
Get the primary key field for this class.

getForeignKeyEndPoints

public java.util.Iterator getForeignKeyEndPoints()
Get the EndPoints that correspond to the foreign key field.

getForeignKeyClasses

public java.util.Iterator getForeignKeyClasses()
Get classes for foreign key definitions.

Class A has a 1-to-many relationship with Class B. Need to create column/field in Class A pointing back to Class B. This method returns a list of classes that fall in the category of Class B.

Returns:
An Iterator of MDMClasses.

getEndPoints

public java.util.Iterator getEndPoints()

getFields

public java.util.Iterator getFields()


Copyright © 2000,2001 Openware. All Rights Reserved.