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

B12155-01

oracle.owb.relational
Interface UniqueKey

All Superinterfaces:
Extensible, OWBNamedObject, PropertyOwner

public interface UniqueKey
extends OWBNamedObject, Extensible

UniqueKey interface represents a data entity unique key constraint. Unique key integrity constraint requires that every value in a column or set of columns be unique--that is, no two rows of a table have duplicate values in a specified column or set of columns.


Method Summary
 Column[] getColumns()
          Gets the ordered list of columns this unique key consists of.
 ForeignKey[] getForeignKeys()
          Get the foreign keys that reference this unique key.
 KeyOwner getKeyOwner()
          Get the KeyOwner.
 boolean isPrimaryKey()
          Determines if the UniqueKey is primary or not.
 void setColumns(Column[] columns)
          Sets the ordered list of columns this unique key consists of.
 void setPrimaryKey(boolean isPrimaryKey)
          Sets whether this is a primary key.

 

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

isPrimaryKey

public boolean isPrimaryKey()
Determines if the UniqueKey is primary or not.
Returns:
whether this is a primary key.

setPrimaryKey

public void setPrimaryKey(boolean isPrimaryKey)
Sets whether this is a primary key.
Parameters:
isPrimaryKey - sets the UniqueKey to true or false.

getKeyOwner

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

getForeignKeys

public ForeignKey[] getForeignKeys()
Get the foreign keys that reference this unique key.
Returns:
an array of foreign keys.

getColumns

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

setColumns

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

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

B12155-01

Copyright © 2003, Oracle. All Rights Reserved.