org.teiid.metadata
Class ForeignKey

java.lang.Object
  extended by org.teiid.metadata.AbstractMetadataRecord
      extended by org.teiid.metadata.ColumnSet<Table>
          extended by org.teiid.metadata.KeyRecord
              extended by org.teiid.metadata.ForeignKey
All Implemented Interfaces:
Serializable

public class ForeignKey
extends KeyRecord

ForeignKeyRecordImpl

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.teiid.metadata.KeyRecord
KeyRecord.Type
 
Nested classes/interfaces inherited from class org.teiid.metadata.AbstractMetadataRecord
AbstractMetadataRecord.DataModifiable, AbstractMetadataRecord.Modifiable
 
Field Summary
 
Fields inherited from class org.teiid.metadata.AbstractMetadataRecord
NAME_DELIM_CHAR, RELATIONAL_URI
 
Constructor Summary
ForeignKey()
           
 
Method Summary
 KeyRecord getPrimaryKey()
           
 String getUniqueKeyID()
           
 void setPrimaryKey(KeyRecord primaryKey)
           
 void setUniqueKeyID(String keyID)
           
 
Methods inherited from class org.teiid.metadata.KeyRecord
getType
 
Methods inherited from class org.teiid.metadata.ColumnSet
addColumn, getColumns, getParent, setColumns, setParent
 
Methods inherited from class org.teiid.metadata.AbstractMetadataRecord
equals, getAnnotation, getCanonicalName, getFullName, getName, getNameInSource, getProperties, getProperty, getUUID, hashCode, setAnnotation, setName, setNameInSource, setProperties, setProperty, setUUID, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ForeignKey

public ForeignKey()
Method Detail

getUniqueKeyID

public String getUniqueKeyID()

setUniqueKeyID

public void setUniqueKeyID(String keyID)
Parameters:
object -

getPrimaryKey

public KeyRecord getPrimaryKey()
Returns:
the primary key or unique key referenced by this foreign key

setPrimaryKey

public void setPrimaryKey(KeyRecord primaryKey)
Parameters:
primaryKey, - the primary key or unique key referenced by this foreign key


Copyright © 2012. All Rights Reserved.