Oracle Warehouse Builder Java API Reference
10g Release 1 (10.1)

B12155-01

oracle.owb.relational
Interface ForeignKey

All Superinterfaces:
Extensible, OWBNamedObject, PropertyOwner

public interface ForeignKey
extends OWBNamedObject, Extensible

ForeignKey interface represents a data entity foreign key constraint. Foreign key integrity constraint requires each value in a column or set of columns to match a value in a related table's UNIQUE or PRIMARY KEY.


Method Summary
 Column[] getColumns()
          Gets the ordered list of columns this foreign key consists of.
 KeyOwner getKeyOwner()
          Gets the key owner.
 UniqueKey getUniqueKey()
          Gets the unique key this foreign key is referencing.
 void setColumns(Column[] columns)
          Sets the ordered list of columns this foreign key consists of.
 void setUniqueKey(UniqueKey uniqueKey)
          Sets the unique key this foreign key is referencing.

 

Methods inherited from interface oracle.owb.foundation.OWBNamedObject
delete, getBusinessName, getClassDefinition, getComponent, getDescription, getName, getUOID, isDeletable, isEditable, isRenamable, setBusinessName, setDescription, setName

 

Methods inherited from interface oracle.owb.foundation.property.PropertyOwner
getDefaultPropertyValue, getLogicalPropertyKeys, getPhysicalPropertyKeys, getPropertyDomain, getPropertyKeys, getPropertyValue, getPropertyValueString, isLogicalProperty, isPhysicalProperty, isReadOnlyProperty, setPropertyValue, setPropertyValueByString

 

Method Detail

getKeyOwner

public KeyOwner getKeyOwner()
Gets the key owner.
Returns:
the key data entity owner.

setUniqueKey

public void setUniqueKey(UniqueKey uniqueKey)
Sets the unique key this foreign key is referencing.

getUniqueKey

public UniqueKey getUniqueKey()
Gets the unique key this foreign key is referencing.
Returns:
a UniqueKey object.

getColumns

public Column[] getColumns()
Gets the ordered list of columns this foreign key consists of.
Returns:
an array of columns in the order they appear in the foreign key.

setColumns

public void setColumns(Column[] columns)
Sets the ordered list of columns this foreign key consists of.
Parameters:
columns - an array of columns in the order they should appear in the foreign key.

Oracle Warehouse Builder Java API Reference
10g Release 1 (10.1)

B12155-01

Copyright © 2003, Oracle. All Rights Reserved.