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

B12155-01

oracle.owb.relational
Interface KeyOwner

All Superinterfaces:
OWBNamedObject
All Known Subinterfaces:
MaterializedView, Table, View

public interface KeyOwner
extends OWBNamedObject

KeyOwner interface represents an abstract keys container.


Method Summary
 ForeignKey createForeignKey(java.lang.String name)
          Creates a foreign key with the given name.
 ForeignKey createForeignKey(java.lang.String name, UniqueKey uniqueKey)
          Convenience method to create the foreign with a given name and also to set its referenced unique key.
 UniqueKey createUniqueKey(java.lang.String name)
          Creates a unique key with the supplied physical name
 ForeignKey findForeignKey(java.lang.String name)
          Finds a foreign key with the given name.
 UniqueKey findUniqueKey(java.lang.String name)
          Finds a unique key with the given name.
 ForeignKey[] getForeignKeys()
          Finds a foreign key with the given name.
 UniqueKey[] getUniqueKeys()
          Get all unique keys.

 

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

 

Method Detail

getUniqueKeys

public UniqueKey[] getUniqueKeys()
Get all unique keys.
Returns:
the unique keys owned.

createUniqueKey

public UniqueKey createUniqueKey(java.lang.String name)
                          throws NameSpaceException,
InvalidFormatException
Creates a unique key with the supplied physical name
Parameters:
name - the physical of the unique key
Returns:
the created unique key
Throws:
InvalidFormatException
NameSpaceException

findUniqueKey

public UniqueKey findUniqueKey(java.lang.String name)
Finds a unique key with the given name.
Parameters:
name - the physical name of the unique key to find.
Returns:
the found unique key, null if not found.

getForeignKeys

public ForeignKey[] getForeignKeys()
Finds a foreign key with the given name.
Returns:
the found foreign key, null if not found

createForeignKey

public ForeignKey createForeignKey(java.lang.String name)
                            throws NameSpaceException,
InvalidFormatException
Creates a foreign key with the given name.
Parameters:
name - the physical name of the foreign key to create.
Returns:
the created foreign key.
Throws:
NameSpaceException
InvalidFormatException

createForeignKey

public ForeignKey createForeignKey(java.lang.String name,
UniqueKey uniqueKey)
                            throws NameSpaceException,
InvalidFormatException
Convenience method to create the foreign with a given name and also to set its referenced unique key.
Parameters:
name - the physical name of the foreign key to create.
uniqueKey - the referenced unique key.
Throws:
NameSpaceException
InvalidFormatException

findForeignKey

public ForeignKey findForeignKey(java.lang.String name)
Finds a foreign key with the given name.
Parameters:
name - the physical name of the foreign key.
Returns:
the found foreign key, null if not found.

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

B12155-01

Copyright © 2003, Oracle. All Rights Reserved.